Implement LegoAnimationManager::FUN_100609f0 / LegoTranInfo (#820)

* Implement LegoAnimationManager::FUN_100609f0 / LegoTranInfo

* use NULL
This commit is contained in:
Christian Semmler
2024-04-19 11:42:28 -04:00
committed by GitHub
parent fb0f35188b
commit d5dd8db46e
10 changed files with 156 additions and 29 deletions

View File

@@ -707,7 +707,7 @@ MxS32 LegoOmni::GetCurrPathInfo(LegoPathBoundary** p_path, MxS32& p_value)
}
// FUNCTION: LEGO1 0x1005b430
const char* LegoOmni::FindScript(MxU32 p_index)
const char* LegoOmni::GetScriptName(MxU32 p_index)
{
for (MxS32 i = 0; i < 19; i++) {
if (m_scripts[i].m_index == p_index) {
@@ -718,6 +718,18 @@ const char* LegoOmni::FindScript(MxU32 p_index)
return NULL;
}
// FUNCTION: LEGO1 0x1005b460
MxAtomId* LegoOmni::GetScriptAtom(MxU32 p_index)
{
for (MxS32 i = 0; i < 19; i++) {
if (m_scripts[i].m_index == p_index) {
return m_scripts[i].m_atomId;
}
}
return NULL;
}
// FUNCTION: LEGO1 0x1005b490
MxS32 LegoOmni::GetScriptIndex(const char* p_key)
{