Small implementations in MxEntity/MxEventManager

This commit is contained in:
Joshua Peisach 2023-07-22 19:45:19 -04:00
parent fa5417f58a
commit 373cb87665
No known key found for this signature in database
GPG Key ID: 41C3D4189AFEDB5A
4 changed files with 24 additions and 4 deletions

View File

@ -9,4 +9,12 @@ MxEntity::MxEntity()
// OFFSET: LEGO1 0x1000c110
MxEntity::~MxEntity()
{
}
// OFFSET: LEGO1 0x10001070
MxResult MxEntity::SetEntityId(MxS32 p_id, MxAtomId *p_atom)
{
this->m_mxEntityId = p_id;
// FIXME: MxAtomId operator call, probably it will be return whatever the comparison is for comparing this->m_atom to the p_atom
return FALSE;
}

View File

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

View File

@ -1,13 +1,21 @@
#include "mxeventmanager.h"
// OFFSET: LEGO1 0x100c0360 STUB
// OFFSET: LEGO1 0x100c0360
MxEventManager::MxEventManager()
{
// TODO
Init();
}
// OFFSET: LEGO1 0x100c03f0 STUB
// OFFSET: LEGO1 0x100c03f0
MxEventManager::~MxEventManager()
{
// TODO
// TODO: MxMediaManager::TerminateThread call
}
// OFFSET: LEGO1 0x100c0450
void MxEventManager::Init()
{
// huh?
// imagine if the devs actually put this here to troll us
return;
}

View File

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