2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-13 19:11:20 +00:00
metaforce/Runtime/Character/CMetaTransTrans.cpp
Lioncash 1cb289f243 RuntimeCommon: Normalize cpp inclusions
Normalizes the headers for the cpp files in the RuntimeCommon target.
Now all headers and source files within the RuntimeCommon/RuntimeCommonB
targets are normalized and consistent with one another.
2020-01-15 09:15:47 -05:00

22 lines
817 B
C++

#include "Runtime/Character/CMetaTransTrans.hpp"
#include "Runtime/Character/CAnimTreeTransition.hpp"
namespace urde {
CMetaTransTrans::CMetaTransTrans(CInputStream& in) {
x4_transDur = CCharAnimTime(in);
xc_ = in.readBool();
xd_runA = in.readBool();
x10_flags = in.readUint32Big();
}
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 urde