Implement/match LegoAnimMMPresenter::FUN_1004b610 and FUN_1004b6b0 (#831)

This commit is contained in:
Christian Semmler 2024-04-20 12:24:09 -04:00 committed by GitHub
parent a3bd98a04d
commit b39ea845b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -364,28 +364,45 @@ MxBool LegoAnimMMPresenter::FUN_1004b5b0(MxLong p_time)
return TRUE;
}
// STUB: LEGO1 0x1004b600
// FUNCTION: LEGO1 0x1004b600
// FUNCTION: BETA10 0x1004cbfb
MxBool LegoAnimMMPresenter::FUN_1004b600(MxLong p_time)
{
// TODO
return FALSE;
return TRUE;
}
// STUB: LEGO1 0x1004b610
// FUNCTION: LEGO1 0x1004b610
// FUNCTION: BETA10 0x1004cc6e
MxBool LegoAnimMMPresenter::FUN_1004b610(MxLong p_time)
{
// TODO
return FALSE;
for (MxCompositePresenterList::iterator it = m_list.begin(); it != m_list.end(); it++) {
if ((*it)->IsA("LegoAnimPresenter") || (*it)->IsA("LegoLoopingAnimPresenter")) {
(*it)->SetTickleState(e_streaming);
}
else {
(*it)->SetTickleState(e_ready);
}
}
m_action->SetUnknown90(Timer()->GetTime());
if (m_compositePresenter != NULL) {
m_compositePresenter->VTable0x60(this);
}
return TRUE;
}
// STUB: LEGO1 0x1004b6b0
// FUNCTION: LEGO1 0x1004b6b0
// FUNCTION: BETA10 0x1004cdc5
MxBool LegoAnimMMPresenter::FUN_1004b6b0(MxLong p_time)
{
// TODO
if (m_presenter != NULL && m_presenter->GetCurrentTickleState() != e_idle) {
return FALSE;
}
m_unk0x54 = p_time;
return TRUE;
}
// STUB: LEGO1 0x1004b6d0