2023-06-29 04:10:08 -04:00
|
|
|
#include "mxdsmultiaction.h"
|
|
|
|
|
2023-09-20 16:22:57 -04:00
|
|
|
DECOMP_SIZE_ASSERT(MxDSMultiAction, 0x9c)
|
|
|
|
|
2023-06-29 04:10:08 -04:00
|
|
|
// OFFSET: LEGO1 0x100c9b90
|
|
|
|
MxDSMultiAction::MxDSMultiAction()
|
|
|
|
{
|
2023-07-03 13:24:51 -04:00
|
|
|
this->SetType(MxDSType_MultiAction);
|
2023-09-20 16:36:15 -04:00
|
|
|
this->m_actions = new MxDSActionList;
|
|
|
|
this->m_actions->SetDestroy(MxDSActionList::Destroy);
|
2023-06-29 04:10:08 -04:00
|
|
|
}
|
|
|
|
|
2023-09-20 16:36:15 -04:00
|
|
|
// OFFSET: LEGO1 0x100ca060
|
2023-06-29 04:10:08 -04:00
|
|
|
MxDSMultiAction::~MxDSMultiAction()
|
|
|
|
{
|
2023-09-20 16:36:15 -04:00
|
|
|
if (this->m_actions)
|
|
|
|
delete this->m_actions;
|
2023-06-29 04:10:08 -04:00
|
|
|
}
|
2023-09-20 16:36:15 -04:00
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x100ca5e0
|
|
|
|
undefined4 MxDSMultiAction::unk14()
|
|
|
|
{
|
|
|
|
undefined4 result = MxDSAction::unk14();
|
|
|
|
|
|
|
|
MxDSActionListCursor cursor(this->m_actions);
|
|
|
|
MxDSAction *action;
|
|
|
|
while (cursor.Next(action))
|
|
|
|
result += action->unk14();
|
|
|
|
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x100ca6c0
|
|
|
|
MxU32 MxDSMultiAction::GetSizeOnDisk()
|
|
|
|
{
|
|
|
|
MxU32 totalSizeOnDisk = MxDSAction::GetSizeOnDisk() + 16;
|
|
|
|
|
|
|
|
MxDSActionListCursor cursor(this->m_actions);
|
|
|
|
MxDSAction *action;
|
|
|
|
while (cursor.Next(action))
|
|
|
|
totalSizeOnDisk += action->GetSizeOnDisk();
|
|
|
|
|
|
|
|
this->m_sizeOnDisk = totalSizeOnDisk - MxDSAction::GetSizeOnDisk();
|
|
|
|
|
|
|
|
return totalSizeOnDisk;
|
|
|
|
}
|