isle-portable/LEGO1/mxdsactionlist.cpp

23 lines
445 B
C++
Raw Normal View History

#include "mxdsactionlist.h"
2023-10-24 19:38:27 -04:00
#include "mxdsaction.h"
DECOMP_SIZE_ASSERT(MxDSActionList, 0x1c);
DECOMP_SIZE_ASSERT(MxDSActionListCursor, 0x10);
// OFFSET: LEGO1 0x100c9c90
2023-10-24 19:38:27 -04:00
MxS8 MxDSActionList::Compare(MxDSAction* p_var0, MxDSAction* p_var1)
{
2023-10-24 19:38:27 -04:00
if (p_var1 == p_var0)
return 0;
if (p_var1 <= p_var0)
return 1;
return -1;
}
// OFFSET: LEGO1 0x100c9cb0
2023-10-24 19:38:27 -04:00
void MxDSActionList::Destroy(MxDSAction* p_action)
{
2023-10-24 19:38:27 -04:00
if (p_action)
delete p_action;
}