2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-13 15:11:22 +00:00
metaforce/Runtime/Character/CMetaTransTrans.cpp
Phillip Stephens dad7249927
RE COutput/InputStream and friends and migrate over
This branch is probably still horribly broken, but it's a good first step to migrating away from having hecl embedded in the runtime
2022-02-21 08:01:05 -08:00

22 lines
828 B
C++

#include "Runtime/Character/CMetaTransTrans.hpp"
#include "Runtime/Character/CAnimTreeTransition.hpp"
namespace metaforce {
CMetaTransTrans::CMetaTransTrans(CInputStream& in) {
x4_transDur = in.Get<CCharAnimTime>();
xc_ = in.ReadBool();
xd_runA = in.ReadBool();
x10_flags = in.ReadLong();
}
std::shared_ptr<CAnimTreeNode> CMetaTransTrans::VGetTransitionTree(const std::weak_ptr<CAnimTreeNode>& a,
const std::weak_ptr<CAnimTreeNode>& b,
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()));
}
} // namespace metaforce