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
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
|
|
|
CMetaTransTrans::CMetaTransTrans(CInputStream& in)
|
|
|
|
{
|
2016-09-10 04:50:00 +00:00
|
|
|
x4_animTime = CCharAnimTime(in);
|
2016-04-11 03:59:54 +00:00
|
|
|
xc_ = in.readBool();
|
|
|
|
xd_ = in.readBool();
|
|
|
|
x10_ = 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,
|
|
|
|
const CAnimSysContext& animSys) const
|
2016-04-10 21:22:59 +00:00
|
|
|
{
|
2016-09-10 04:50:00 +00:00
|
|
|
return std::make_shared<CAnimTreeTransition>(xc_, a, b, x4_animTime, xd_, x10_,
|
2017-07-10 04:55:51 +00:00
|
|
|
CAnimTreeTransition::CreatePrimitiveName(a, b, x4_animTime.GetSeconds()));
|
2016-04-10 21:22:59 +00:00
|
|
|
}
|
|
|
|
}
|