Implement/match LegoNavController::Notify (#1253)

* Implement/match `LegoNavController::Notify`

* Move function

* Add to total function count

* Add OPT:REF to lego1
This commit is contained in:
Christian Semmler
2024-12-21 14:41:47 -07:00
committed by GitHub
parent bcc41256f8
commit fe2a65c8da
22 changed files with 467 additions and 89 deletions

View File

@@ -1138,7 +1138,7 @@ MxResult LegoAnimationManager::FUN_10060dc0(
MxU32 p_objectId,
MxMatrix* p_matrix,
MxBool p_param3,
MxBool p_param4,
MxU8 p_param4,
LegoROI* p_roi,
MxBool p_param6,
MxBool p_param7,
@@ -1159,10 +1159,10 @@ MxResult LegoAnimationManager::FUN_10060dc0(
MxBool unk0x0a;
switch (p_param4) {
case FALSE:
case e_unk0:
unk0x0a = m_anims[i].m_unk0x0a;
break;
case TRUE:
case e_unk1:
unk0x0a = TRUE;
break;
default:

View File

@@ -221,6 +221,24 @@ done:
return result;
}
// FUNCTION: LEGO1 0x100834d0
// FUNCTION: BETA10 0x100742eb
const char* LegoCharacterManager::GetActorName(MxS32 p_index)
{
if (p_index < sizeOfArray(g_actorInfo)) {
return g_actorInfo[p_index].m_name;
}
return NULL;
}
// FUNCTION: LEGO1 0x100834f0
// FUNCTION: BETA10 0x1007432a
MxU32 LegoCharacterManager::GetNumActors()
{
return sizeOfArray(g_actorInfo);
}
// FUNCTION: LEGO1 0x10083500
// FUNCTION: BETA10 0x10074345
LegoROI* LegoCharacterManager::GetActorROI(const char* p_name, MxBool p_createEntity)

View File

@@ -98,6 +98,7 @@ void LegoPlantManager::LoadWorldInfo(LegoOmni::World p_worldId)
}
// FUNCTION: LEGO1 0x100263a0
// FUNCTION: BETA10 0x100c5093
void LegoPlantManager::Reset(LegoOmni::World p_worldId)
{
MxU32 i;
@@ -344,6 +345,13 @@ void LegoPlantManager::FUN_10026860(MxS32 p_index)
}
}
// FUNCTION: LEGO1 0x100268d0
// FUNCTION: BETA10 0x100c5c7a
MxS32 LegoPlantManager::GetNumPlants()
{
return sizeOfArray(g_plantInfo);
}
// FUNCTION: LEGO1 0x100268e0
// FUNCTION: BETA10 0x100c5c95
LegoPlantInfo* LegoPlantManager::GetInfo(LegoEntity* p_entity)