Small implementations in MxEntity/MxEventManager (#96)

* Small implementations in MxEntity/MxEventManager

* Cleanup

* Update LEGO1/mxentity.cpp

---------

Co-authored-by: MattKC <34096995+itsmattkc@users.noreply.github.com>
This commit is contained in:
Joshua Peisach 2023-08-03 19:43:36 -04:00 committed by GitHub
parent dc585c7f61
commit b6ada8f46c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 4 deletions

View file

@ -12,3 +12,11 @@ MxEntity::MxEntity()
MxEntity::~MxEntity() MxEntity::~MxEntity()
{ {
} }
// OFFSET: LEGO1 0x10001070
MxResult MxEntity::SetEntityId(MxS32 p_id, const MxAtomId &p_atom)
{
this->m_mxEntityId = p_id;
this->m_atom = p_atom;
return SUCCESS;
}

View file

@ -26,6 +26,8 @@ class MxEntity : public MxCore
{ {
return !strcmp(name, MxEntity::ClassName()) || MxCore::IsA(name); return !strcmp(name, MxEntity::ClassName()) || MxCore::IsA(name);
} }
virtual MxResult SetEntityId(MxS32 p_id, const MxAtomId &p_atom); // vtable+0x14
private: private:
MxS32 m_mxEntityId; // 0x8 MxS32 m_mxEntityId; // 0x8
MxAtomId m_atom; // 0xc MxAtomId m_atom; // 0xc

View file

@ -1,13 +1,18 @@
#include "mxeventmanager.h" #include "mxeventmanager.h"
// OFFSET: LEGO1 0x100c0360 STUB // OFFSET: LEGO1 0x100c0360
MxEventManager::MxEventManager() MxEventManager::MxEventManager()
{ {
// TODO Init();
} }
// OFFSET: LEGO1 0x100c03f0 STUB // OFFSET: LEGO1 0x100c03f0
MxEventManager::~MxEventManager() MxEventManager::~MxEventManager()
{ {
// TODO // TODO: MxMediaManager::TerminateThread call
} }
// OFFSET: LEGO1 0x100c0450
void MxEventManager::Init()
{
}

View file

@ -11,6 +11,8 @@ class MxEventManager : public MxUnknown100dc6b0
MxEventManager(); MxEventManager();
virtual ~MxEventManager() override; virtual ~MxEventManager() override;
private:
void Init();
}; };
#endif // MXEVENTMANAGER_H #endif // MXEVENTMANAGER_H