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"
|
2024-03-09 15:07:52 -05:00
|
|
|
#include "mxatom.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
#include "mxcore.h"
|
2024-01-13 15:00:11 -05:00
|
|
|
#include "mxdsaction.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
|
2024-03-03 20:34:55 -05:00
|
|
|
~MxEntity() override {}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x1000c180
|
2024-02-01 15:42:10 -05:00
|
|
|
inline const char* ClassName() const override // vtable+0x0c
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
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
|
2024-02-01 15:42:10 -05:00
|
|
|
inline 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;
|
2024-01-29 17:30:20 -05:00
|
|
|
} // vtable+0x14
|
2024-01-11 10:02:55 -05:00
|
|
|
|
2024-01-13 15:00:11 -05:00
|
|
|
inline MxResult Create(MxDSAction& p_dsAction)
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
2024-01-13 15:00:11 -05:00
|
|
|
m_mxEntityId = p_dsAction.GetObjectId();
|
|
|
|
m_atom = p_dsAction.GetAtomId();
|
2023-10-24 19:38:27 -04:00
|
|
|
return SUCCESS;
|
|
|
|
}
|
2023-08-03 19:43:36 -04:00
|
|
|
|
2024-01-13 20:34:54 -05:00
|
|
|
inline MxS32 GetEntityId() { return m_mxEntityId; }
|
|
|
|
inline MxAtomId& GetAtom() { return m_atom; }
|
|
|
|
|
2024-01-18 08:34:14 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x1000c210
|
|
|
|
// MxEntity::`scalar deleting destructor'
|
|
|
|
|
2023-10-11 18:15:36 -04:00
|
|
|
protected:
|
2024-01-29 16:17:17 -05:00
|
|
|
MxS32 m_mxEntityId; // 0x08
|
|
|
|
MxAtomId m_atom; // 0x0c
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MXENTITY_H
|