mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
Document some Boost data (#593)
* Run formatter * Document some boost info
This commit is contained in:
@@ -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
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user