2024-05-11 12:23:18 -04:00
|
|
|
#ifndef LEGOPATHSTRUCT_H
|
|
|
|
#define LEGOPATHSTRUCT_H
|
|
|
|
|
|
|
|
#include "decomp.h"
|
|
|
|
#include "mxatom.h"
|
2024-06-13 14:10:19 -04:00
|
|
|
#include "mxnotificationparam.h"
|
2024-05-11 12:23:18 -04:00
|
|
|
#include "mxtypes.h"
|
|
|
|
|
2024-05-19 15:41:07 -04:00
|
|
|
class LegoPathActor;
|
2024-05-12 15:30:34 -04:00
|
|
|
class LegoWorld;
|
|
|
|
|
2024-06-13 14:10:19 -04:00
|
|
|
// VTABLE: LEGO1 0x100d6230
|
|
|
|
// SIZE 0x10
|
2024-06-16 10:47:53 -04:00
|
|
|
class LegoPathStructNotificationParam : public MxNotificationParam {
|
2024-06-13 14:10:19 -04:00
|
|
|
public:
|
2024-06-16 10:47:53 -04:00
|
|
|
LegoPathStructNotificationParam(NotificationId p_type, MxCore* p_sender, MxU8 p_trigger, MxS16 p_data)
|
|
|
|
: MxNotificationParam()
|
2024-06-13 14:10:19 -04:00
|
|
|
{
|
|
|
|
m_type = p_type;
|
|
|
|
m_sender = p_sender;
|
|
|
|
m_data = p_data;
|
|
|
|
m_trigger = p_trigger;
|
|
|
|
}
|
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x1001bac0
|
|
|
|
MxNotificationParam* Clone() const override
|
|
|
|
{
|
2024-06-16 10:47:53 -04:00
|
|
|
return new LegoPathStructNotificationParam(m_type, m_sender, m_trigger, m_data);
|
2024-06-13 14:10:19 -04:00
|
|
|
} // vtable+0x04
|
|
|
|
|
2024-07-04 19:06:32 -04:00
|
|
|
MxU8 GetTrigger() { return m_trigger; }
|
|
|
|
MxS16 GetData() { return m_data; }
|
2024-06-13 14:10:19 -04:00
|
|
|
|
|
|
|
protected:
|
|
|
|
MxS16 m_data; // 0x0c
|
|
|
|
MxU8 m_trigger; // 0x0e
|
|
|
|
};
|
|
|
|
|
2024-05-11 12:23:18 -04:00
|
|
|
// VTABLE: LEGO1 0x100d7d9c
|
|
|
|
// SIZE 0x0c
|
2024-05-11 13:55:28 -04:00
|
|
|
struct LegoPathStructBase {
|
2024-05-11 12:23:18 -04:00
|
|
|
public:
|
2024-05-21 15:03:50 -04:00
|
|
|
enum {
|
|
|
|
c_bit1 = 0x01 << 24,
|
|
|
|
c_bit2 = 0x02 << 24,
|
|
|
|
c_bit3 = 0x04 << 24,
|
|
|
|
c_bit4 = 0x08 << 24,
|
|
|
|
c_bit5 = 0x10 << 24,
|
|
|
|
c_bit6 = 0x20 << 24,
|
|
|
|
c_bit7 = 0x40 << 24
|
|
|
|
};
|
|
|
|
|
|
|
|
LegoPathStructBase() : m_name(NULL), m_flags(0) {}
|
2024-05-11 12:23:18 -04:00
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x10047420
|
|
|
|
virtual ~LegoPathStructBase()
|
|
|
|
{
|
2024-05-11 12:57:07 -04:00
|
|
|
if (m_name != NULL) {
|
|
|
|
delete[] m_name;
|
2024-05-11 12:23:18 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-05-21 15:03:50 -04:00
|
|
|
char* m_name; // 0x04
|
|
|
|
MxU32 m_flags; // 0x08
|
2024-05-11 12:23:18 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
// VTABLE: LEGO1 0x100d7da0
|
|
|
|
// SIZE 0x14
|
2024-05-21 15:03:50 -04:00
|
|
|
class LegoPathStruct : public LegoPathStructBase {
|
2024-05-11 12:23:18 -04:00
|
|
|
public:
|
2024-05-21 15:03:50 -04:00
|
|
|
enum Trigger {
|
|
|
|
c_camAnim = 'C',
|
|
|
|
c_d = 'D',
|
|
|
|
c_e = 'E',
|
|
|
|
c_g = 'G',
|
|
|
|
c_h = 'H',
|
|
|
|
c_music = 'M',
|
|
|
|
c_s = 'S',
|
|
|
|
c_w = 'W'
|
|
|
|
};
|
|
|
|
|
2024-05-11 12:23:18 -04:00
|
|
|
// FUNCTION: LEGO1 0x100473a0
|
2024-05-12 15:30:34 -04:00
|
|
|
LegoPathStruct() : m_world(NULL) {}
|
2024-05-11 12:23:18 -04:00
|
|
|
|
|
|
|
// FUNCTION: LEGO1 0x10047470
|
|
|
|
~LegoPathStruct() override {}
|
|
|
|
|
2024-05-21 15:03:50 -04:00
|
|
|
virtual void HandleTrigger(LegoPathActor* p_actor, MxBool p_direction, MxU32 p_data); // vtable+0x04
|
2024-05-11 12:23:18 -04:00
|
|
|
|
2024-07-04 19:06:32 -04:00
|
|
|
void SetWorld(LegoWorld* p_world) { m_world = p_world; }
|
|
|
|
void SetAtomId(const MxAtomId& p_atomId) { m_atomId = p_atomId; }
|
2024-05-12 14:33:20 -04:00
|
|
|
|
2024-05-21 15:03:50 -04:00
|
|
|
private:
|
|
|
|
MxBool HandleTrigger(LegoPathActor* p_actor, MxBool p_direction, MxU32 p_data, MxBool p_bool);
|
|
|
|
void FUN_1001bc40(const char* p_name, MxU32 p_data, MxBool p_bool);
|
|
|
|
void PlayMusic(MxBool p_direction, MxU32 p_data);
|
|
|
|
|
2024-05-12 15:30:34 -04:00
|
|
|
LegoWorld* m_world; // 0x0c
|
|
|
|
MxAtomId m_atomId; // 0x10
|
2024-05-11 12:23:18 -04:00
|
|
|
};
|
|
|
|
|
2024-06-13 14:10:19 -04:00
|
|
|
// SYNTHETIC: LEGO1 0x1001bb80
|
2024-06-16 10:47:53 -04:00
|
|
|
// LegoPathStructNotificationParam::`scalar deleting destructor'
|
2024-06-13 14:10:19 -04:00
|
|
|
|
|
|
|
// SYNTHETIC: LEGO1 0x1001bbf0
|
2024-06-16 10:47:53 -04:00
|
|
|
// LegoPathStructNotificationParam::~LegoPathStructNotificationParam
|
2024-06-13 14:10:19 -04:00
|
|
|
|
2024-05-11 12:23:18 -04:00
|
|
|
// SYNTHETIC: LEGO1 0x10047440
|
|
|
|
// LegoPathStructBase::`scalar deleting destructor'
|
|
|
|
|
|
|
|
// SYNTHETIC: LEGO1 0x10047890
|
|
|
|
// LegoPathStruct::`vector deleting destructor'
|
|
|
|
|
|
|
|
#endif // LEGOPATHSTRUCT_H
|