implement/match Hospital::Create() (#665)

This commit is contained in:
Ramen2X
2024-03-13 11:45:27 -04:00
committed by GitHub
parent 06080b6492
commit 4aafc435f5
3 changed files with 74 additions and 35 deletions

View File

@@ -2,6 +2,7 @@
#define HOSPITAL_H
#include "decomp.h"
#include "hospitalstate.h"
#include "legoworld.h"
// VTABLE: LEGO1 0x100d9730
@@ -37,19 +38,19 @@ public:
// Hospital::`scalar deleting destructor'
private:
undefined2 m_unk0xf8; // 0xf8
undefined4 m_unk0xfc; // 0xfc
undefined2 m_unk0x100; // 0x100
undefined4 m_unk0x104; // 0x104 - VTable0x18 suggests this may be pointer to a LegoGameState
undefined2 m_unk0x108; // 0x108
undefined4 m_unk0x10c; // 0x10c
undefined4 m_unk0x110; // 0x110
undefined4 m_unk0x114; // 0x114
undefined m_unk0x118; // 0x118
undefined4 m_unk0x11c; // 0x11c
undefined4 m_unk0x120; // 0x120
undefined m_unk0x124[4]; // 0x124
undefined m_unk0x128; // 0x128
undefined2 m_unk0xf8; // 0xf8
undefined4 m_unk0xfc; // 0xfc
undefined2 m_unk0x100; // 0x100
HospitalState* m_hospitalState; // 0x104
undefined2 m_unk0x108; // 0x108
undefined4 m_unk0x10c; // 0x10c
undefined4 m_unk0x110; // 0x110
undefined4 m_unk0x114; // 0x114
undefined m_unk0x118; // 0x118
undefined4 m_unk0x11c; // 0x11c
undefined4 m_unk0x120; // 0x120
undefined m_unk0x124[4]; // 0x124
undefined m_unk0x128; // 0x128
};
#endif // HOSPITAL_H

View File

@@ -2,12 +2,18 @@
#define HOSPITALSTATE_H
#include "decomp.h"
#include "hospital_actions.h"
#include "legostate.h"
// VTABLE: LEGO1 0x100d97a0
// SIZE 0x18
class HospitalState : public LegoState {
public:
// SIZE 0x04
struct Unknown0x08 {
undefined4 m_unk0x00; // 0x00
};
HospitalState();
~HospitalState() override {}
@@ -29,14 +35,16 @@ public:
// SYNTHETIC: LEGO1 0x100764c0
// HospitalState::`scalar deleting destructor'
friend class Hospital;
private:
undefined m_unk0x08[4]; // 0x08
undefined2 m_unk0x0c; // 0x0c
undefined2 m_unk0x0e; // 0x0e
undefined2 m_unk0x10; // 0x10
undefined2 m_unk0x12; // 0x12
undefined2 m_unk0x14; // 0x14
undefined2 m_unk0x16; // 0x16
Unknown0x08 m_unk0x08; // 0x08
undefined2 m_unk0x0c; // 0x0c
undefined2 m_unk0x0e; // 0x0e
undefined2 m_unk0x10; // 0x10
undefined2 m_unk0x12; // 0x12
undefined2 m_unk0x14; // 0x14
undefined2 m_unk0x16; // 0x16
};
#endif // HOSPITALSTATE_H