mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
Implement/match LegoAnimationManager::Reset (#863)
* Implement/match LegoAnimationManager::Init * Rename function * fix hex val
This commit is contained in:

committed by
GitHub

parent
659599b635
commit
ec7df356cf
@@ -18,7 +18,7 @@
|
||||
|
||||
DECOMP_SIZE_ASSERT(LegoAnimationManager, 0x500)
|
||||
DECOMP_SIZE_ASSERT(Character, 0x18)
|
||||
DECOMP_SIZE_ASSERT(Vehicle, 0x8)
|
||||
DECOMP_SIZE_ASSERT(Vehicle, 0x08)
|
||||
DECOMP_SIZE_ASSERT(Unknown0x3c, 0x18)
|
||||
DECOMP_SIZE_ASSERT(LegoTranInfo, 0x78)
|
||||
|
||||
@@ -148,10 +148,34 @@ LegoAnimationManager::~LegoAnimationManager()
|
||||
NotificationManager()->Unregister(this);
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x1005ee80
|
||||
void LegoAnimationManager::FUN_1005ee80(MxBool)
|
||||
// FUNCTION: LEGO1 0x1005ee80
|
||||
// FUNCTION: BETA10 0x1003fbc0
|
||||
void LegoAnimationManager::Reset(MxBool p_und)
|
||||
{
|
||||
// TODO
|
||||
m_unk0x402 = 0;
|
||||
|
||||
if (p_und && m_animState != NULL) {
|
||||
m_animState->SetFlag();
|
||||
}
|
||||
|
||||
undefined unk0x42b = m_unk0x42b;
|
||||
FUN_1005ef10();
|
||||
|
||||
if (m_tranInfoList != NULL) {
|
||||
delete m_tranInfoList;
|
||||
}
|
||||
|
||||
if (m_tranInfoList2 != NULL) {
|
||||
delete m_tranInfoList2;
|
||||
}
|
||||
|
||||
DeleteAnimations();
|
||||
Init();
|
||||
|
||||
m_unk0x42b = unk0x42b;
|
||||
m_unk0x428 = m_unk0x3a;
|
||||
m_unk0x429 = m_unk0x400;
|
||||
m_unk0x42a = m_unk0x402;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x1005ef10
|
||||
|
Reference in New Issue
Block a user