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-16 13:14:01 -05:00
|
|
|
class MxPresenter;
|
|
|
|
|
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
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
if (p_reallocAction) {
|
2023-10-24 19:38:27 -04:00
|
|
|
this->m_action = new MxDSAction();
|
2024-02-01 15:42:10 -05:00
|
|
|
}
|
2023-10-24 19:38:27 -04:00
|
|
|
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
|
2024-02-01 15:42:10 -05:00
|
|
|
inline ~MxActionNotificationParam() override
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
2024-02-01 15:42:10 -05:00
|
|
|
if (!this->m_realloc) {
|
2023-10-24 19:38:27 -04:00
|
|
|
return;
|
2024-02-01 15:42:10 -05:00
|
|
|
}
|
2023-10-10 13:05:04 -04:00
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
if (this->m_action) {
|
2023-10-24 19:38:27 -04:00
|
|
|
delete this->m_action;
|
2024-02-01 15:42:10 -05:00
|
|
|
}
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
2023-10-10 13:05:04 -04:00
|
|
|
|
2024-01-11 10:02:55 -05:00
|
|
|
// FUNCTION: LEGO1 0x100510c0
|
2024-02-01 15:42:10 -05:00
|
|
|
MxNotificationParam* Clone() override
|
2024-01-11 10:02:55 -05:00
|
|
|
{
|
|
|
|
return new MxActionNotificationParam(this->m_type, this->m_sender, this->m_action, this->m_realloc);
|
2024-01-29 17:30:20 -05:00
|
|
|
} // vtable+0x04
|
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:
|
2024-01-29 16:17:17 -05:00
|
|
|
MxDSAction* m_action; // 0x0c
|
2023-10-24 19:38:27 -04:00
|
|
|
MxBool m_realloc; // 0x10
|
2023-10-10 13:05:04 -04:00
|
|
|
};
|
|
|
|
|
2023-12-16 13:14:01 -05:00
|
|
|
// VTABLE: LEGO1 0x100dc210
|
|
|
|
// SIZE 0x14
|
|
|
|
class MxStartActionNotificationParam : public MxActionNotificationParam {
|
|
|
|
public:
|
|
|
|
inline MxStartActionNotificationParam(
|
|
|
|
NotificationId p_type,
|
|
|
|
MxCore* p_sender,
|
|
|
|
MxDSAction* p_action,
|
|
|
|
MxBool p_reallocAction
|
|
|
|
)
|
|
|
|
: MxActionNotificationParam(p_type, p_sender, p_action, p_reallocAction)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
MxNotificationParam* Clone() override; // vtable+0x04
|
2023-12-16 13:14:01 -05: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
|
|
|
|
2024-01-11 10:02:55 -05:00
|
|
|
// FUNCTION: LEGO1 0x10051270
|
2024-02-01 15:42:10 -05:00
|
|
|
MxNotificationParam* Clone() override
|
2024-01-11 10:02:55 -05:00
|
|
|
{
|
|
|
|
return new MxEndActionNotificationParam(
|
|
|
|
c_notificationEndAction,
|
|
|
|
this->m_sender,
|
|
|
|
this->m_action,
|
|
|
|
this->m_realloc
|
|
|
|
);
|
2024-01-29 17:30:20 -05:00
|
|
|
} // vtable+0x04
|
2023-10-10 13:05:04 -04:00
|
|
|
};
|
|
|
|
|
2023-12-16 13:14:01 -05:00
|
|
|
// VTABLE: LEGO1 0x100dc208
|
|
|
|
// SIZE 0x18
|
|
|
|
class MxType4NotificationParam : public MxActionNotificationParam {
|
|
|
|
public:
|
|
|
|
inline MxType4NotificationParam(MxCore* p_sender, MxDSAction* p_action, MxPresenter* p_unk0x14)
|
2024-01-17 11:53:53 -05:00
|
|
|
: MxActionNotificationParam(c_notificationType4, p_sender, p_action, FALSE)
|
2023-12-16 13:14:01 -05:00
|
|
|
{
|
|
|
|
m_unk0x14 = p_unk0x14;
|
|
|
|
}
|
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
MxNotificationParam* Clone() override; // vtable+0x04
|
2023-12-16 13:14:01 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
MxPresenter* m_unk0x14; // 0x14
|
|
|
|
};
|
|
|
|
|
2024-01-14 16:28:46 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x100511e0
|
|
|
|
// MxActionNotificationParam::`scalar deleting destructor'
|
|
|
|
|
2023-12-12 14:27:17 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x100513a0
|
|
|
|
// MxEndActionNotificationParam::`scalar deleting destructor'
|
|
|
|
|
2024-01-14 16:28:46 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x10051410
|
|
|
|
// MxEndActionNotificationParam::~MxEndActionNotificationParam
|
|
|
|
|
2023-12-16 13:14:01 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x100b0430
|
|
|
|
// MxStartActionNotificationParam::`scalar deleting destructor'
|
|
|
|
|
2024-01-14 16:28:46 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x100b04a0
|
|
|
|
// MxStartActionNotificationParam::~MxStartActionNotificationParam
|
|
|
|
|
2023-12-16 13:14:01 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x100b05c0
|
|
|
|
// MxType4NotificationParam::`scalar deleting destructor'
|
|
|
|
|
2024-01-14 16:28:46 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x100b0630
|
|
|
|
// MxType4NotificationParam::~MxType4NotificationParam
|
|
|
|
|
2023-10-24 19:24:29 -04:00
|
|
|
#endif
|