mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-11 10:41:16 +00:00
* Implement misc.lib * Lowercase files * Minor changes * Fix file cases * Fixes * Fix missing dtor * Add override * Match LegoImage::Read * Fix delete call --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
31 lines
568 B
C++
31 lines
568 B
C++
#include "policestate.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
DECOMP_SIZE_ASSERT(PoliceState, 0x10)
|
|
|
|
// FUNCTION: LEGO1 0x1005e7c0
|
|
PoliceState::PoliceState()
|
|
{
|
|
m_unk0xc = 0;
|
|
m_unk0x8 = (rand() % 2 == 0) ? 501 : 500;
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x1005e990
|
|
MxResult PoliceState::VTable0x1c(LegoFile* p_legoFile)
|
|
{
|
|
if (p_legoFile->IsWriteMode()) {
|
|
p_legoFile->FUN_10006030(ClassName());
|
|
}
|
|
|
|
if (p_legoFile->IsReadMode()) {
|
|
p_legoFile->Read(&m_unk0x8, sizeof(m_unk0x8));
|
|
}
|
|
else {
|
|
undefined4 unk0x8 = m_unk0x8;
|
|
p_legoFile->Write(&unk0x8, sizeof(m_unk0x8));
|
|
}
|
|
|
|
return SUCCESS;
|
|
}
|