Implement/match LegoEventNotifcationParam::Clone (#497)

This commit is contained in:
Christian Semmler 2024-01-27 17:57:42 -05:00 committed by GitHub
parent d4cb8677b8
commit f1fc5e1d0d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 8 deletions

View file

@ -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; }

View file

@ -3,10 +3,3 @@
#include "decomp.h"
DECOMP_SIZE_ASSERT(LegoEventNotificationParam, 0x20);
// STUB: LEGO1 0x10028690
MxNotificationParam* LegoEventNotificationParam::Clone()
{
// TODO
return NULL;
}