1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-06-18 13:23:12 +00:00
re3/src/modelinfo/TimeModelInfo.h

28 lines
902 B
C
Raw Permalink Normal View History

2019-05-15 14:52:37 +00:00
#pragma once
#include "SimpleModelInfo.h"
class CTimeModelInfo : public CSimpleModelInfo
{
int32 m_timeOn;
int32 m_timeOff;
int32 m_otherTimeModelID;
2021-01-24 13:06:16 +00:00
static base::cRelocatableChunkClassInfo msClassInfo;
static CTimeModelInfo msClassInstance;
2019-05-15 14:52:37 +00:00
public:
CTimeModelInfo(void) : CSimpleModelInfo(MITYPE_TIME) { m_otherTimeModelID = -1; }
2021-01-24 13:06:16 +00:00
virtual void RcWriteThis(base::cRelocatableChunkWriter &writer);
virtual void RcWriteEmpty(base::cRelocatableChunkWriter &writer);
2019-05-15 14:52:37 +00:00
int32 GetTimeOn(void) { return m_timeOn; }
int32 GetTimeOff(void) { return m_timeOff; }
2019-06-17 08:30:02 +00:00
void SetTimes(int32 on, int32 off) { m_timeOn = on; m_timeOff = off; }
2019-05-15 14:52:37 +00:00
int32 GetOtherTimeModel(void) { return m_otherTimeModelID; }
2019-06-17 08:30:02 +00:00
void SetOtherTimeModel(int32 other) { m_otherTimeModelID = other; }
2021-01-24 13:06:16 +00:00
CTimeModelInfo *FindOtherTimeModel(const char *name);
2019-05-15 14:52:37 +00:00
};
2020-05-07 19:55:54 +00:00
//static_assert(sizeof(CTimeModelInfo) == 0x58, "CTimeModelInfo: error");