diff options
author | aap <aap@papnet.eu> | 2019-05-15 16:52:37 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-05-15 16:52:37 +0200 |
commit | 600bf0351476a5a21aabb5429132ddf7f52ac0b9 (patch) | |
tree | d8e48b3a581679e33830fb7c98ed69e1e242e2c2 /src/modelinfo/TimeModelInfo.h |
first commit
Diffstat (limited to 'src/modelinfo/TimeModelInfo.h')
-rw-r--r-- | src/modelinfo/TimeModelInfo.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/modelinfo/TimeModelInfo.h b/src/modelinfo/TimeModelInfo.h new file mode 100644 index 00000000..08e46bd3 --- /dev/null +++ b/src/modelinfo/TimeModelInfo.h @@ -0,0 +1,18 @@ +#pragma once + +#include "SimpleModelInfo.h" + +class CTimeModelInfo : public CSimpleModelInfo +{ + int32 m_timeOn; + int32 m_timeOff; + int32 m_otherTimeModelID; +public: + CTimeModelInfo(void) : CSimpleModelInfo(MITYPE_TIME) { m_otherTimeModelID = -1; } + + int32 GetTimeOn(void) { return m_timeOn; } + int32 GetTimeOff(void) { return m_timeOff; } + int32 GetOtherTimeModel(void) { return m_otherTimeModelID; } + CTimeModelInfo *FindOtherTimeModel(void); +}; +static_assert(sizeof(CTimeModelInfo) == 0x58, "CTimeModelInfo: error"); |