Consolidate state and building entity classes (#989)

This commit is contained in:
Christian Semmler
2024-06-03 12:53:25 -04:00
committed by GitHub
parent 73bb37596e
commit 133a312aee
107 changed files with 2190 additions and 2569 deletions

View File

@@ -1,7 +1,6 @@
#include "gasstation.h"
#include "garage_actions.h"
#include "gasstationstate.h"
#include "islepathactor.h"
#include "jukebox.h"
#include "jukebox_actions.h"
@@ -21,6 +20,7 @@
#include "scripts.h"
DECOMP_SIZE_ASSERT(GasStation, 0x128)
DECOMP_SIZE_ASSERT(GasStationState, 0x24)
// GLOBAL: LEGO1 0x100f0160
undefined4 g_unk0x100f0160 = 3;
@@ -419,3 +419,37 @@ MxBool GasStation::Escape()
m_destLocation = LegoGameState::Area::e_infomain;
return TRUE;
}
// FUNCTION: LEGO1 0x10005eb0
GasStationState::GasStationState()
{
m_unk0x18 = 0;
m_unk0x1a = 0;
m_unk0x1c = 0;
m_unk0x1e = 0;
m_unk0x20 = 0;
undefined4* unk0x08 = m_unk0x08;
unk0x08[0] = -1;
unk0x08[1] = -1;
unk0x08[2] = -1;
}
// STUB: LEGO1 0x10006300
MxResult GasStationState::Serialize(LegoFile* p_legoFile)
{
// TODO
return LegoState::Serialize(p_legoFile);
}
// STUB: LEGO1 0x10006430
void GasStationState::FUN_10006430(undefined4)
{
// TODO
}
// STUB: LEGO1 0x10006490
void GasStationState::FUN_10006490()
{
// TODO
}