diff options
author | aap <aap@papnet.eu> | 2021-01-24 00:07:45 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2021-01-24 00:07:45 +0100 |
commit | c1a7ded1e4660e49d150b73b909c26ecb21bca54 (patch) | |
tree | d1766814b7e14276bb6fe208e941d324bd85a0de /src/modelinfo/BaseModelInfo.h | |
parent | fix merge failure (diff) | |
download | re3-c1a7ded1e4660e49d150b73b909c26ecb21bca54.tar re3-c1a7ded1e4660e49d150b73b909c26ecb21bca54.tar.gz re3-c1a7ded1e4660e49d150b73b909c26ecb21bca54.tar.bz2 re3-c1a7ded1e4660e49d150b73b909c26ecb21bca54.tar.lz re3-c1a7ded1e4660e49d150b73b909c26ecb21bca54.tar.xz re3-c1a7ded1e4660e49d150b73b909c26ecb21bca54.tar.zst re3-c1a7ded1e4660e49d150b73b909c26ecb21bca54.zip |
Diffstat (limited to '')
-rw-r--r-- | src/modelinfo/BaseModelInfo.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/src/modelinfo/BaseModelInfo.h b/src/modelinfo/BaseModelInfo.h index f3fddf20..496fdeaf 100644 --- a/src/modelinfo/BaseModelInfo.h +++ b/src/modelinfo/BaseModelInfo.h @@ -2,7 +2,7 @@ struct CColModel; -#define MAX_MODEL_NAME (21) +#define MAX_MODEL_NAME (24) enum ModelInfoType { @@ -23,9 +23,13 @@ class C2dEffect; class CBaseModelInfo { protected: - char *m_name; + uint32 m_unk1; + uint32 m_unk2; uint32 m_nameKey; - RwObject *m_object; + union { + char *m_name; // if not using chunks + void *m_chunk; // else + }; uint8 m_type; uint8 m_num2dEffects; bool m_bOwnsColModel; @@ -53,6 +57,13 @@ public: virtual void ConvertAnimFileIndex(void) {} virtual int GetAnimFileIndex(void) { return -1; } + virtual void LoadModel(void *,void const*) {}; // = 0; + virtual void DeleteChunk(void); + virtual void Write(base::cRelocatableChunkWriter &writer); + virtual void WriteModel(base::cRelocatableChunkWriter &writer) {} // = 0; + virtual void RcWriteThis(base::cRelocatableChunkWriter &writer) {} // = 0; + virtual void RcWriteEmpty(base::cRelocatableChunkWriter &writer) {} // = 0; + // one day it becomes virtual uint8 GetModelType() const { return m_type; } bool IsBuilding(void) { return m_type == MITYPE_SIMPLE || m_type == MITYPE_TIME; } @@ -74,7 +85,9 @@ public: void RemoveRef(void); void SetTexDictionary(const char *name); void AddTexDictionaryRef(void); + void AddTexDictionaryRefGu(void); void RemoveTexDictionaryRef(void); + void RemoveTexDictionaryRefGu(void); void Init2dEffects(void); void Add2dEffect(C2dEffect *fx); C2dEffect *Get2dEffect(int n); |