mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 04:27:42 +00:00
Several CAnimData integrations
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "CAnimationManager.hpp"
|
||||
#include "CAnimationDatabaseGame.hpp"
|
||||
#include "CTransitionDatabaseGame.hpp"
|
||||
#include "IMetaAnim.hpp"
|
||||
|
||||
namespace urde
|
||||
{
|
||||
@@ -10,4 +11,16 @@ const CAnimationDatabaseGame* CAnimationManager::GetAnimationDatabase() const
|
||||
return x0_animDB.GetObj();
|
||||
}
|
||||
|
||||
std::shared_ptr<CAnimTreeNode>
|
||||
CAnimationManager::GetAnimationTree(u32 animIdx, const CMetaAnimTreeBuildOrders& orders) const
|
||||
{
|
||||
const std::shared_ptr<IMetaAnim>& anim = x0_animDB->GetMetaAnim(animIdx);
|
||||
return anim->GetAnimationTree(x8_sysCtx, orders);
|
||||
}
|
||||
|
||||
const std::shared_ptr<IMetaAnim>& CAnimationManager::GetMetaAnimation(u32 idx) const
|
||||
{
|
||||
return x0_animDB->GetMetaAnim(idx);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user