mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
Implement/match LegoAnimMMPresenter::EndAction (#826)
* Implement/match LegoAnimMMPresenter::EndAction * Add missing vtable
This commit is contained in:

committed by
GitHub

parent
8d729f77b7
commit
c617139d5b
@@ -13,6 +13,7 @@
|
||||
#include "mxnotificationmanager.h"
|
||||
#include "mxobjectfactory.h"
|
||||
#include "mxtimer.h"
|
||||
#include "mxtype18notificationparam.h"
|
||||
#include "mxutilities.h"
|
||||
|
||||
DECOMP_SIZE_ASSERT(LegoAnimMMPresenter, 0x74)
|
||||
@@ -96,10 +97,30 @@ MxResult LegoAnimMMPresenter::StartAction(MxStreamController* p_controller, MxDS
|
||||
return result;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x1004aec0
|
||||
// FUNCTION: LEGO1 0x1004aec0
|
||||
// FUNCTION: BETA10 0x1004c01a
|
||||
void LegoAnimMMPresenter::EndAction()
|
||||
{
|
||||
// TODO
|
||||
if (m_tranInfo != NULL && m_tranInfo->m_unk0x15 && m_tranInfo->m_unk0x1c != NULL &&
|
||||
m_tranInfo->m_unk0x1c[1] != NULL) {
|
||||
m_tranInfo->m_unk0x1c[1]->Enable(FALSE);
|
||||
m_tranInfo->m_unk0x1c[1]->Enable(TRUE);
|
||||
}
|
||||
|
||||
m_tranInfo = NULL;
|
||||
|
||||
MxType18NotificationParam param(c_notificationType18, NULL, m_animmanId);
|
||||
if (m_animmanId != 0) {
|
||||
NotificationManager()->Send(AnimationManager(), ¶m);
|
||||
}
|
||||
|
||||
if (m_action != NULL) {
|
||||
MxCompositePresenter::EndAction();
|
||||
|
||||
if (m_unk0x64 != NULL) {
|
||||
m_unk0x64->Remove(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x1004b140
|
||||
|
Reference in New Issue
Block a user