CSimpleModelInfo

This commit is contained in:
aap
2021-01-24 13:40:33 +01:00
parent c1a7ded1e4
commit 8cbae5d62a
8 changed files with 300 additions and 44 deletions

View File

@@ -57,10 +57,13 @@ public:
virtual void ConvertAnimFileIndex(void) {}
virtual int GetAnimFileIndex(void) { return -1; }
virtual void LoadModel(void *,void const*) {}; // = 0;
virtual void LoadModel(void *model, const void *chunk) {}; // = 0;
virtual void DeleteChunk(void);
// this writes the modelinfo struct, possibly including actual RW models
virtual void Write(base::cRelocatableChunkWriter &writer);
virtual void WriteModel(base::cRelocatableChunkWriter &writer) {} // = 0;
// this writes the RW models
virtual void *WriteModel(base::cRelocatableChunkWriter &writer) { return nil; } // = 0; // this is not in the vtable for some reason???
// these allocate the space for a modelinfo struct and patch the vtable pointer
virtual void RcWriteThis(base::cRelocatableChunkWriter &writer) {} // = 0;
virtual void RcWriteEmpty(base::cRelocatableChunkWriter &writer) {} // = 0;