mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 18:51:16 +00:00
Implmement PoliceState::VTable0x1c
This commit is contained in:
parent
961282e3c6
commit
37b068e2df
@ -26,6 +26,8 @@ class PoliceState : public LegoState {
|
|||||||
// SYNTHETIC: LEGO1 0x1005e920
|
// SYNTHETIC: LEGO1 0x1005e920
|
||||||
// PoliceState::`scalar deleting destructor'
|
// PoliceState::`scalar deleting destructor'
|
||||||
|
|
||||||
|
virtual MxResult VTable0x1c(LegoFileStream* p_legoFileStream) override; // vtable+0x1C
|
||||||
|
|
||||||
private:
|
private:
|
||||||
undefined4 m_unk0x8; // 0x8
|
undefined4 m_unk0x8; // 0x8
|
||||||
undefined4 m_unk0xc; // 0xc
|
undefined4 m_unk0xc; // 0xc
|
||||||
|
|||||||
@ -10,3 +10,18 @@ PoliceState::PoliceState()
|
|||||||
m_unk0xc = 0;
|
m_unk0xc = 0;
|
||||||
m_unk0x8 = (rand() % 2 == 0) ? 501 : 500;
|
m_unk0x8 = (rand() % 2 == 0) ? 501 : 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FUNCTION: LEGO1 0x1005e990
|
||||||
|
MxResult PoliceState::VTable0x1c(LegoFileStream* p_legoFileStream)
|
||||||
|
{
|
||||||
|
if (p_legoFileStream->IsWriteMode()) {
|
||||||
|
p_legoFileStream->FUN_10006030(this->ClassName());
|
||||||
|
}
|
||||||
|
if (p_legoFileStream->IsReadMode()) {
|
||||||
|
p_legoFileStream->Write(&m_unk0x8, sizeof(MxU32));
|
||||||
|
}
|
||||||
|
else if (p_legoFileStream->IsWriteMode()) {
|
||||||
|
p_legoFileStream->Read(&m_unk0x8, sizeof(MxU32));
|
||||||
|
}
|
||||||
|
return SUCCESS;
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user