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:
|
2023-10-24 19:38:27 -04:00
|
|
|
MxEntity();
|
|
|
|
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-06 07:10:45 -05:00
|
|
|
// GLOBAL: 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-10-24 19:38:27 -04:00
|
|
|
inline virtual MxBool IsA(const char* name) const override // vtable+0x10
|
|
|
|
{
|
|
|
|
return !strcmp(name, MxEntity::ClassName()) || MxCore::IsA(name);
|
|
|
|
}
|
|
|
|
|
2023-11-18 10:08:49 -05:00
|
|
|
virtual MxResult Create(MxS32 p_id, const MxAtomId& p_atom); // vtable+0x14
|
|
|
|
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
|