mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-24 08:54:15 +00:00
Implement/match remaining LegoWorld functions (#526)
* Implement/match remaining LegoWorld functions * Move functions * Move function * Fix function location * Fix function return type
This commit is contained in:
committed by
GitHub
parent
d324fd664a
commit
434deecee4
@@ -265,16 +265,32 @@ done:
|
||||
return m_cameraController;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x1001fc80
|
||||
// FUNCTION: LEGO1 0x1001fc80
|
||||
void LegoWorld::FUN_1001fc80(IslePathActor* p_actor)
|
||||
{
|
||||
LegoPathControllerListCursor cursor(&m_list0x68);
|
||||
LegoPathController* controller;
|
||||
|
||||
while (cursor.Next(controller)) {
|
||||
if (!controller->FUN_10046770(p_actor)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10020120
|
||||
MxS32 LegoWorld::GetCurrPathInfo(LegoPathBoundary** p_path, MxS32& p_value)
|
||||
// FUNCTION: LEGO1 0x10020120
|
||||
MxResult LegoWorld::GetCurrPathInfo(LegoPathBoundary** p_path, MxS32& p_value)
|
||||
{
|
||||
// TODO
|
||||
return 0;
|
||||
LegoPathControllerListCursor cursor(&m_list0x68);
|
||||
LegoPathController* controller;
|
||||
|
||||
cursor.Next(controller);
|
||||
|
||||
if (!controller) {
|
||||
return FAILURE;
|
||||
}
|
||||
|
||||
return controller->FUN_10046b30(p_path, p_value);
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10020220
|
||||
|
||||
@@ -748,7 +748,7 @@ MxBool LegoOmni::DoesEntityExist(MxDSAction& p_dsAction)
|
||||
MxS32 LegoOmni::GetCurrPathInfo(LegoPathBoundary** p_path, MxS32& p_value)
|
||||
{
|
||||
if (::CurrentWorld() == NULL) {
|
||||
return -1;
|
||||
return FAILURE;
|
||||
}
|
||||
|
||||
return ::CurrentWorld()->GetCurrPathInfo(p_path, p_value);
|
||||
|
||||
@@ -25,6 +25,18 @@ MxResult LegoPathController::Tickle()
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10046770
|
||||
undefined4 LegoPathController::FUN_10046770(IslePathActor* p_actor)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10046b30
|
||||
MxResult LegoPathController::FUN_10046b30(LegoPathBoundary** p_path, MxS32& p_value)
|
||||
{
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10046be0
|
||||
void LegoPathController::Enable(MxBool p_enable)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user