metaforce/Runtime/Character/CAnimationManager.hpp

31 lines
794 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 <memory>
#include "Runtime/CToken.hpp"
#include "Runtime/Character/CAnimSysContext.hpp"
2018-12-08 05:30:43 +00:00
namespace urde {
class CAnimTreeNode;
2016-04-13 06:07:23 +00:00
class CAnimationDatabaseGame;
class CSimplePool;
class CTransitionDatabaseGame;
2016-09-04 02:27:35 +00:00
class IMetaAnim;
struct CMetaAnimTreeBuildOrders;
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:
CAnimationManager(TToken<CAnimationDatabaseGame> animDB, CAnimSysContext sysCtx)
: x0_animDB(std::move(animDB)), x8_sysCtx(std::move(sysCtx)) {}
2016-04-13 06:07:23 +00:00
2018-12-08 05:30:43 +00:00
const CAnimationDatabaseGame* GetAnimationDatabase() const;
2018-12-15 06:29:41 +00:00
std::shared_ptr<CAnimTreeNode> GetAnimationTree(s32, const CMetaAnimTreeBuildOrders& orders) const;
const std::shared_ptr<IMetaAnim>& GetMetaAnimation(s32) const;
};
2018-12-08 05:30:43 +00:00
} // namespace urde