Implement/match LegoAnimationManager::FUN_10063780 and FUN_10063aa0 (#859)

This commit is contained in:
Christian Semmler 2024-04-27 09:19:55 -04:00 committed by GitHub
parent 86203f1704
commit e49d05c410
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 23 additions and 6 deletions

View file

@ -96,7 +96,7 @@ class LegoAnimationManager : public MxCore {
void FUN_100627d0(MxBool); void FUN_100627d0(MxBool);
void FUN_100629b0(MxU32, MxBool); void FUN_100629b0(MxU32, MxBool);
void FUN_10063270(LegoROIList*, LegoAnimPresenter*); void FUN_10063270(LegoROIList*, LegoAnimPresenter*);
void FUN_10063780(LegoROIList*); void FUN_10063780(LegoROIList* p_list);
void FUN_10064670(MxBool); void FUN_10064670(MxBool);
void FUN_10064740(MxBool); void FUN_10064740(MxBool);

View file

@ -779,16 +779,33 @@ void LegoAnimationManager::FUN_10063270(LegoROIList*, LegoAnimPresenter*)
// TODO // TODO
} }
// STUB: LEGO1 0x10063780 // FUNCTION: LEGO1 0x10063780
void LegoAnimationManager::FUN_10063780(LegoROIList*) void LegoAnimationManager::FUN_10063780(LegoROIList* p_list)
{ {
// TODO if (p_list != NULL && m_unk0x424 != NULL) {
LegoROIListCursor cursor(p_list);
LegoROI* roi;
while (cursor.Next(roi)) {
const char* name = roi->GetName();
if (CharacterManager()->Exists(name)) {
m_unk0x424->Append(roi);
cursor.Detach();
}
}
}
} }
// STUB: LEGO1 0x10063aa0 // FUNCTION: LEGO1 0x10063aa0
void LegoAnimationManager::FUN_10063aa0() void LegoAnimationManager::FUN_10063aa0()
{ {
// TODO LegoROIListCursor cursor(m_unk0x424);
LegoROI* roi;
while (cursor.Next(roi)) {
CharacterManager()->FUN_10083db0(roi);
}
} }
// STUB: LEGO1 0x10064670 // STUB: LEGO1 0x10064670