Implement LegoAnimPresenter::FUN_100692b0 (#594)

* Implement LegoAnimPresenter::FUN_100692b0

* Match
This commit is contained in:
Christian Semmler
2024-02-25 12:04:30 -05:00
committed by GitHub
parent 377eebb610
commit 96c98cec3d
7 changed files with 190 additions and 4 deletions

View File

@@ -504,6 +504,26 @@ LegoResult LegoAnim::Write(LegoStorage* p_storage)
return SUCCESS;
}
// FUNCTION: LEGO1 0x100a0f20
const LegoChar* LegoAnim::GetActorName(LegoU32 p_index)
{
if (p_index < m_numActors) {
return m_actors[p_index].m_name;
}
return NULL;
}
// FUNCTION: LEGO1 0x100a0f40
undefined4 LegoAnim::GetActorUnknown0x04(LegoU32 p_index)
{
if (p_index < m_numActors) {
return m_actors[p_index].m_unk0x04;
}
return NULL;
}
// FUNCTION: LEGO1 0x100a0f60
LegoMorphKey::LegoMorphKey()
{

View File

@@ -139,9 +139,13 @@ public:
LegoAnim();
~LegoAnim() override;
LegoTime GetDuration() { return m_duration; }
LegoU32 GetNumActors() { return m_numActors; }
LegoResult Write(LegoStorage* p_storage) override; // vtable+0x08
virtual LegoResult Read(LegoStorage* p_storage, LegoS32 p_parseScene); // vtable+0x10
const LegoChar* GetActorName(LegoU32 p_index);
undefined4 GetActorUnknown0x04(LegoU32 p_index);
// SYNTHETIC: LEGO1 0x100a0ba0
// LegoAnim::`scalar deleting destructor'