Implement/match LegoCharacterManager::FUN_100832a0 (#747)

This commit is contained in:
Christian Semmler 2024-03-29 10:41:12 -04:00 committed by GitHub
parent 53b3d0b195
commit bfc2b76a61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 26 additions and 2 deletions

View file

@ -50,6 +50,7 @@ public:
static MxBool FUN_10084c00(const LegoChar*); static MxBool FUN_10084c00(const LegoChar*);
void FUN_100832a0(); void FUN_100832a0();
undefined4 FUN_10083bc0(LegoROI* p_roi);
void FUN_10083db0(LegoROI* p_roi); void FUN_10083db0(LegoROI* p_roi);
void FUN_10083f10(LegoROI* p_roi); void FUN_10083f10(LegoROI* p_roi);
LegoExtraActor* FUN_10084c40(const LegoChar*); LegoExtraActor* FUN_10084c40(const LegoChar*);

View file

@ -38,10 +38,26 @@ void LegoCharacterManager::Init()
} }
} }
// STUB: LEGO1 0x100832a0 // FUNCTION: LEGO1 0x100832a0
void LegoCharacterManager::FUN_100832a0() void LegoCharacterManager::FUN_100832a0()
{ {
// TODO for (MxS32 i = 0; i < _countof(g_characterData) - 1; i++) {
LegoCharacterData* data = Find(g_characterData[i].m_name);
if (data != NULL) {
LegoExtraActor* actor = data->m_actor;
if (actor != NULL && actor->IsA("LegoExtraActor")) {
LegoROI* roi = g_characterData[i].m_roi;
undefined4 und = FUN_10083bc0(roi);
while (und) {
FUN_10083db0(roi);
und = FUN_10083bc0(roi);
}
}
}
}
} }
// FUNCTION: LEGO1 0x10083310 // FUNCTION: LEGO1 0x10083310
@ -189,6 +205,13 @@ done:
return NULL; return NULL;
} }
// STUB: LEGO1 0x10083bc0
undefined4 LegoCharacterManager::FUN_10083bc0(LegoROI* p_roi)
{
// TODO
return 0;
}
// STUB: LEGO1 0x10083db0 // STUB: LEGO1 0x10083db0
void LegoCharacterManager::FUN_10083db0(LegoROI* p_roi) void LegoCharacterManager::FUN_10083db0(LegoROI* p_roi)
{ {