31 static bool HasCodec(UInt_64 hashExt);
33 static bool HasCodec(
const Str_8& ext);
35 static bool AddCodec(
MdlCodec codec);
37 static const MdlCodec* GetCodec(UInt_64 hashExt);
55 Mdl& operator=(
Mdl&& model)
noexcept;
61 UInt_64 GetHashId()
const;
63 void SetId(
Str_8 newId);
71 Mesh* GetMesh(UInt_64 inHashId);
75 const Bone& GetSkeleton()
const;
79 Animation* GetAnimation(UInt_64 inHashId);
87 bool Export(
const Str_8& filePath)
const;
Definition: Animation.h:11
Definition: MdlCodec.h:16
Array< Mesh > meshes
Definition: Mdl.h:26
Str_8 id
Definition: Mdl.h:25
Array< Animation > animations
Definition: Mdl.h:28
Mdl(const Mdl &model)=default
UInt_64 hashId
Definition: Mdl.h:24
Mdl & operator=(const Mdl &model)=default
Bone skeleton
Definition: Mdl.h:27
unsigned char UInt_8
Definition: Types.h:43
bool EncodeEHM(const MdlCodec *codec, Serializer< UInt_64 > &data, const Mdl *mdl)
Definition: Mdl.cpp:220
bool DecodeEHM(const MdlCodec *codec, Serializer< UInt_64 > &data, Mdl *mdl)
Definition: Mdl.cpp:246
ModelEncoding
Definition: Mdl.h:14