mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-24 00:44:21 +00:00
Implement LegoWorld::Enable (#516)
* WIP VTable0x68 * Improve match * Match * Fix * Fix * Move vars * Match * Add call to Isle * Rename functions * Fix style
This commit is contained in:
committed by
GitHub
parent
a7acf8c607
commit
558bda4dd2
@@ -116,11 +116,11 @@ MxLong ElevatorBottom::HandleClick(LegoControlManagerEvent& p_param)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100182c0
|
||||
void ElevatorBottom::VTable0x68(MxBool p_add)
|
||||
void ElevatorBottom::Enable(MxBool p_enable)
|
||||
{
|
||||
LegoWorld::VTable0x68(p_add);
|
||||
LegoWorld::Enable(p_enable);
|
||||
|
||||
if (p_add) {
|
||||
if (p_enable) {
|
||||
InputManager()->SetWorld(this);
|
||||
SetIsWorldActive(FALSE);
|
||||
}
|
||||
|
||||
@@ -709,11 +709,11 @@ MxLong Infocenter::HandleNotification0(MxNotificationParam& p_param)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10070aa0
|
||||
void Infocenter::VTable0x68(MxBool p_add)
|
||||
void Infocenter::Enable(MxBool p_enable)
|
||||
{
|
||||
LegoWorld::VTable0x68(p_add);
|
||||
LegoWorld::Enable(p_enable);
|
||||
|
||||
if (p_add) {
|
||||
if (p_enable) {
|
||||
InputManager()->SetWorld(this);
|
||||
SetIsWorldActive(FALSE);
|
||||
}
|
||||
|
||||
@@ -140,11 +140,11 @@ MxLong InfocenterDoor::HandleClick(LegoControlManagerEvent& p_param)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10037c80
|
||||
void InfocenterDoor::VTable0x68(MxBool p_add)
|
||||
void InfocenterDoor::Enable(MxBool p_enable)
|
||||
{
|
||||
LegoWorld::VTable0x68(p_add);
|
||||
LegoWorld::Enable(p_enable);
|
||||
|
||||
if (p_add) {
|
||||
if (p_enable) {
|
||||
InputManager()->SetWorld(this);
|
||||
SetIsWorldActive(FALSE);
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ MxResult RegistrationBook::Tickle()
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10078180
|
||||
void RegistrationBook::VTable0x68(MxBool p_add)
|
||||
void RegistrationBook::Enable(MxBool p_enable)
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
@@ -217,11 +217,11 @@ MxLong Score::FUN_100016d0(LegoControlManagerEvent& p_param)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10001980
|
||||
void Score::VTable0x68(MxBool p_add)
|
||||
void Score::Enable(MxBool p_enable)
|
||||
{
|
||||
LegoWorld::VTable0x68(p_add);
|
||||
LegoWorld::Enable(p_enable);
|
||||
|
||||
if (p_add) {
|
||||
if (p_enable) {
|
||||
InputManager()->SetWorld(this);
|
||||
SetIsWorldActive(FALSE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user