2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-04-13 06:07:23 +00:00
|
|
|
|
2019-09-28 02:53:03 +00:00
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include "Runtime/CToken.hpp"
|
|
|
|
#include "Runtime/Character/CAnimSysContext.hpp"
|
2016-04-12 22:28:08 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2019-09-28 02:53:03 +00:00
|
|
|
class CAnimTreeNode;
|
2016-04-13 06:07:23 +00:00
|
|
|
class CAnimationDatabaseGame;
|
|
|
|
class CSimplePool;
|
2019-09-28 02:53:03 +00:00
|
|
|
class CTransitionDatabaseGame;
|
2016-09-04 02:27:35 +00:00
|
|
|
class IMetaAnim;
|
2016-04-12 22:28:08 +00:00
|
|
|
|
2019-09-28 02:53:03 +00:00
|
|
|
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:
|
2020-03-09 15:27:34 +00:00
|
|
|
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;
|
2016-04-12 22:28:08 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|