isle-portable/LEGO1/mxentity.h

44 lines
908 B
C
Raw Normal View History

#ifndef MXENTITY_H
#define MXENTITY_H
#include "decomp.h"
#include "mxatomid.h"
#include "mxcore.h"
#include "mxdsobject.h"
#include "mxtypes.h"
// VTABLE 0x100d5390
2023-10-01 09:06:29 -04:00
// SIZE 0x10
2023-10-24 19:38:27 -04:00
class MxEntity : public MxCore {
public:
2023-10-24 19:38:27 -04:00
MxEntity();
virtual ~MxEntity() override;
2023-10-24 19:38:27 -04:00
// OFFSET: LEGO1 0x1000c180
inline virtual const char* ClassName() const override // vtable+0xc
{
// 0x100f0070
return "MxEntity";
}
2023-10-24 19:38:27 -04:00
// OFFSET: LEGO1 0x1000c190
inline virtual MxBool IsA(const char* name) const override // vtable+0x10
{
return !strcmp(name, MxEntity::ClassName()) || MxCore::IsA(name);
}
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;
}
protected:
2023-10-24 19:38:27 -04:00
MxS32 m_mxEntityId; // 0x8
MxAtomId m_atom; // 0xc
};
#endif // MXENTITY_H