Implement NotifyCurrentEntity (#224)

This commit is contained in:
Christian Semmler 2023-10-21 17:02:55 -04:00 committed by GitHub
parent 4f201eaa48
commit 6931a817a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 5 deletions

View file

@ -6,6 +6,7 @@
#include "legoutil.h"
#include "legoobjectfactory.h"
#include "legoinputmanager.h"
#include "legoworld.h"
// 0x100f4588
MxAtomId *g_nocdSourceName = NULL;
@ -329,9 +330,11 @@ int LegoOmni::vtable0x30(char*, int, MxCore*)
return 0;
}
void LegoOmni::NotifyCurrentEntity()
// OFFSET: LEGO1 0x1005b3a0
void LegoOmni::NotifyCurrentEntity(MxNotificationParam *p_param)
{
// FIXME: Stub
if (m_currentWorld)
NotificationManager()->Send(m_currentWorld, p_param);
}
// OFFSET: LEGO1 0x1005b640

View file

@ -61,7 +61,7 @@ class LegoOmni : public MxOmni
virtual MxBool DoesEntityExist(MxDSAction &ds) override;
virtual void vtable0x2c() override;
virtual int vtable0x30(char*, int, MxCore*) override;
virtual void NotifyCurrentEntity() override;
virtual void NotifyCurrentEntity(MxNotificationParam *p_param) override;
virtual void StartTimer() override;
virtual void StopTimer() override;

View file

@ -94,7 +94,7 @@ int MxOmni::vtable0x30(char*, int, MxCore*)
}
// OFFSET: LEGO1 0x100aefc0
void MxOmni::NotifyCurrentEntity(MxParam *p_param)
void MxOmni::NotifyCurrentEntity(MxNotificationParam *p_param)
{
}

View file

@ -10,6 +10,7 @@ class MxDSAction;
class MxEventManager;
class MxMusicManager;
class MxNotificationManager;
class MxNotificationParam;
class MxObjectFactory;
class MxOmniCreateParam;
class MxSoundManager;
@ -45,7 +46,7 @@ class MxOmni : public MxCore
virtual MxBool DoesEntityExist(MxDSAction &ds); // vtable+28
virtual void vtable0x2c(); // vtable+2c
virtual int vtable0x30(char*, int, MxCore*); // vtable+30
virtual void NotifyCurrentEntity(MxParam *p_param); // vtable+34
virtual void NotifyCurrentEntity(MxNotificationParam *p_param); // vtable+34
virtual void StartTimer(); // vtable+38
virtual void StopTimer(); // vtable+3c
virtual MxBool IsTimerRunning(); //vtable+40