metaforce/Runtime/Character/CAnimationManager.cpp

27 lines
663 B
C++
Raw Normal View History

2016-05-21 03:02:09 +00:00
#include "CAnimationManager.hpp"
#include "CAnimationDatabaseGame.hpp"
#include "CTransitionDatabaseGame.hpp"
2016-09-04 02:27:35 +00:00
#include "IMetaAnim.hpp"
2016-05-21 03:02:09 +00:00
namespace urde
{
const CAnimationDatabaseGame* CAnimationManager::GetAnimationDatabase() const
{
return x0_animDB.GetObj();
}
2016-09-04 02:27:35 +00:00
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);
}
2016-05-21 03:02:09 +00:00
}