2023-06-29 04:10:08 -04:00
|
|
|
#ifndef RACESTATE_H
|
|
|
|
#define RACESTATE_H
|
|
|
|
|
|
|
|
#include "legostate.h"
|
|
|
|
|
2024-03-16 14:20:44 -04:00
|
|
|
// SIZE 0x06
|
2023-10-24 19:38:27 -04:00
|
|
|
struct RaceStateEntry {
|
2023-10-23 07:16:21 -04:00
|
|
|
public:
|
2024-03-16 14:20:44 -04:00
|
|
|
inline MxS16 GetUnknown0x02() { return m_unk0x02; }
|
2024-04-26 10:58:42 -04:00
|
|
|
inline MxU16 GetScore() { return m_score; }
|
2024-03-16 14:20:44 -04:00
|
|
|
|
|
|
|
// TODO: Possibly private
|
|
|
|
MxU8 m_id; // 0x00
|
|
|
|
MxS16 m_unk0x02; // 0x02
|
2024-04-26 10:58:42 -04:00
|
|
|
MxU16 m_score; // 0x04
|
2023-10-23 07:16:21 -04:00
|
|
|
};
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d5e30
|
2023-10-23 07:16:21 -04:00
|
|
|
// SIZE 0x2c
|
2023-10-24 19:38:27 -04:00
|
|
|
class RaceState : public LegoState {
|
2023-06-29 04:10:08 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
RaceState();
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10016010
|
2024-02-01 15:42:10 -05:00
|
|
|
inline const char* ClassName() const override // vtable+0x0c
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
2023-12-27 15:59:42 -05:00
|
|
|
// STRING: LEGO1 0x100f07d0
|
2023-10-24 19:38:27 -04:00
|
|
|
return "RaceState";
|
|
|
|
}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10016020
|
2024-02-01 15:42:10 -05:00
|
|
|
inline MxBool IsA(const char* p_name) const override // vtable+0x10
|
2023-10-24 19:38:27 -04:00
|
|
|
{
|
2023-12-13 05:48:14 -05:00
|
|
|
return !strcmp(p_name, RaceState::ClassName()) || LegoState::IsA(p_name);
|
2023-10-24 19:38:27 -04:00
|
|
|
}
|
2023-06-29 04:10:08 -04:00
|
|
|
|
2024-04-21 09:42:08 -04:00
|
|
|
MxResult Serialize(LegoFile* p_legoFile) override; // vtable+0x1c
|
2024-01-20 18:04:46 -05:00
|
|
|
|
2024-03-16 14:20:44 -04:00
|
|
|
RaceStateEntry* GetState(MxU8 p_id);
|
|
|
|
|
|
|
|
inline undefined4 GetUnknown0x28() { return m_unk0x28; }
|
2023-10-23 07:16:21 -04:00
|
|
|
|
2024-02-16 13:15:53 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x1000f6f0
|
|
|
|
// RaceState::~RaceState
|
|
|
|
|
2024-01-18 08:34:14 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x100160d0
|
|
|
|
// RaceState::`scalar deleting destructor'
|
|
|
|
|
2023-10-23 07:16:21 -04:00
|
|
|
protected:
|
2024-01-29 13:54:47 -05:00
|
|
|
RaceStateEntry m_state[5]; // 0x08
|
|
|
|
undefined4 m_unk0x28; // 0x28
|
2023-06-29 04:10:08 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // RACESTATE_H
|