2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2015-08-22 01:58:41 +00:00
|
|
|
|
|
|
|
#include "CAnimationDatabase.hpp"
|
|
|
|
|
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:
|
2018-12-08 05:30:43 +00:00
|
|
|
CAnimationDatabaseGame(const std::vector<CAnimation>& anims);
|
|
|
|
const std::shared_ptr<IMetaAnim>& GetMetaAnim(u32 idx) const;
|
|
|
|
u32 GetNumMetaAnims() const;
|
|
|
|
const char* GetMetaAnimName(u32 idx) const;
|
|
|
|
void GetAllUniquePrimitives(std::vector<CPrimitive>& primsOut) const;
|
|
|
|
void GetUniquePrimitivesFromMetaAnim(std::set<CPrimitive>& primsOut, std::string_view name) const;
|
2015-08-22 01:58:41 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|