2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 00:27:42 +00:00

New code style refactor

This commit is contained in:
Jack Andersen
2018-12-07 19:30:43 -10:00
parent 41ae32be31
commit 636c82a568
1451 changed files with 171430 additions and 203303 deletions

View File

@@ -2,21 +2,17 @@
#include "CMetaAnimFactory.hpp"
#include "CAnimTreeLoopIn.hpp"
namespace urde
{
namespace urde {
CMetaTransMetaAnim::CMetaTransMetaAnim(CInputStream& in)
: x4_metaAnim(CMetaAnimFactory::CreateMetaAnim(in)) {}
CMetaTransMetaAnim::CMetaTransMetaAnim(CInputStream& in) : x4_metaAnim(CMetaAnimFactory::CreateMetaAnim(in)) {}
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));
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));
}
}
} // namespace urde