Document some Boost data (#593)

* Run formatter

* Document some boost info
This commit is contained in:
Ryan Myers
2025-05-28 15:38:17 -04:00
committed by GitHub
parent 1b93c18b0f
commit 33a685be8e
13 changed files with 124 additions and 112 deletions
+10 -1
View File
@@ -172,7 +172,16 @@ typedef struct ObjPropertyTimeTrial {
typedef struct ObjPropertyBoost {
struct Object *obj;
s32 unk4;
union {
s32 indexes; // Keep this for compatibility
// This is a bitfield definition for the bits in indexes.
// It won't match when used, but it's useful for understanding the structure.
struct {
s32 racerIndex : 4; // bits 28-31 ((indexes >> 28) & 0xF)
s32 vertIndex : 14; // bits 14-27 ((indexes >> 14) & 0x3FFF)
s32 trisIndex : 14; // bits 0-13 (indexes & 0x3FFF)
};
};
} ObjPropertyBoost;
typedef struct ObjProperties {
+12 -12
View File
@@ -1086,18 +1086,18 @@ typedef struct Object_Boost_Inner {
} Object_Boost_Inner;
typedef struct Object_Boost {
Object_Boost_Inner unk0;
Object_Boost_Inner unk24;
Object_Boost_Inner unk48;
s16 unk6C;
s16 unk6E;
u8 unk70;
u8 unk71;
u8 unk72;
s8 unk73;
f32 unk74;
Sprite *unk78;
TextureHeader *unk7C;
/* 0x00 */ Object_Boost_Inner carBoostData;
/* 0x24 */ Object_Boost_Inner hovercraftBoostData;
/* 0x48 */ Object_Boost_Inner flyingBoostData;
/* 0x6C */ s16 spriteId;
/* 0x6E */ s16 textureId;
/* 0x70 */ u8 unk70;
/* 0x71 */ u8 unk71;
/* 0x72 */ u8 unk72;
/* 0x73 */ s8 unk73;
/* 0x74 */ f32 unk74;
/* 0x78 */ Sprite *sprite;
/* 0x7C */ TextureHeader *tex;
} Object_Boost;
typedef struct Object_EffectBox {