From d5854a46aed638b5d646022976327c8d480044c7 Mon Sep 17 00:00:00 2001 From: Joshua Peisach Date: Wed, 27 Dec 2023 13:36:32 -0500 Subject: [PATCH] HospitalState ctor (#375) * HospitalState ctor * Add member offsets in HospitalState header * Remove unhelpful comment --------- Co-authored-by: Christian Semmler --- LEGO1/hospitalstate.cpp | 11 +++++++++-- LEGO1/hospitalstate.h | 10 ++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/LEGO1/hospitalstate.cpp b/LEGO1/hospitalstate.cpp index b1727b74..4f865128 100644 --- a/LEGO1/hospitalstate.cpp +++ b/LEGO1/hospitalstate.cpp @@ -1,7 +1,14 @@ #include "hospitalstate.h" -// STUB: LEGO1 0x10076370 +DECOMP_SIZE_ASSERT(HospitalState, 0x18) + +// FUNCTION: LEGO1 0x10076370 HospitalState::HospitalState() { - // TODO + this->m_unk0xc = 0; + this->m_unk0xe = 0; + this->m_unk0x10 = 0; + this->m_unk0x12 = 0; + this->m_unk0x14 = 0; + this->m_unk0x16 = 0; } diff --git a/LEGO1/hospitalstate.h b/LEGO1/hospitalstate.h index 795342b0..8b24a3d5 100644 --- a/LEGO1/hospitalstate.h +++ b/LEGO1/hospitalstate.h @@ -1,6 +1,7 @@ #ifndef HOSPITALSTATE_H #define HOSPITALSTATE_H +#include "decomp.h" #include "legostate.h" // VTABLE: LEGO1 0x100d97a0 @@ -21,6 +22,15 @@ class HospitalState : public LegoState { { return !strcmp(p_name, HospitalState::ClassName()) || LegoState::IsA(p_name); } + +private: + undefined m_unk0x8[4]; // 0x8 + undefined2 m_unk0xc; // 0xc + undefined2 m_unk0xe; // 0xe + undefined2 m_unk0x10; // 0x10 + undefined2 m_unk0x12; // 0x12 + undefined2 m_unk0x14; // 0x14 + undefined2 m_unk0x16; // 0x16 }; #endif // HOSPITALSTATE_H