mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
Cleanup, and documenting (#583)
* Some amount of documenting in printf.c * Formatter, and do some mild cleanup and documentation in menu.c * Fix gSaveMenuObjectIndices * Use ObjectTransform in MenuAsset as it's what's being passed to cam_push_model_mtx * Fix warnings and format * Cleanup some objects.c code and it's usage of casting. * Add Object to Object_64 * Much better score for func_8000B750 * Match func_8000B750 * Update score * Do some naming * Sorry one more better documenting!
This commit is contained in:
@@ -170,6 +170,11 @@ typedef struct ObjPropertyTimeTrial {
|
||||
struct ObjectHeader *header;
|
||||
} ObjPropertyTimeTrial;
|
||||
|
||||
typedef struct ObjPropertyBoost {
|
||||
struct Object *obj;
|
||||
s32 unk4;
|
||||
} ObjPropertyBoost;
|
||||
|
||||
typedef struct ObjProperties {
|
||||
union {
|
||||
ObjPropertyCommon common;
|
||||
@@ -204,6 +209,7 @@ typedef struct ObjProperties {
|
||||
ObjPropertyWeapon weapon;
|
||||
ObjPropertyCamControl camControl;
|
||||
ObjPropertyTimeTrial timeTrial;
|
||||
ObjPropertyBoost boost;
|
||||
};
|
||||
} ObjProperties;
|
||||
|
||||
|
||||
@@ -1660,6 +1660,7 @@ typedef struct Object_CharacterSelect {
|
||||
|
||||
typedef struct Object_64 {
|
||||
union {
|
||||
struct Object *obj;
|
||||
Object_Laser laser;
|
||||
Object_TrophyCabinet trophy_cabinet;
|
||||
Object_Animator animator;
|
||||
@@ -1761,7 +1762,10 @@ typedef struct unk800B2260_C {
|
||||
/* Size: 0x018 bytes */
|
||||
typedef struct ObjectTransform {
|
||||
/* 0x0000 */ Vec3s rotation;
|
||||
union {
|
||||
/* 0x0006 */ s16 flags;
|
||||
/* 0x0006 */ s16 spriteID;
|
||||
};
|
||||
/* 0x0008 */ f32 scale;
|
||||
/* 0x000C */ f32 x_position;
|
||||
/* 0x0010 */ f32 y_position;
|
||||
|
||||
Reference in New Issue
Block a user