Start MxEntity

This commit is contained in:
Joshua Peisach 2023-07-08 17:53:28 -04:00
parent 67115e32d3
commit 17d25899c4
No known key found for this signature in database
GPG Key ID: 41C3D4189AFEDB5A
2 changed files with 12 additions and 16 deletions

View File

@ -1,19 +1,15 @@
#include "mxentity.h" #include "mxentity.h"
// OFFSET: LEGO1 0x1001d190 STUB // OFFSET: LEGO1 0x1001d190
MxEntity::MxEntity() MxEntity::MxEntity()
{ {
// TODO // FIXME: This won't match because of m_atom. How would it access m_internal?
this->m_atom = NULL;
this->m_mxEntityId = -1;
} }
// OFFSET: LEGO1 0x1000c110 STUB // OFFSET: LEGO1 0x1000c110
MxEntity::~MxEntity() MxEntity::~MxEntity()
{ {
// TODO *this->m_atom;
} }
// OFFSET: LEGO1 0x10001070 STUB
void MxEntity::Destroy()
{
// TODO
}

View File

@ -1,7 +1,9 @@
#ifndef MXENTITY_H #ifndef MXENTITY_H
#define MXENTITY_H #define MXENTITY_H
#include "mxatomid.h"
#include "mxcore.h" #include "mxcore.h"
#include "mxtypes.h"
// VTABLE 0x100d5390 // VTABLE 0x100d5390
class MxEntity : public MxCore class MxEntity : public MxCore
@ -22,11 +24,9 @@ class MxEntity : public MxCore
{ {
return !strcmp(name, MxEntity::ClassName()) || MxCore::IsA(name); return !strcmp(name, MxEntity::ClassName()) || MxCore::IsA(name);
} }
private:
virtual void Destroy(); // vtable+0x1c MxS32 m_mxEntityId; // 0x8
MxAtomId* m_atom; // 0xc
// 0x8: MxResult
// 0xc MxAtomId
}; };
#endif // MXENTITY_H #endif // MXENTITY_H