From 8cbae5d62afa975a51ce7ec9be3018b473d81011 Mon Sep 17 00:00:00 2001 From: aap Date: Sun, 24 Jan 2021 13:40:33 +0100 Subject: CSimpleModelInfo --- src/modelinfo/BaseModelInfo.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/modelinfo/BaseModelInfo.h') diff --git a/src/modelinfo/BaseModelInfo.h b/src/modelinfo/BaseModelInfo.h index 496fdeaf..218a9346 100644 --- a/src/modelinfo/BaseModelInfo.h +++ b/src/modelinfo/BaseModelInfo.h @@ -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; -- cgit v1.2.3