DatFile.h 578 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef DATFILE_H
  2. #define DATFILE_H
  3. #include "common/LzsFile.h"
  4. struct DatModelData
  5. {
  6. int face_id;
  7. int number_of_bones;
  8. int number_of_parts;
  9. int number_of_animation;
  10. int global_model_id;
  11. };
  12. class DatFile : public LzsFile
  13. {
  14. public:
  15. explicit DatFile(const Ogre::String& file);
  16. explicit DatFile(File* file);
  17. DatFile(File* file, const u32 offset, const u32 length);
  18. DatFile(u8* buffer, const u32 offset, const u32 length);
  19. virtual ~DatFile();
  20. void GetModelData( const int model_id, DatModelData& data );
  21. };
  22. #endif // DATFILE_H