mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-02-16 19:50:52 -05:00
Implement/match LegoEventNotifcationParam::Clone (#497)
This commit is contained in:
parent
d4cb8677b8
commit
f1fc5e1d0d
2 changed files with 9 additions and 8 deletions
|
@ -10,7 +10,14 @@
|
|||
// SIZE 0x20
|
||||
class LegoEventNotificationParam : public MxNotificationParam {
|
||||
public:
|
||||
virtual MxNotificationParam* Clone() override; // vtable+0x4
|
||||
// FUNCTION: LEGO1 0x10028690
|
||||
virtual MxNotificationParam* Clone() override
|
||||
{
|
||||
LegoEventNotificationParam* clone =
|
||||
new LegoEventNotificationParam(m_type, m_sender, m_modifier, m_x, m_y, m_key);
|
||||
clone->m_unk0x1c = m_unk0x1c;
|
||||
return clone;
|
||||
}; // vtable+0x4
|
||||
|
||||
inline LegoEventNotificationParam() : MxNotificationParam(c_notificationType0, NULL) {}
|
||||
inline LegoEventNotificationParam(
|
||||
|
@ -25,6 +32,7 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
inline MxU8 GetModifier() { return m_modifier; }
|
||||
inline MxU8 GetKey() const { return m_key; }
|
||||
inline MxS32 GetX() const { return m_x; }
|
||||
inline MxS32 GetY() const { return m_y; }
|
||||
|
|
|
@ -3,10 +3,3 @@
|
|||
#include "decomp.h"
|
||||
|
||||
DECOMP_SIZE_ASSERT(LegoEventNotificationParam, 0x20);
|
||||
|
||||
// STUB: LEGO1 0x10028690
|
||||
MxNotificationParam* LegoEventNotificationParam::Clone()
|
||||
{
|
||||
// TODO
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue