Hospital ctor

This commit is contained in:
Joshua Peisach 2024-01-01 14:09:58 -05:00
parent 1e43f20af5
commit 4f5bf7f2f2
No known key found for this signature in database
GPG Key ID: 41C3D4189AFEDB5A
2 changed files with 40 additions and 2 deletions

View File

@ -1,9 +1,26 @@
#include "hospital.h"
// STUB: LEGO1 0x100745e0
#include "mxnotificationmanager.h"
#include "mxomni.h"
DECOMP_SIZE_ASSERT(Hospital, 0x12c)
// FUNCTION: LEGO1 0x100745e0
Hospital::Hospital()
{
// TODO
this->m_unk0xf8 = 0;
this->m_unk0x100 = 0;
this->m_unk0x104 = 0;
this->m_unk0x108 = 0;
this->m_unk0xfc = 0;
this->m_unk0x10c = 0;
this->m_unk0x110 = 0;
this->m_unk0x114 = 0;
this->m_unk0x118 = 0;
this->m_unk0x11c = 0;
this->m_unk0x120 = 0;
this->m_unk0x128 = 0;
NotificationManager()->Register(this);
}
// STUB: LEGO1 0x100747f0

View File

@ -1,6 +1,7 @@
#ifndef HOSPITAL_H
#define HOSPITAL_H
#include "decomp.h"
#include "legoworld.h"
// VTABLE: LEGO1 0x100d9730
@ -24,6 +25,26 @@ class Hospital : public LegoWorld {
{
return !strcmp(p_name, Hospital::ClassName()) || LegoWorld::IsA(p_name);
}
private:
undefined2 m_unk0xf8; // 0xf8
undefined m_unk0xfa[2]; // 0xfa
undefined4 m_unk0xfc; // 0xfc
undefined2 m_unk0x100; // 0x100
undefined m_unk0x102[2]; // 0x102
undefined4 m_unk0x104; // 0x104 - VTable0x18 suggests this may be pointer to a LegoGameState
undefined2 m_unk0x108; // 0x108
undefined m_unk0x10a[2]; // 0x10a
undefined4 m_unk0x10c; // 0x10c
undefined4 m_unk0x110; // 0x110
undefined4 m_unk0x114; // 0x114
undefined m_unk0x118; // 0x118
undefined m_unk0x119[3]; // 0x119
undefined4 m_unk0x11c; // 0x11c
undefined4 m_unk0x120; // 0x120
undefined m_unk0x124[4]; // 0x124
undefined m_unk0x128; // 0x128
undefined m_unk0x129[3]; // 0x129
};
#endif // HOSPITAL_H