2016-04-10 21:22:59 +00:00
|
|
|
#include "CMetaTransTrans.hpp"
|
2016-04-11 03:59:54 +00:00
|
|
|
#include "CAnimTreeTransition.hpp"
|
2016-04-10 21:22:59 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2016-04-10 21:22:59 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
CMetaTransTrans::CMetaTransTrans(CInputStream& in) {
|
|
|
|
x4_transDur = CCharAnimTime(in);
|
|
|
|
xc_ = in.readBool();
|
|
|
|
xd_runA = in.readBool();
|
|
|
|
x10_flags = in.readUint32Big();
|
2016-04-10 21:22:59 +00:00
|
|
|
}
|
|
|
|
|
2016-09-10 04:50:00 +00:00
|
|
|
std::shared_ptr<CAnimTreeNode> CMetaTransTrans::VGetTransitionTree(const std::weak_ptr<CAnimTreeNode>& a,
|
|
|
|
const std::weak_ptr<CAnimTreeNode>& b,
|
2018-12-08 05:30:43 +00: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 21:22:59 +00:00
|
|
|
}
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|