metaforce/Runtime/Character/CMetaTransMetaAnim.cpp

20 lines
946 B
C++
Raw Normal View History

#include "Runtime/Character/CMetaTransMetaAnim.hpp"
#include "Runtime/Character/CAnimTreeLoopIn.hpp"
#include "Runtime/Character/CMetaAnimFactory.hpp"
2016-04-10 14:22:59 -07:00
2021-04-10 01:42:06 -07:00
namespace metaforce {
2016-04-10 14:22:59 -07:00
2018-12-07 21:30:43 -08:00
CMetaTransMetaAnim::CMetaTransMetaAnim(CInputStream& in) : x4_metaAnim(CMetaAnimFactory::CreateMetaAnim(in)) {}
2016-04-10 14:22:59 -07:00
2018-12-07 21:30:43 -08:00
std::shared_ptr<CAnimTreeNode> CMetaTransMetaAnim::VGetTransitionTree(const std::weak_ptr<CAnimTreeNode>& a,
const std::weak_ptr<CAnimTreeNode>& b,
const CAnimSysContext& animSys) const {
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 14:22:59 -07:00
}
2021-04-10 01:42:06 -07:00
} // namespace metaforce