mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 11:07:44 +00:00
Several CAnimData integrations
This commit is contained in:
20
Runtime/Character/CTreeUtils.cpp
Normal file
20
Runtime/Character/CTreeUtils.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#include "CTreeUtils.hpp"
|
||||
#include "CAnimTreeNode.hpp"
|
||||
#include "CAnimSysContext.hpp"
|
||||
#include "CTransitionDatabaseGame.hpp"
|
||||
#include "IMetaTrans.hpp"
|
||||
|
||||
namespace urde
|
||||
{
|
||||
|
||||
std::shared_ptr<CAnimTreeNode> CTreeUtils::GetTransitionTree(const std::shared_ptr<CAnimTreeNode>& a,
|
||||
const std::shared_ptr<CAnimTreeNode>& b,
|
||||
const CAnimSysContext& animCtx)
|
||||
{
|
||||
CAnimTreeEffectiveContribution contribA = a->GetContributionOfHighestInfluence();
|
||||
CAnimTreeEffectiveContribution contribB = b->GetContributionOfHighestInfluence();
|
||||
return animCtx.x0_transDB->GetMetaTrans(contribA.GetAnimDatabaseIndex(),
|
||||
contribB.GetAnimDatabaseIndex())->GetTransitionTree(a, b, animCtx);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user