2016-04-13 06:07:23 +00:00
|
|
|
#ifndef __URDE_CANIMATIONDATABASEGAME_HPP__
|
|
|
|
#define __URDE_CANIMATIONDATABASEGAME_HPP__
|
2015-08-22 01:58:41 +00:00
|
|
|
|
|
|
|
#include "CAnimationDatabase.hpp"
|
|
|
|
|
2016-03-04 23:04:53 +00:00
|
|
|
namespace urde
|
2015-08-22 01:58:41 +00:00
|
|
|
{
|
2016-04-13 06:07:23 +00:00
|
|
|
class CAnimation;
|
2015-08-22 01:58:41 +00:00
|
|
|
|
|
|
|
class CAnimationDatabaseGame : public CAnimationDatabase
|
|
|
|
{
|
2016-04-13 06:07:23 +00:00
|
|
|
std::vector<std::shared_ptr<IMetaAnim>> x10_anims;
|
2015-08-22 01:58:41 +00:00
|
|
|
public:
|
2016-04-13 06:07:23 +00:00
|
|
|
CAnimationDatabaseGame(const std::vector<CAnimation>& anims);
|
|
|
|
const std::shared_ptr<IMetaAnim>& GetMetaAnim(u32 idx) const;
|
2015-08-22 01:58:41 +00:00
|
|
|
u32 GetNumMetaAnims() const;
|
2016-04-13 06:07:23 +00:00
|
|
|
const char* GetMetaAnimName(u32 idx) const;
|
|
|
|
void GetAllUniquePrimitives(std::vector<CPrimitive>& primsOut) const;
|
2017-11-13 06:19:18 +00:00
|
|
|
void GetUniquePrimitivesFromMetaAnim(std::set<CPrimitive>& primsOut, std::string_view name) const;
|
2015-08-22 01:58:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-04-13 06:07:23 +00:00
|
|
|
#endif // __URDE_CANIMATIONDATABASEGAME_HPP__
|