mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
Implement InfoCenter folder vtable stubs (#456)
* Implement InfoCenter vtable stubs * fix build * Update infocenterdoor.cpp * Update infocenterdoor.cpp * Update legoworld.h * Update elevatorbottom.h --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
DECOMP_SIZE_ASSERT(ElevatorBottom, 0xfc)
|
||||
|
||||
#include "legocontrolmanager.h"
|
||||
#include "legogamestate.h"
|
||||
#include "legoinputmanager.h"
|
||||
#include "legoomni.h"
|
||||
#include "mxnotificationmanager.h"
|
||||
@@ -25,10 +26,58 @@ ElevatorBottom::~ElevatorBottom()
|
||||
NotificationManager()->Unregister(this);
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100180f0
|
||||
MxResult ElevatorBottom::Create(MxDSAction& p_dsAction)
|
||||
{
|
||||
MxResult result = LegoWorld::Create(p_dsAction);
|
||||
if (result == SUCCESS) {
|
||||
InputManager()->SetWorld(this);
|
||||
ControlManager()->Register(this);
|
||||
}
|
||||
|
||||
SetIsWorldActive(FALSE);
|
||||
|
||||
GameState()->SetUnknown424(5);
|
||||
GameState()->FUN_1003a720(0);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10018150
|
||||
MxLong ElevatorBottom::Notify(MxParam& p_param)
|
||||
{
|
||||
// TODO
|
||||
|
||||
return 0;
|
||||
return LegoWorld::Notify(p_param);
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100181b0
|
||||
void ElevatorBottom::VTable0x50()
|
||||
{
|
||||
LegoWorld::VTable0x50();
|
||||
PlayMusic(11);
|
||||
FUN_10015820(FALSE, LegoOmni::c_disableInput | LegoOmni::c_disable3d | LegoOmni::c_clearScreen);
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100182c0
|
||||
void ElevatorBottom::VTable0x68(MxBool p_add)
|
||||
{
|
||||
LegoWorld::VTable0x68(p_add);
|
||||
|
||||
if (p_add) {
|
||||
InputManager()->SetWorld(this);
|
||||
SetIsWorldActive(FALSE);
|
||||
}
|
||||
else {
|
||||
if (InputManager()->GetWorld() == this) {
|
||||
InputManager()->ClearWorld();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10018310
|
||||
MxBool ElevatorBottom::VTable0x64()
|
||||
{
|
||||
DeleteObjects(&m_atom, 500, 999);
|
||||
m_unk0xf8 = 2;
|
||||
return TRUE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user