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