2023-06-11 21:03:54 -04:00
|
|
|
#ifndef LEGOENTITY_H
|
|
|
|
#define LEGOENTITY_H
|
|
|
|
|
2023-06-29 04:10:08 -04:00
|
|
|
#include "mxentity.h"
|
2023-09-27 15:16:46 -04:00
|
|
|
#include "extra.h"
|
2023-06-29 04:10:08 -04:00
|
|
|
|
|
|
|
// VTABLE 0x100d4858
|
2023-08-03 14:10:54 -04:00
|
|
|
// SIZE 0x68 (probably)
|
2023-06-29 04:10:08 -04:00
|
|
|
class LegoEntity : public MxEntity
|
2023-06-11 21:03:54 -04:00
|
|
|
{
|
|
|
|
public:
|
2023-06-29 04:10:08 -04:00
|
|
|
// Inlined at 0x100853f7
|
|
|
|
inline LegoEntity()
|
|
|
|
{
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
|
|
|
__declspec(dllexport) virtual ~LegoEntity() override; // vtable+0x0
|
|
|
|
|
2023-07-02 04:05:49 -04:00
|
|
|
virtual MxLong Notify(MxParam &p) override; // vtable+0x4
|
2023-06-29 04:10:08 -04:00
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x1000c2f0
|
|
|
|
inline const char *ClassName() const override // vtable+0xc
|
|
|
|
{
|
|
|
|
// 0x100f0064
|
|
|
|
return "LegoEntity";
|
|
|
|
}
|
|
|
|
|
|
|
|
// OFFSET: LEGO1 0x1000c300
|
|
|
|
inline MxBool IsA(const char *name) const override // vtable+0x10
|
|
|
|
{
|
|
|
|
return !strcmp(name, LegoEntity::ClassName()) || MxEntity::IsA(name);
|
|
|
|
}
|
|
|
|
|
2023-09-27 15:16:46 -04:00
|
|
|
virtual void vtable18(); // vtable+0x18
|
|
|
|
virtual void Destroy(); // vtable+0x1c
|
|
|
|
virtual void ParseAction(char *); // vtable+0x20
|
|
|
|
|
|
|
|
protected:
|
|
|
|
// For tokens from the extra string that look like this:
|
|
|
|
// "Action:openram;\lego\scripts\Race\CarRaceR;0"
|
|
|
|
ExtraActionType m_actionType; // 0x5c
|
|
|
|
char *m_actionArgString; // 0x60
|
|
|
|
MxS32 m_actionArgNumber; // 0x64
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-06-11 21:03:54 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LEGOENTITY_H
|