diff options
author | aap <aap@papnet.eu> | 2021-01-24 14:06:16 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2021-01-24 14:06:16 +0100 |
commit | 9361aeb8eb281a3669b03d7d845aece483c95820 (patch) | |
tree | f96d341b95eabe331d1cdc72c9f8109b5168b968 /src/modelinfo/TimeModelInfo.h | |
parent | CSimpleModelInfo (diff) | |
download | re3-9361aeb8eb281a3669b03d7d845aece483c95820.tar re3-9361aeb8eb281a3669b03d7d845aece483c95820.tar.gz re3-9361aeb8eb281a3669b03d7d845aece483c95820.tar.bz2 re3-9361aeb8eb281a3669b03d7d845aece483c95820.tar.lz re3-9361aeb8eb281a3669b03d7d845aece483c95820.tar.xz re3-9361aeb8eb281a3669b03d7d845aece483c95820.tar.zst re3-9361aeb8eb281a3669b03d7d845aece483c95820.zip |
Diffstat (limited to 'src/modelinfo/TimeModelInfo.h')
-rw-r--r-- | src/modelinfo/TimeModelInfo.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/modelinfo/TimeModelInfo.h b/src/modelinfo/TimeModelInfo.h index 6e3c64fb..67273b21 100644 --- a/src/modelinfo/TimeModelInfo.h +++ b/src/modelinfo/TimeModelInfo.h @@ -7,14 +7,21 @@ class CTimeModelInfo : public CSimpleModelInfo int32 m_timeOn; int32 m_timeOff; int32 m_otherTimeModelID; + + static base::cRelocatableChunkClassInfo msClassInfo; + static CTimeModelInfo msClassInstance; + public: CTimeModelInfo(void) : CSimpleModelInfo(MITYPE_TIME) { m_otherTimeModelID = -1; } + virtual void RcWriteThis(base::cRelocatableChunkWriter &writer); + virtual void RcWriteEmpty(base::cRelocatableChunkWriter &writer); + int32 GetTimeOn(void) { return m_timeOn; } int32 GetTimeOff(void) { return m_timeOff; } void SetTimes(int32 on, int32 off) { m_timeOn = on; m_timeOff = off; } int32 GetOtherTimeModel(void) { return m_otherTimeModelID; } void SetOtherTimeModel(int32 other) { m_otherTimeModelID = other; } - CTimeModelInfo *FindOtherTimeModel(void); + CTimeModelInfo *FindOtherTimeModel(const char *name); }; //static_assert(sizeof(CTimeModelInfo) == 0x58, "CTimeModelInfo: error"); |