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:
|
2024-07-04 19:06:32 -04:00
|
|
|
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;
|
2024-07-01 20:37:51 -04:00
|
|
|
m_realloc = p_reallocAction;
|
2023-10-10 13:05:04 -04:00
|
|
|
|
2024-02-01 15:42:10 -05:00
|
|
|
if (p_reallocAction) {
|
2024-07-01 20:37:51 -04:00
|
|
|
m_action = new MxDSAction();
|
2024-02-01 15:42:10 -05:00
|
|
|
}
|
2023-10-24 19:38:27 -04:00
|
|
|
else {
|
2024-07-01 20:37:51 -04:00
|
|
|
m_action = oldAction;
|
2023-10-24 19:38:27 -04:00
|
|
|
return;
|
|
|
|
}
|
2023-10-10 13:05:04 -04:00
|
|
|
|
2024-07-01 20:37:51 -04:00
|
|
|
m_action->SetAtomId(oldAction->GetAtomId());
|
|
|
|
m_action->SetObjectId(oldAction->GetObjectId());
|
|
|
|
m_action->SetUnknown24(oldAction->GetUnknown24());
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
2023-10-10 13:05:04 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10051050
|
2024-07-04 19:06:32 -04:00
|
|
|
~MxActionNotificationParam() override
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
2024-07-01 20:37:51 -04:00
|
|
|
if (!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-07-01 20:37:51 -04:00
|
|
|
if (m_action) {
|
|
|
|
delete 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-04-22 08:11:38 -04:00
|
|
|
MxNotificationParam* Clone() const override
|
2024-01-11 10:02:55 -05:00
|
|
|
{
|
2024-07-01 20:37:51 -04:00
|
|
|
return new MxActionNotificationParam(m_type, m_sender, m_action, m_realloc);
|
2024-01-29 17:30:20 -05:00
|
|
|
} // vtable+0x04
|
2023-10-10 13:05:04 -04:00
|
|
|
|
2024-11-23 14:33:15 -05:00
|
|
|
// FUNCTION: BETA10 0x10017970
|
2024-07-04 19:06:32 -04:00
|
|
|
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:
|
2024-07-04 19:06:32 -04:00
|
|
|
MxStartActionNotificationParam(
|
2023-12-16 13:14:01 -05:00
|
|
|
NotificationId p_type,
|
|
|
|
MxCore* p_sender,
|
|
|
|
MxDSAction* p_action,
|
|
|
|
MxBool p_reallocAction
|
|
|
|
)
|
|
|
|
: MxActionNotificationParam(p_type, p_sender, p_action, p_reallocAction)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2024-04-22 08:11:38 -04:00
|
|
|
MxNotificationParam* Clone() const 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:
|
2024-07-04 19:06:32 -04:00
|
|
|
MxEndActionNotificationParam(NotificationId p_type, MxCore* p_sender, MxDSAction* p_action, MxBool p_reallocAction)
|
2023-10-24 19:38:27 -04:00
|
|
|
: 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-04-22 08:11:38 -04:00
|
|
|
MxNotificationParam* Clone() const override
|
2024-01-11 10:02:55 -05:00
|
|
|
{
|
2024-07-01 20:37:51 -04:00
|
|
|
return new MxEndActionNotificationParam(c_notificationEndAction, m_sender, m_action, 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:
|
2024-07-04 19:06:32 -04:00
|
|
|
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-04-22 08:11:38 -04:00
|
|
|
MxNotificationParam* Clone() const 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
|