HospitalState ctor (#375)

* HospitalState ctor

* Add member offsets in HospitalState header

* Remove unhelpful comment

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
Joshua Peisach 2023-12-27 13:36:32 -05:00 committed by GitHub
parent c6174c2a13
commit d5854a46ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 2 deletions

View file

@ -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;
}

View file

@ -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