2023-10-16 09:22:21 -04:00
|
|
|
#ifndef LEGOVEHICLEBUILDSTATE_H
|
|
|
|
#define LEGOVEHICLEBUILDSTATE_H
|
|
|
|
|
2023-10-24 19:38:27 -04:00
|
|
|
#include "decomp.h"
|
2023-10-16 09:22:21 -04:00
|
|
|
#include "legostate.h"
|
|
|
|
#include "mxstring.h"
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// VTABLE: LEGO1 0x100d66e0
|
2023-10-16 09:22:21 -04:00
|
|
|
// SIZE 0x50 (from 1000acd7)
|
2023-10-24 19:38:27 -04:00
|
|
|
class LegoVehicleBuildState : public LegoState {
|
2023-10-16 09:22:21 -04:00
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
LegoVehicleBuildState(char* p_classType);
|
2023-10-16 09:22:21 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10025ff0
|
2023-10-24 19:38:27 -04:00
|
|
|
inline virtual const char* ClassName() const override // vtable+0x0c
|
|
|
|
{
|
|
|
|
return this->m_className.GetData();
|
|
|
|
}
|
2023-10-16 09:22:21 -04:00
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x10026000
|
2023-10-24 19:38:27 -04:00
|
|
|
inline virtual MxBool IsA(const char* p_name) const override // vtable+0x10
|
|
|
|
{
|
|
|
|
return !strcmp(p_name, this->m_className.GetData()) || LegoState::IsA(p_name);
|
|
|
|
}
|
2023-10-16 09:22:21 -04:00
|
|
|
|
|
|
|
public:
|
2023-10-24 19:38:27 -04:00
|
|
|
struct UnkStruct {
|
2023-12-13 05:48:14 -05:00
|
|
|
undefined4 m_unk0x00;
|
|
|
|
undefined2 m_unk0x04;
|
|
|
|
undefined2 m_unk0x06;
|
|
|
|
undefined2 m_unk0x08;
|
2023-10-24 19:38:27 -04:00
|
|
|
|
|
|
|
UnkStruct();
|
|
|
|
};
|
|
|
|
|
2023-10-16 09:22:21 -04:00
|
|
|
private:
|
2023-12-13 05:48:14 -05:00
|
|
|
UnkStruct m_unk0x08[4]; // 0x08
|
2023-10-24 19:38:27 -04:00
|
|
|
|
|
|
|
// This can be one of the following:
|
|
|
|
// * LegoRaceCarBuildState
|
|
|
|
// * LegoCopterBuildState
|
|
|
|
// * LegoDuneCarBuildState
|
|
|
|
// * LegoJetskiBuildState
|
|
|
|
MxString m_className; // 0x38
|
|
|
|
|
|
|
|
// Known States:
|
|
|
|
// * 1 == enter(ing) build screen
|
|
|
|
// * 3 == cutscene/dialogue
|
|
|
|
// * 6 == exit(ing) build screen
|
|
|
|
MxU32 m_animationState; // 0x48
|
2023-12-13 05:48:14 -05:00
|
|
|
undefined m_unk0x4c; // 0x4c
|
|
|
|
undefined m_unk0x4d; // 0x4d
|
|
|
|
undefined m_unk0x4e; // 0x4e
|
2023-10-24 19:38:27 -04:00
|
|
|
MxU8 m_placedPartCount; // 0x4f
|
2023-10-16 09:22:21 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LEGOVEHICLEBUILDSTATE_H
|