2023-06-29 04:10:08 -04:00
|
|
|
#ifndef MXENTITY_H
|
|
|
|
#define MXENTITY_H
|
|
|
|
|
2023-08-03 14:10:54 -04:00
|
|
|
#include "decomp.h"
|
2023-07-16 02:49:47 -04:00
|
|
|
#include "mxatomid.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
#include "mxcore.h"
|
2023-10-24 04:14:45 -04:00
|
|
|
#include "mxdsobject.h"
|
2023-07-16 02:49:47 -04:00
|
|
|
#include "mxtypes.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d5390
|
2023-10-01 09:06:29 -04:00
|
|
|
// SIZE 0x10
|
2023-10-24 19:38:27 -04:00
|
|
|
class MxEntity : public MxCore {
|
2023-06-29 04:10:08 -04:00
|
|
|
public:
|
2024-01-11 10:02:55 -05:00
|
|
|
// FUNCTION: LEGO1 0x1001d190
|
|
|
|
MxEntity() { this->m_mxEntityId = -1; }
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1000c110
|
|
|
|
virtual ~MxEntity() override{};
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1000c180
|
2023-10-24 19:38:27 -04:00
|
|
|
inline virtual const char* ClassName() const override // vtable+0xc
|
|
|
|
{
|
2023-12-27 15:59:42 -05:00
|
|
|
// STRING: LEGO1 0x100f0070
|
2023-10-24 19:38:27 -04:00
|
|
|
return "MxEntity";
|
|
|
|
}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1000c190
|
2023-12-13 05:48:14 -05:00
|
|
|
inline virtual MxBool IsA(const char* p_name) const override // vtable+0x10
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
2023-12-13 05:48:14 -05:00
|
|
|
return !strcmp(p_name, MxEntity::ClassName()) || MxCore::IsA(p_name);
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
|
|
|
|
2024-01-11 10:02:55 -05:00
|
|
|
// FUNCTION: LEGO1 0x10001070
|
|
|
|
virtual MxResult Create(MxS32 p_id, const MxAtomId& p_atom)
|
|
|
|
{
|
|
|
|
this->m_mxEntityId = p_id;
|
|
|
|
this->m_atom = p_atom;
|
|
|
|
return SUCCESS;
|
|
|
|
}; // vtable+0x14
|
|
|
|
|
2023-11-18 10:08:49 -05:00
|
|
|
inline MxResult Create(MxDSObject& p_dsObject)
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
|
|
|
m_mxEntityId = p_dsObject.GetObjectId();
|
|
|
|
m_atom = p_dsObject.GetAtomId();
|
|
|
|
return SUCCESS;
|
|
|
|
}
|
2023-08-03 19:43:36 -04:00
|
|
|
|
2023-10-11 18:15:36 -04:00
|
|
|
protected:
|
2023-10-24 19:38:27 -04:00
|
|
|
MxS32 m_mxEntityId; // 0x8
|
|
|
|
MxAtomId m_atom; // 0xc
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MXENTITY_H
|