mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-26 17:36:12 -05:00
3b155bfe38
* Open discussion * Move annotations of header-implemented functions back to `.h` files * Adjust `README.md` * Relocate annotation * linter * Comment markers in headers only, rename script, update github actions * type hint compat * Rename github action, better argparse for linter * Type hints, working test for byname ignore * Move annotation * CI rename and enable warnfail, enforce mode always on * Two step linting * or one step * continue on error * two jobs instead * Fixes --------- Co-authored-by: disinvite <disinvite@users.noreply.github.com>
73 lines
1.6 KiB
C++
73 lines
1.6 KiB
C++
#ifndef MXACTIONNOTIFICATIONPARAM_H
|
|
#define MXACTIONNOTIFICATIONPARAM_H
|
|
|
|
#include "mxdsaction.h"
|
|
#include "mxnotificationparam.h"
|
|
|
|
// VTABLE: LEGO1 0x100d8350
|
|
// SIZE 0x14
|
|
class MxActionNotificationParam : public MxNotificationParam {
|
|
public:
|
|
inline MxActionNotificationParam(
|
|
NotificationId p_type,
|
|
MxCore* p_sender,
|
|
MxDSAction* p_action,
|
|
MxBool p_reallocAction
|
|
)
|
|
: MxNotificationParam(p_type, p_sender)
|
|
{
|
|
MxDSAction* oldAction = p_action;
|
|
this->m_realloc = p_reallocAction;
|
|
|
|
if (p_reallocAction)
|
|
this->m_action = new MxDSAction();
|
|
else {
|
|
this->m_action = oldAction;
|
|
return;
|
|
}
|
|
|
|
this->m_action->SetAtomId(oldAction->GetAtomId());
|
|
this->m_action->SetObjectId(oldAction->GetObjectId());
|
|
this->m_action->SetUnknown24(oldAction->GetUnknown24());
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x10051050
|
|
inline virtual ~MxActionNotificationParam() override
|
|
{
|
|
if (!this->m_realloc)
|
|
return;
|
|
|
|
if (this->m_action)
|
|
delete this->m_action;
|
|
}
|
|
|
|
virtual MxNotificationParam* Clone() override; // vtable+0x4
|
|
|
|
inline MxDSAction* GetAction() { return m_action; }
|
|
|
|
protected:
|
|
MxDSAction* m_action; // 0xc
|
|
MxBool m_realloc; // 0x10
|
|
};
|
|
|
|
// VTABLE: LEGO1 0x100d8358
|
|
// SIZE 0x14
|
|
class MxEndActionNotificationParam : public MxActionNotificationParam {
|
|
public:
|
|
inline MxEndActionNotificationParam(
|
|
NotificationId p_type,
|
|
MxCore* p_sender,
|
|
MxDSAction* p_action,
|
|
MxBool p_reallocAction
|
|
)
|
|
: MxActionNotificationParam(p_type, p_sender, p_action, p_reallocAction)
|
|
{
|
|
}
|
|
|
|
virtual MxNotificationParam* Clone() override; // vtable+0x4
|
|
};
|
|
|
|
// SYNTHETIC: LEGO1 0x100513a0
|
|
// MxEndActionNotificationParam::`scalar deleting destructor'
|
|
|
|
#endif
|