mirror of
https://github.com/isledecomp/isle.git
synced 2024-12-18 03:56:24 -05:00
0aa5e010ae
* Implement `CarRace` * Improve `CarRace::Create` * Fix arrays * Clean up array * Fix CI errors * Implement `LegoRaceCar::FUN_10012e00()` * Implement `Doors::VTable0xcc` * Address review comments, part 1 * Address review comments, part 2 --------- Co-authored-by: jonschz <jonschz@users.noreply.github.com>
68 lines
1.5 KiB
C++
68 lines
1.5 KiB
C++
#ifndef MXENTITY_H
|
|
#define MXENTITY_H
|
|
|
|
#include "decomp.h"
|
|
#include "mxatom.h"
|
|
#include "mxcore.h"
|
|
#include "mxdsaction.h"
|
|
#include "mxtypes.h"
|
|
|
|
// VTABLE: LEGO1 0x100d5390
|
|
// VTABLE: BETA10 0x101b93e8
|
|
// SIZE 0x10
|
|
class MxEntity : public MxCore {
|
|
public:
|
|
// FUNCTION: LEGO1 0x1001d190
|
|
MxEntity() { m_entityId = -1; }
|
|
|
|
// FUNCTION: LEGO1 0x1000c110
|
|
~MxEntity() override {}
|
|
|
|
// FUNCTION: LEGO1 0x1000c180
|
|
// FUNCTION: BETA10 0x10012700
|
|
const char* ClassName() const override // vtable+0x0c
|
|
{
|
|
// STRING: LEGO1 0x100f0070
|
|
return "MxEntity";
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x1000c190
|
|
// FUNCTION: BETA10 0x10012610
|
|
MxBool IsA(const char* p_name) const override // vtable+0x10
|
|
{
|
|
return !strcmp(p_name, MxEntity::ClassName()) || MxCore::IsA(p_name);
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x10001070
|
|
// FUNCTION: BETA10 0x1000f3a0
|
|
virtual MxResult Create(MxS32 p_entityId, const MxAtomId& p_atomId)
|
|
{
|
|
m_entityId = p_entityId;
|
|
m_atomId = p_atomId;
|
|
return SUCCESS;
|
|
} // vtable+0x14
|
|
|
|
MxResult Create(MxDSAction& p_dsAction)
|
|
{
|
|
m_entityId = p_dsAction.GetObjectId();
|
|
m_atomId = p_dsAction.GetAtomId();
|
|
return SUCCESS;
|
|
}
|
|
|
|
// FUNCTION: BETA10 0x10031c60
|
|
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; }
|
|
|
|
// SYNTHETIC: LEGO1 0x1000c210
|
|
// MxEntity::`scalar deleting destructor'
|
|
|
|
protected:
|
|
MxS32 m_entityId; // 0x08
|
|
MxAtomId m_atomId; // 0x0c
|
|
};
|
|
|
|
#endif // MXENTITY_H
|