Implement/match LegoAnimPresenter::SubstituteVariables (#850)

This commit is contained in:
Christian Semmler 2024-04-25 10:36:28 -04:00 committed by GitHub
parent 830c0827af
commit ce3d915bba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 5 deletions

View file

@ -101,7 +101,7 @@ class LegoAnimPresenter : public MxVideoPresenter {
void FUN_1006ab70();
LegoBool FUN_1006aba0();
MxBool FUN_1006abb0(LegoTreeNode* p_node, LegoROI* p_roi);
void FUN_1006ac90();
void SubstituteVariables();
void FUN_1006b900(LegoAnim* p_anim, MxLong p_time, Matrix4* p_matrix);
void FUN_1006b9a0(LegoAnim* p_anim, MxLong p_time, Matrix4* p_matrix);
void FUN_1006c8a0(MxBool p_bool);

View file

@ -588,10 +588,17 @@ MxBool LegoAnimPresenter::FUN_1006abb0(LegoTreeNode* p_node, LegoROI* p_roi)
return result;
}
// STUB: LEGO1 0x1006ac90
void LegoAnimPresenter::FUN_1006ac90()
// FUNCTION: LEGO1 0x1006ac90
// FUNCTION: BETA10 0x1005022e
void LegoAnimPresenter::SubstituteVariables()
{
// TODO
if (m_substMap != NULL) {
MxVariableTable* variableTable = VariableTable();
for (LegoAnimSubstMap::iterator it = m_substMap->begin(); it != m_substMap->end(); it++) {
variableTable->SetVariable((*it).first, (*it).second);
}
}
}
// FUNCTION: LEGO1 0x1006ad30
@ -709,9 +716,10 @@ void LegoAnimPresenter::ReadyTickle()
}
// FUNCTION: LEGO1 0x1006b5e0
// FUNCTION: BETA10 0x10050b85
void LegoAnimPresenter::StartingTickle()
{
FUN_1006ac90();
SubstituteVariables();
FUN_100692b0();
FUN_100695c0();