metaforce/Runtime/Character/CTreeUtils.cpp

20 lines
921 B
C++
Raw Normal View History

#include "Runtime/Character/CTreeUtils.hpp"
#include "Runtime/Character/CAnimSysContext.hpp"
#include "Runtime/Character/CAnimTreeNode.hpp"
#include "Runtime/Character/CTransitionDatabaseGame.hpp"
#include "Runtime/Character/IMetaTrans.hpp"
2016-09-03 19:27:35 -07:00
2021-04-10 01:42:06 -07:00
namespace metaforce {
2016-09-03 19:27:35 -07:00
2018-01-29 17:04:01 -08:00
std::shared_ptr<CAnimTreeNode> CTreeUtils::GetTransitionTree(const std::weak_ptr<CAnimTreeNode>& a,
const std::weak_ptr<CAnimTreeNode>& b,
2018-12-07 21:30:43 -08:00
const CAnimSysContext& animCtx) {
CAnimTreeEffectiveContribution contribA = a.lock()->GetContributionOfHighestInfluence();
CAnimTreeEffectiveContribution contribB = b.lock()->GetContributionOfHighestInfluence();
return animCtx.x0_transDB->GetMetaTrans(contribA.GetAnimDatabaseIndex(), contribB.GetAnimDatabaseIndex())
->GetTransitionTree(a, b, animCtx);
2016-09-03 19:27:35 -07:00
}
2021-04-10 01:42:06 -07:00
} // namespace metaforce