2024-03-22 13:40:19 -04:00
|
|
|
#ifndef LEGOCHARACTERS_H
|
|
|
|
#define LEGOCHARACTERS_H
|
|
|
|
|
|
|
|
#include "decomp.h"
|
|
|
|
#include "mxtypes.h"
|
|
|
|
|
2024-03-23 13:06:31 -04:00
|
|
|
class LegoExtraActor;
|
2024-03-22 13:40:19 -04:00
|
|
|
class LegoROI;
|
|
|
|
|
|
|
|
// SIZE 0x108
|
2024-04-28 09:04:27 -04:00
|
|
|
struct LegoCharacterInfo {
|
2024-03-22 13:40:19 -04:00
|
|
|
// SIZE 0x18
|
|
|
|
struct Part {
|
|
|
|
MxU8* m_unk0x00; // 0x00
|
|
|
|
const char** m_unk0x04; // 0x04
|
|
|
|
MxU8 m_unk0x08; // 0x08
|
|
|
|
MxU8* m_unk0x0c; // 0x0c
|
|
|
|
const char** m_unk0x10; // 0x10
|
|
|
|
MxU8 m_unk0x14; // 0x14
|
|
|
|
};
|
|
|
|
|
2024-03-23 13:06:31 -04:00
|
|
|
const char* m_name; // 0x00
|
|
|
|
LegoROI* m_roi; // 0x04
|
|
|
|
LegoExtraActor* m_actor; // 0x08
|
|
|
|
MxS32 m_unk0x0c; // 0x0c
|
|
|
|
MxS32 m_unk0x10; // 0x10
|
2024-05-25 10:40:10 -04:00
|
|
|
MxU8 m_mood; // 0x14
|
2024-03-23 13:06:31 -04:00
|
|
|
Part m_parts[10]; // 0x18
|
2024-03-22 13:40:19 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
// SIZE 0x58
|
|
|
|
struct LegoCharacterLOD {
|
|
|
|
enum {
|
|
|
|
c_flag1 = 0x01,
|
|
|
|
c_flag2 = 0x02
|
|
|
|
};
|
|
|
|
|
|
|
|
const char* m_name; // 0x00
|
|
|
|
const char* m_parentName; // 0x04
|
|
|
|
MxU32 m_flags; // 0x08
|
|
|
|
float m_boundingSphere[4]; // 0x0c
|
|
|
|
float m_boundingBox[6]; // 0x1c
|
|
|
|
float m_position[3]; // 0x34
|
|
|
|
float m_direction[3]; // 0x40
|
|
|
|
float m_up[3]; // 0x4c
|
|
|
|
};
|
|
|
|
|
2024-04-28 08:49:07 -04:00
|
|
|
enum LegoCharacterLODs {
|
|
|
|
c_topLOD,
|
|
|
|
c_bodyLOD,
|
|
|
|
c_infohatLOD,
|
|
|
|
c_infogronLOD,
|
|
|
|
c_headLOD,
|
|
|
|
c_armlftLOD,
|
|
|
|
c_armrtLOD,
|
|
|
|
c_clawlftLOD,
|
|
|
|
c_clawrtLOD,
|
|
|
|
c_leglftLOD,
|
|
|
|
c_legrtLOD
|
|
|
|
};
|
|
|
|
|
|
|
|
enum LegoCharacterParts {
|
|
|
|
c_bodyPart,
|
|
|
|
c_infohatPart,
|
|
|
|
c_infogronPart,
|
|
|
|
c_headPart,
|
|
|
|
c_armlftPart,
|
|
|
|
c_armrtPart,
|
|
|
|
c_clawlftPart,
|
|
|
|
c_clawrtPart,
|
|
|
|
c_leglftPart,
|
|
|
|
c_legrtPart
|
|
|
|
};
|
|
|
|
|
2024-04-28 09:04:27 -04:00
|
|
|
extern LegoCharacterInfo g_characterInfoInit[66];
|
2024-03-22 13:40:19 -04:00
|
|
|
extern LegoCharacterLOD g_characterLODs[11];
|
|
|
|
|
|
|
|
#endif // LEGOCHARACTERS_H
|