2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2015-08-22 01:58:41 +00:00
|
|
|
|
2019-09-28 02:53:03 +00:00
|
|
|
#include <memory>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "Runtime/Character/CAnimationDatabase.hpp"
|
2015-08-22 01:58:41 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2016-04-13 06:07:23 +00:00
|
|
|
class CAnimation;
|
2015-08-22 01:58:41 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CAnimationDatabaseGame final : public CAnimationDatabase {
|
|
|
|
std::vector<std::shared_ptr<IMetaAnim>> x10_anims;
|
|
|
|
|
2015-08-22 01:58:41 +00:00
|
|
|
public:
|
2020-03-31 03:52:22 +00:00
|
|
|
explicit CAnimationDatabaseGame(const std::vector<CAnimation>& anims);
|
2019-08-09 19:46:49 +00:00
|
|
|
const std::shared_ptr<IMetaAnim>& GetMetaAnim(s32 idx) const override;
|
|
|
|
u32 GetNumMetaAnims() const override;
|
|
|
|
const char* GetMetaAnimName(s32 idx) const override;
|
|
|
|
void GetAllUniquePrimitives(std::vector<CPrimitive>& primsOut) const override;
|
|
|
|
void GetUniquePrimitivesFromMetaAnim(std::set<CPrimitive>& primsOut, std::string_view name) const override;
|
2015-08-22 01:58:41 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|