mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 12:27:43 +00:00
New code style refactor
This commit is contained in:
@@ -4,17 +4,15 @@
|
||||
#include "CTransitionDatabaseGame.hpp"
|
||||
#include "IMetaTrans.hpp"
|
||||
|
||||
namespace urde
|
||||
{
|
||||
namespace urde {
|
||||
|
||||
std::shared_ptr<CAnimTreeNode> CTreeUtils::GetTransitionTree(const std::weak_ptr<CAnimTreeNode>& a,
|
||||
const std::weak_ptr<CAnimTreeNode>& b,
|
||||
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);
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace urde
|
||||
|
||||
Reference in New Issue
Block a user