metaforce/Runtime/Character/CAnimationManager.hpp

28 lines
740 B
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2016-04-13 06:07:23 +00:00
#include "CToken.hpp"
#include "CAnimSysContext.hpp"
2018-12-08 05:30:43 +00:00
namespace urde {
2016-04-13 06:07:23 +00:00
class CAnimationDatabaseGame;
class CTransitionDatabaseGame;
class CSimplePool;
2016-09-04 02:27:35 +00:00
class CAnimTreeNode;
2016-09-11 01:25:59 +00:00
struct CMetaAnimTreeBuildOrders;
2016-09-04 02:27:35 +00:00
class IMetaAnim;
2018-12-08 05:30:43 +00:00
class CAnimationManager {
TToken<CAnimationDatabaseGame> x0_animDB;
CAnimSysContext x8_sysCtx;
2016-04-13 06:07:23 +00:00
public:
2018-12-08 05:30:43 +00:00
CAnimationManager(const TToken<CAnimationDatabaseGame>& animDB, const CAnimSysContext& sysCtx)
: x0_animDB(animDB), x8_sysCtx(sysCtx) {}
2016-04-13 06:07:23 +00:00
2018-12-08 05:30:43 +00:00
const CAnimationDatabaseGame* GetAnimationDatabase() const;
std::shared_ptr<CAnimTreeNode> GetAnimationTree(u32, const CMetaAnimTreeBuildOrders& orders) const;
const std::shared_ptr<IMetaAnim>& GetMetaAnimation(u32) const;
};
2018-12-08 05:30:43 +00:00
} // namespace urde