metaforce/Runtime/Character/CAnimationManager.cpp

21 lines
764 B
C++
Raw Normal View History

#include "Runtime/Character/CAnimationManager.hpp"
#include "Runtime/Character/CAnimationDatabaseGame.hpp"
#include "Runtime/Character/IMetaAnim.hpp"
2016-05-21 03:02:09 +00:00
2021-04-10 08:42:06 +00:00
namespace metaforce {
2016-05-21 03:02:09 +00:00
2018-12-08 05:30:43 +00:00
const CAnimationDatabaseGame* CAnimationManager::GetAnimationDatabase() const { return x0_animDB.GetObj(); }
2016-05-21 03:02:09 +00:00
2018-12-15 06:29:41 +00:00
std::shared_ptr<CAnimTreeNode> CAnimationManager::GetAnimationTree(s32 animIdx,
2018-12-08 05:30:43 +00:00
const CMetaAnimTreeBuildOrders& orders) const {
const std::shared_ptr<IMetaAnim>& anim = x0_animDB->GetMetaAnim(animIdx);
return anim->GetAnimationTree(x8_sysCtx, orders);
2016-09-04 02:27:35 +00:00
}
2018-12-15 06:29:41 +00:00
const std::shared_ptr<IMetaAnim>& CAnimationManager::GetMetaAnimation(s32 idx) const {
2018-12-08 05:30:43 +00:00
return x0_animDB->GetMetaAnim(idx);
2016-09-04 02:27:35 +00:00
}
2021-04-10 08:42:06 +00:00
} // namespace metaforce