Implement/match LegoAnimationManager::FUN_10061530 (#889)

This commit is contained in:
Christian Semmler 2024-05-08 10:28:32 -04:00 committed by GitHub
parent 05edf96186
commit 5c8249f334
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 27 additions and 2 deletions

View file

@ -186,4 +186,7 @@ class LegoAnimationManager : public MxCore {
UnknownMx4DPointFloat m_unk0x4cc; // 0x4cc
};
// TEMPLATE: LEGO1 0x10061750
// MxListCursor<LegoTranInfo *>::MxListCursor<LegoTranInfo *>
#endif // LEGOANIMATIONMANAGER_H

View file

@ -993,10 +993,32 @@ void LegoAnimationManager::FUN_10061010(MxBool p_und)
m_unk0x404 = Timer()->GetTime();
}
// STUB: LEGO1 0x10061530
// FUNCTION: LEGO1 0x10061530
void LegoAnimationManager::FUN_10061530()
{
// TODO
if (m_tranInfoList2 != NULL) {
LegoTranInfoListCursor cursor(m_tranInfoList2);
LegoTranInfo* tranInfo;
while (cursor.Next(tranInfo)) {
LegoTranInfoListCursor cursor2(m_tranInfoList);
if (cursor2.Find(tranInfo)) {
if (tranInfo->m_presenter != NULL) {
if (tranInfo->m_flags & LegoTranInfo::c_bit2) {
BackgroundAudioManager()->RaiseVolume();
tranInfo->m_flags &= ~LegoTranInfo::c_bit2;
}
tranInfo->m_presenter->FUN_1004b840();
cursor.Detach();
}
}
else {
cursor.Detach();
}
}
}
}
// STUB: LEGO1 0x100617c0