2023-10-10 13:05:04 -04:00
|
|
|
#ifndef MXACTIONNOTIFICATIONPARAM_H
|
|
|
|
#define MXACTIONNOTIFICATIONPARAM_H
|
|
|
|
|
|
|
|
#include "mxdsaction.h"
|
2023-10-24 19:38:27 -04:00
|
|
|
#include "mxnotificationparam.h"
|
2023-10-10 13:05:04 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d8350
|
2023-10-10 13:05:04 -04:00
|
|
|
// SIZE 0x14
|
2023-10-24 19:38:27 -04:00
|
|
|
class MxActionNotificationParam : public MxNotificationParam {
|
2023-10-10 13:05:04 -04:00
|
|
|
public:
|
2023-11-07 03:30:26 -05:00
|
|
|
inline MxActionNotificationParam(
|
|
|
|
NotificationId p_type,
|
|
|
|
MxCore* p_sender,
|
|
|
|
MxDSAction* p_action,
|
|
|
|
MxBool p_reallocAction
|
|
|
|
)
|
2023-10-24 19:38:27 -04:00
|
|
|
: MxNotificationParam(p_type, p_sender)
|
|
|
|
{
|
|
|
|
MxDSAction* oldAction = p_action;
|
|
|
|
this->m_realloc = p_reallocAction;
|
2023-10-10 13:05:04 -04:00
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
if (p_reallocAction)
|
|
|
|
this->m_action = new MxDSAction();
|
|
|
|
else {
|
|
|
|
this->m_action = oldAction;
|
|
|
|
return;
|
|
|
|
}
|
2023-10-10 13:05:04 -04:00
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
this->m_action->SetAtomId(oldAction->GetAtomId());
|
|
|
|
this->m_action->SetObjectId(oldAction->GetObjectId());
|
|
|
|
this->m_action->SetUnknown24(oldAction->GetUnknown24());
|
|
|
|
}
|
2023-10-10 13:05:04 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10051050
|
2023-10-24 19:38:27 -04:00
|
|
|
inline virtual ~MxActionNotificationParam() override
|
|
|
|
{
|
|
|
|
if (!this->m_realloc)
|
|
|
|
return;
|
2023-10-10 13:05:04 -04:00
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
if (this->m_action)
|
|
|
|
delete this->m_action;
|
|
|
|
}
|
2023-10-10 13:05:04 -04:00
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
virtual MxNotificationParam* Clone() override; // vtable+0x4
|
2023-10-10 13:05:04 -04:00
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
inline MxDSAction* GetAction() { return m_action; }
|
2023-10-23 07:16:21 -04:00
|
|
|
|
2023-10-10 13:05:04 -04:00
|
|
|
protected:
|
2023-10-24 19:38:27 -04:00
|
|
|
MxDSAction* m_action; // 0xc
|
|
|
|
MxBool m_realloc; // 0x10
|
2023-10-10 13:05:04 -04:00
|
|
|
};
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d8358
|
2023-10-10 13:05:04 -04:00
|
|
|
// SIZE 0x14
|
2023-10-24 19:38:27 -04:00
|
|
|
class MxEndActionNotificationParam : public MxActionNotificationParam {
|
2023-10-10 13:05:04 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
inline MxEndActionNotificationParam(
|
2023-11-07 03:30:26 -05:00
|
|
|
NotificationId p_type,
|
2023-10-24 19:38:27 -04:00
|
|
|
MxCore* p_sender,
|
|
|
|
MxDSAction* p_action,
|
|
|
|
MxBool p_reallocAction
|
|
|
|
)
|
|
|
|
: MxActionNotificationParam(p_type, p_sender, p_action, p_reallocAction)
|
|
|
|
{
|
|
|
|
}
|
2023-10-10 13:05:04 -04:00
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
virtual MxNotificationParam* Clone() override; // vtable+0x4
|
2023-10-10 13:05:04 -04:00
|
|
|
};
|
|
|
|
|
2023-12-12 14:27:17 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x100513a0
|
|
|
|
// MxEndActionNotificationParam::`scalar deleting destructor'
|
|
|
|
|
2023-10-24 19:24:29 -04:00
|
|
|
#endif
|