2019-05-15 16:52:37 +02:00
|
|
|
#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; }
|
2019-06-17 10:30:02 +02:00
|
|
|
void SetTimes(int32 on, int32 off) { m_timeOn = on; m_timeOff = off; }
|
2019-05-15 16:52:37 +02:00
|
|
|
int32 GetOtherTimeModel(void) { return m_otherTimeModelID; }
|
2019-06-17 10:30:02 +02:00
|
|
|
void SetOtherTimeModel(int32 other) { m_otherTimeModelID = other; }
|
2019-05-15 16:52:37 +02:00
|
|
|
CTimeModelInfo *FindOtherTimeModel(void);
|
|
|
|
};
|
2020-05-10 15:54:37 +02:00
|
|
|
|
|
|
|
#ifdef CHECK_STRUCT_SIZES
|
2019-05-15 16:52:37 +02:00
|
|
|
static_assert(sizeof(CTimeModelInfo) == 0x58, "CTimeModelInfo: error");
|
2020-05-10 15:54:37 +02:00
|
|
|
#endif
|