metaforce/Runtime/Character/CMetaTransTrans.cpp

22 lines
828 B
C++
Raw Normal View History

#include "Runtime/Character/CMetaTransTrans.hpp"
#include "Runtime/Character/CAnimTreeTransition.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
CMetaTransTrans::CMetaTransTrans(CInputStream& in) {
x4_transDur = in.Get<CCharAnimTime>();
xc_ = in.ReadBool();
xd_runA = in.ReadBool();
x10_flags = in.ReadLong();
2016-04-10 14:22:59 -07:00
}
2016-09-09 21:50:00 -07:00
std::shared_ptr<CAnimTreeNode> CMetaTransTrans::VGetTransitionTree(const std::weak_ptr<CAnimTreeNode>& a,
const std::weak_ptr<CAnimTreeNode>& b,
2018-12-07 21:30:43 -08:00
const CAnimSysContext& animSys) const {
return std::make_shared<CAnimTreeTransition>(
xc_, a, b, x4_transDur, xd_runA, x10_flags,
CAnimTreeTransition::CreatePrimitiveName(a, b, x4_transDur.GetSeconds()));
2016-04-10 14:22:59 -07:00
}
2021-04-10 01:42:06 -07:00
} // namespace metaforce