ElevatorBottom ctor/dtor (#436)

* ElevatorBottom ctor

* ElevatorBottom destructor

* Use setters

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
Joshua Peisach
2024-01-14 16:58:00 -05:00
committed by GitHub
parent dd72bcc666
commit 763fcf8980
5 changed files with 29 additions and 9 deletions

View File

@@ -1,15 +1,28 @@
#include "elevatorbottom.h"
// STUB: LEGO1 0x10017e90
DECOMP_SIZE_ASSERT(ElevatorBottom, 0xfc)
#include "legocontrolmanager.h"
#include "legoinputmanager.h"
#include "legoomni.h"
#include "mxnotificationmanager.h"
#include "mxomni.h"
// FUNCTION: LEGO1 0x10017e90
ElevatorBottom::ElevatorBottom()
{
// TODO
NotificationManager()->Register(this);
this->m_unk0xf8 = 0;
}
// STUB: LEGO1 0x10018060
// FUNCTION: LEGO1 0x10018060
ElevatorBottom::~ElevatorBottom()
{
// TODO
if (InputManager()->GetWorld() == this) {
InputManager()->ClearWorld();
}
ControlManager()->Unregister(this);
NotificationManager()->Unregister(this);
}
// STUB: LEGO1 0x10018150