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
|
2024-08-12 12:21:18 -04:00
|
|
|
MxEntity() { m_entityId = -1; }
|
2024-01-11 10:02:55 -05:00
|
|
|
|
|
|
|
// 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-07-04 19:06:32 -04:00
|
|
|
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-07-04 19:06:32 -04:00
|
|
|
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
|
2024-08-12 12:21:18 -04:00
|
|
|
virtual MxResult Create(MxS32 p_entityId, const MxAtomId& p_atomId)
|
2024-01-11 10:02:55 -05:00
|
|
|
{
|
2024-08-12 12:21:18 -04:00
|
|
|
m_entityId = p_entityId;
|
|
|
|
m_atomId = p_atomId;
|
2024-01-11 10:02:55 -05:00
|
|
|
return SUCCESS;
|
2024-01-29 17:30:20 -05:00
|
|
|
} // vtable+0x14
|
2024-01-11 10:02:55 -05:00
|
|
|
|
2024-07-04 19:06:32 -04:00
|
|
|
MxResult Create(MxDSAction& p_dsAction)
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
2024-08-12 12:21:18 -04:00
|
|
|
m_entityId = p_dsAction.GetObjectId();
|
|
|
|
m_atomId = p_dsAction.GetAtomId();
|
2023-10-24 19:38:27 -04:00
|
|
|
return SUCCESS;
|
|
|
|
}
|
2023-08-03 19:43:36 -04:00
|
|
|
|
2024-08-12 12:21:18 -04:00
|
|
|
MxS32 GetEntityId() { return m_entityId; }
|
|
|
|
MxAtomId& GetAtomId() { return m_atomId; }
|
|
|
|
|
|
|
|
void SetEntityId(MxS32 p_entityId) { m_entityId = p_entityId; }
|
|
|
|
void SetAtomId(const MxAtomId& p_atomId) { m_atomId = p_atomId; }
|
2024-01-13 20:34:54 -05:00
|
|
|
|
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-08-12 12:21:18 -04:00
|
|
|
MxS32 m_entityId; // 0x08
|
|
|
|
MxAtomId m_atomId; // 0x0c
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MXENTITY_H
|