metaforce/Runtime/Character/CMetaTransMetaAnim.cpp

23 lines
809 B
C++
Raw Normal View History

2016-04-10 21:22:59 +00:00
#include "CMetaTransMetaAnim.hpp"
2016-04-11 03:59:54 +00:00
#include "CMetaAnimFactory.hpp"
2018-01-30 01:04:01 +00:00
#include "CAnimTreeLoopIn.hpp"
2016-04-10 21:22:59 +00:00
namespace urde
{
CMetaTransMetaAnim::CMetaTransMetaAnim(CInputStream& in)
2016-04-11 03:59:54 +00:00
: x4_metaAnim(CMetaAnimFactory::CreateMetaAnim(in)) {}
2016-04-10 21:22:59 +00:00
std::shared_ptr<CAnimTreeNode>
CMetaTransMetaAnim::VGetTransitionTree(const std::weak_ptr<CAnimTreeNode>& a,
const std::weak_ptr<CAnimTreeNode>& b,
const CAnimSysContext& animSys) const
{
2018-01-30 01:04:01 +00:00
std::shared_ptr<CAnimTreeNode> animNode =
x4_metaAnim->GetAnimationTree(animSys, CMetaAnimTreeBuildOrders::NoSpecialOrders());
return std::make_shared<CAnimTreeLoopIn>(a, b, animNode, animSys,
CAnimTreeLoopIn::CreatePrimitiveName(a, b, animNode));
2016-04-10 21:22:59 +00:00
}
}