1 #ifndef _COMMON_STRUCTS_H_
2 #define _COMMON_STRUCTS_H_
21 #define COURSE_NULL 0xFF
227 #define FRONT_LEFT_TYRE 0
228 #define FRONT_RIGHT_TYRE 1
229 #define BACK_LEFT_TYRE 2
230 #define BACK_RIGHT_TYRE 3
388 u8 pad_43[0x7F-0x43];
415 u32 lapCompletionTimes[3];
452 s16 lapCompletionTimeXs[3];
499 #define HUD_PLAYERS_SIZE 4
s16 Vec4s[4]
Definition: common_structs.h:10
f32 Vec3f[3]
Definition: common_structs.h:6
SURFACE_TYPE
Definition: common_structs.h:68
@ PAVEMENT
Definition: common_structs.h:70
@ RAMP
Definition: common_structs.h:90
@ STONE_ONE
Definition: common_structs.h:75
@ SAND_ONE
Definition: common_structs.h:71
@ SAND_TWO
Definition: common_structs.h:72
@ WOOD_TWO
Definition: common_structs.h:85
@ SNOW_ONE
Definition: common_structs.h:74
@ SAND_THREE
Definition: common_structs.h:79
@ ICE
Definition: common_structs.h:78
@ OUT_OF_BOUNDS
Definition: common_structs.h:88
@ AIRBORNE
Definition: common_structs.h:69
@ TRAIN_TRACK
Definition: common_structs.h:83
@ BOOST_PAD_TWO
Definition: common_structs.h:87
@ WOOD_ONE
Definition: common_structs.h:86
@ SNOW_TWO
Definition: common_structs.h:80
@ SAND_FOUR
Definition: common_structs.h:82
@ CLIFF
Definition: common_structs.h:81
@ BOOST_PAD_ONE
Definition: common_structs.h:89
@ DIRT
Definition: common_structs.h:84
@ GRASS
Definition: common_structs.h:77
@ STONE_TWO
Definition: common_structs.h:73
@ SAND_FIVE
Definition: common_structs.h:76
GhostController
Definition: common_structs.h:95
@ R
Definition: common_structs.h:99
@ B
Definition: common_structs.h:97
@ A
Definition: common_structs.h:96
@ Z
Definition: common_structs.h:98
u16 Vec3su[3]
Definition: common_structs.h:9
s16 Vec3s[3]
Definition: common_structs.h:8
f32 Mat4[4][4]
Definition: common_structs.h:13
COURSES
Definition: common_structs.h:23
@ COURSE_WARIO_STADIUM
Definition: common_structs.h:38
@ COURSE_MARIO_RACEWAY
Definition: common_structs.h:24
@ COURSE_BANSHEE_BOARDWALK
Definition: common_structs.h:27
@ COURSE_KALAMARI_DESERT
Definition: common_structs.h:35
@ COURSE_BIG_DONUT
Definition: common_structs.h:43
@ COURSE_ROYAL_RACEWAY
Definition: common_structs.h:31
@ COURSE_BLOCK_FORT
Definition: common_structs.h:39
@ COURSE_FRAPPE_SNOWLAND
Definition: common_structs.h:29
@ COURSE_LUIGI_RACEWAY
Definition: common_structs.h:32
@ COURSE_RAINBOW_ROAD
Definition: common_structs.h:37
@ COURSE_YOSHI_VALLEY
Definition: common_structs.h:28
@ COURSE_CHOCO_MOUNTAIN
Definition: common_structs.h:25
@ COURSE_TOADS_TURNPIKE
Definition: common_structs.h:34
@ COURSE_SKYSCRAPER
Definition: common_structs.h:40
@ COURSE_DOUBLE_DECK
Definition: common_structs.h:41
@ COURSE_BOWSER_CASTLE
Definition: common_structs.h:26
@ COURSE_KOOPA_BEACH
Definition: common_structs.h:30
@ NUM_COURSES
Definition: common_structs.h:45
@ COURSE_MOO_MOO_FARM
Definition: common_structs.h:33
@ COURSE_DK_JUNGLE
Definition: common_structs.h:42
@ COURSE_SHERBET_LAND
Definition: common_structs.h:36
@ COURSE_AWARD_CEREMONY
Definition: common_structs.h:44
f32 Mat3[3][3]
Definition: common_structs.h:12
TIME_TRIAL_DATA_INDEX
Definition: common_structs.h:48
@ TIME_TRIAL_DATA_BANSHEE_BOARDWALK
Definition: common_structs.h:63
@ TIME_TRIAL_DATA_ROYAL_RACEWAY
Definition: common_structs.h:59
@ TIME_TRIAL_DATA_SHERBET_LAND
Definition: common_structs.h:58
@ TIME_TRIAL_DATA_KOOPA_BEACH
Definition: common_structs.h:51
@ TIME_TRIAL_DATA_YOSHI_VALLEY
Definition: common_structs.h:62
@ TIME_TRIAL_DATA_KALAMARI_DESERT
Definition: common_structs.h:52
@ TIME_TRIAL_DATA_WARIO_STADIUM
Definition: common_structs.h:57
@ TIME_TRIAL_DATA_BOWSER_CASTLE
Definition: common_structs.h:60
@ TIME_TRIAL_DATA_CHOCO_MOUNTAIN
Definition: common_structs.h:55
@ TIME_TRIAL_DATA_FRAPPE_SNOWLAND
Definition: common_structs.h:54
@ NUM_TIME_TRIAL_DATA
Definition: common_structs.h:65
@ TIME_TRIAL_DATA_RAINBOW_ROAD
Definition: common_structs.h:64
@ TIME_TRIAL_DATA_TOADS_TURNPIKE
Definition: common_structs.h:53
@ TIME_TRIAL_DATA_MARIO_RACEWAY
Definition: common_structs.h:56
@ TIME_TRIAL_DATA_LUIGI_RACEWAY
Definition: common_structs.h:49
@ TIME_TRIAL_DATA_DK_JUNGLE
Definition: common_structs.h:61
@ TIME_TRIAL_DATA_MOO_MOO_FARM
Definition: common_structs.h:50
Definition: common_structs.h:110
u16 unk32
Definition: common_structs.h:112
Vec3f unk3C
Definition: common_structs.h:118
u16 unk30
Definition: common_structs.h:111
u16 unk3A
Definition: common_structs.h:117
u16 unk38
Definition: common_structs.h:115
Vec3f unk54
Definition: common_structs.h:120
u16 unk36
Definition: common_structs.h:114
f32 unk6C
Definition: common_structs.h:122
Vec3f unk60
Definition: common_structs.h:121
u16 unk34
Definition: common_structs.h:113
Vec3f unk48
Definition: common_structs.h:119
Definition: common_structs.h:210
u8 surfaceType
Definition: common_structs.h:213
f32 cornerGroundY
Definition: common_structs.h:221
Vec3f cornerPos
Definition: common_structs.h:211
u16 surfaceMapIndex
Definition: common_structs.h:218
u8 surfaceFlags
Definition: common_structs.h:215
s32 unk_14
Definition: common_structs.h:224
Definition: common_structs.h:247
s16 unk_07A
Definition: common_structs.h:277
f32 unk_104
Definition: common_structs.h:320
f32 unk_DA0
Definition: common_structs.h:360
s16 unk_042
Definition: common_structs.h:265
s16 unk_D9A
Definition: common_structs.h:358
s16 lapCount
Definition: common_structs.h:252
f32 kartFriction
Definition: common_structs.h:318
s16 unk_0C0
Definition: common_structs.h:299
Collision unk_110
Definition: common_structs.h:324
u16 unk_0DE
Definition: common_structs.h:308
f32 kartHopAcceleration
Definition: common_structs.h:315
f32 unk_210
Definition: common_structs.h:335
f32 unk_098
Definition: common_structs.h:285
f32 unk_D9C
Definition: common_structs.h:359
f32 kartGravity
Definition: common_structs.h:319
f32 size
Definition: common_structs.h:341
f32 currentSpeed
Definition: common_structs.h:286
s16 unk_238
Definition: common_structs.h:348
f32 unk_DAC
Definition: common_structs.h:364
u16 unk_046
Definition: common_structs.h:267
f32 unk_0A4
Definition: common_structs.h:288
f32 unk_094
Definition: common_structs.h:284
Mat3 orientationMatrix
Definition: common_structs.h:326
u16 unk_002
Definition: common_structs.h:249
s16 unk_228
Definition: common_structs.h:342
s16 unk_044
Definition: common_structs.h:266
s32 unk_07C
Definition: common_structs.h:278
s32 statusEffects
Definition: common_structs.h:254
u16 characterId
Definition: common_structs.h:354
s16 unk_0CA
Definition: common_structs.h:304
Vec4s unk_0CC
Definition: common_structs.h:305
u16 unk_0B4
Definition: common_structs.h:295
f32 unk_08C
Definition: common_structs.h:282
s16 unk_0FA
Definition: common_structs.h:317
s16 unk_078
Definition: common_structs.h:276
u32 effects
Definition: common_structs.h:298
f32 unk_23C
Definition: common_structs.h:350
f32 unk_05C
Definition: common_structs.h:271
f32 unk_DB0
Definition: common_structs.h:365
Mat3 unk_150
Definition: common_structs.h:325
Vec3s unk_02C
Definition: common_structs.h:261
f32 unk_0E8
Definition: common_structs.h:312
f32 unk_090
Definition: common_structs.h:283
Vec4s unk_050
Definition: common_structs.h:269
s16 slopeAccel
Definition: common_structs.h:301
f32 boostPower
Definition: common_structs.h:279
s16 unk_222
Definition: common_structs.h:340
s16 unk_040
Definition: common_structs.h:264
s16 unk_D98
Definition: common_structs.h:357
f32 unk_20C
Definition: common_structs.h:334
f32 unk_230
Definition: common_structs.h:345
f32 boundingBoxSize
Definition: common_structs.h:274
f32 unk_0A0
Definition: common_structs.h:287
u16 type
Definition: common_structs.h:248
f32 unk_108
Definition: common_structs.h:321
f32 unk_DA8
Definition: common_structs.h:363
s16 unk_0AE
Definition: common_structs.h:292
f32 rotZ
Definition: common_structs.h:260
f32 kartHopJerk
Definition: common_structs.h:314
f32 topSpeed
Definition: common_structs.h:336
f32 unk_0E4
Definition: common_structs.h:311
f32 rotY
Definition: common_structs.h:259
s16 unk_0A8
Definition: common_structs.h:289
s16 unk_234
Definition: common_structs.h:346
Vec3f velocity
Definition: common_structs.h:263
f32 kartHopVelocity
Definition: common_structs.h:313
Vec4s unk_0D4
Definition: common_structs.h:306
f32 rotX
Definition: common_structs.h:258
s16 unk_DA4
Definition: common_structs.h:361
s32 unk_240
Definition: common_structs.h:351
s16 unk_23A
Definition: common_structs.h:349
u16 unk_0B6
Definition: common_structs.h:296
f32 unk_22C
Definition: common_structs.h:344
Vec3f unk_064
Definition: common_structs.h:273
Vec4s unk_048
Definition: common_structs.h:268
s16 unk_0C2
Definition: common_structs.h:300
u16 unk_256
Definition: common_structs.h:355
f32 unk_084
Definition: common_structs.h:280
f32 unk_1FC
Definition: common_structs.h:329
s16 unk_DA6
Definition: common_structs.h:362
s16 boostTimer
Definition: common_structs.h:307
s16 currentItemCopy
Definition: common_structs.h:255
s16 unk_0E2
Definition: common_structs.h:310
u16 unk_006
Definition: common_structs.h:251
s16 unk_0B0
Definition: common_structs.h:293
s16 unk_0C8
Definition: common_structs.h:303
s16 unk_0B2
Definition: common_structs.h:294
s16 unk_204
Definition: common_structs.h:331
s16 unk_236
Definition: common_structs.h:347
f32 unk_088
Definition: common_structs.h:281
s16 unk_206
Definition: common_structs.h:332
f32 unk_060
Definition: common_structs.h:272
f32 unk_218
Definition: common_structs.h:337
f32 unk_208
Definition: common_structs.h:333
f32 unk_058
Definition: common_structs.h:270
s16 nearestWaypointId
Definition: common_structs.h:339
s16 unk_0E0
Definition: common_structs.h:309
s16 unk_012
Definition: common_structs.h:256
f32 unk_0B8
Definition: common_structs.h:297
u16 unk_0F8
Definition: common_structs.h:316
s16 unk_0C6
Definition: common_structs.h:302
u32 unk_200
Definition: common_structs.h:330
f32 unk_1F8
Definition: common_structs.h:328
s16 currentRank
Definition: common_structs.h:250
s16 unk_0AC
Definition: common_structs.h:291
s16 unk_22A
Definition: common_structs.h:343
f32 unk_074
Definition: common_structs.h:275
s16 unk_10C
Definition: common_structs.h:322
f32 unk_21C
Definition: common_structs.h:338
s16 unk_0AA
Definition: common_structs.h:290
Vec3f pos
Definition: common_structs.h:257
Definition: common_structs.h:392
u16 alpha
Definition: common_structs.h:396
u16 red
Definition: common_structs.h:393
u16 blue
Definition: common_structs.h:395
u16 green
Definition: common_structs.h:394
Definition: common_structs.h:102
s8 stickX
Definition: common_structs.h:106
s8 frameDuration
Definition: common_structs.h:104
u8 button
Definition: common_structs.h:103
s8 stickY
Definition: common_structs.h:105
Definition: common_structs.h:232
s16 unk1C
Definition: common_structs.h:242
f32 unkC
Definition: common_structs.h:237
f32 unk10
Definition: common_structs.h:238
s16 unk0
Definition: common_structs.h:233
s16 unk2
Definition: common_structs.h:234
f32 unk4
Definition: common_structs.h:235
f32 unk14
Definition: common_structs.h:239
s16 unk20
Definition: common_structs.h:244
f32 unk8
Definition: common_structs.h:236
s16 unk1E
Definition: common_structs.h:243
s16 unk1A
Definition: common_structs.h:241
s16 unk18
Definition: common_structs.h:240
Definition: common_structs.h:125
s16 unk_040
Definition: common_structs.h:148
s16 unk_036
Definition: common_structs.h:143
s16 unk_032
Definition: common_structs.h:141
s16 unk_02E
Definition: common_structs.h:139
u16 unk_010
Definition: common_structs.h:128
s16 unk_020
Definition: common_structs.h:134
f32 unk_00C
Definition: common_structs.h:127
s16 unk_030
Definition: common_structs.h:140
s16 unk_034
Definition: common_structs.h:142
s16 unk_038
Definition: common_structs.h:144
Vec3f unk_000
Definition: common_structs.h:126
s16 unk_03A
Definition: common_structs.h:145
s16 unk_03C
Definition: common_structs.h:146
s16 unk_02C
Definition: common_structs.h:138
s16 unk_01E
Definition: common_structs.h:133
s16 unk_042
Definition: common_structs.h:149
f32 unk_024
Definition: common_structs.h:136
f32 unk_018
Definition: common_structs.h:131
s16 unk_044
Definition: common_structs.h:150
s16 unk_046
Definition: common_structs.h:151
f32 unk_028
Definition: common_structs.h:137
s16 unk_03E
Definition: common_structs.h:147
s16 unk_022
Definition: common_structs.h:135
s16 unk_01C
Definition: common_structs.h:132
u16 unk_012
Definition: common_structs.h:129
f32 unk_014
Definition: common_structs.h:130
Definition: common_structs.h:17
f32 x
Definition: common_structs.h:18
Definition: common_structs.h:401
u32 lap2CompletionTime
Definition: common_structs.h:412
s8 raceCompleteBool
Definition: common_structs.h:470
s16 lapAfterImage1X
Definition: common_structs.h:458
s32 posXInt
Definition: common_structs.h:427
u8 unk_7A
Definition: common_structs.h:487
s16 lap3CompletionTimeX
Definition: common_structs.h:450
u32 lap1Duration
Definition: common_structs.h:420
s16 slideRankX
Definition: common_structs.h:463
s32 posZInt
Definition: common_structs.h:429
s16 slideItemBoxX
Definition: common_structs.h:439
s8 alsoLapCount
Definition: common_structs.h:472
u8 unk_7D
Definition: common_structs.h:490
s8 unk_74
Definition: common_structs.h:479
s16 rankX
Definition: common_structs.h:461
s8 unk_75
Definition: common_structs.h:480
s16 timerX
Definition: common_structs.h:444
u32 lap3Duration
Definition: common_structs.h:422
s8 blinkState
Definition: common_structs.h:478
s16 lap1CompletionTimeX
Definition: common_structs.h:448
u8 unk_7B
Definition: common_structs.h:488
s16 rankY
Definition: common_structs.h:462
u8 unk_81
Definition: common_structs.h:494
s32 unk_38
Definition: common_structs.h:430
s16 slideRankY
Definition: common_structs.h:464
s16 speedometerX
Definition: common_structs.h:435
u32 lap1CompletionTime
Definition: common_structs.h:411
f32 unknownScaling
Definition: common_structs.h:402
u32 lap3CompletionTime
Definition: common_structs.h:413
s16 lapAfterImage2X
Definition: common_structs.h:459
s16 lapX
Definition: common_structs.h:456
s8 unk_77
Definition: common_structs.h:482
u8 unk_7C
Definition: common_structs.h:489
s16 totalTimeX
Definition: common_structs.h:454
s16 lapY
Definition: common_structs.h:460
s8 unk_82
Definition: common_structs.h:495
u8 unk_7F
Definition: common_structs.h:492
s16 slideItemBoxY
Definition: common_structs.h:440
s16 timerY
Definition: common_structs.h:455
s8 lapCount
Definition: common_structs.h:471
u8 unk_80
Definition: common_structs.h:493
u8 unk_7E
Definition: common_structs.h:491
s16 unk_6C
Definition: common_structs.h:468
s16 itemBoxY
Definition: common_structs.h:438
s16 unk_6E
Definition: common_structs.h:469
u8 itemOverride
Definition: common_structs.h:481
s16 unk_4A
Definition: common_structs.h:442
s32 posYInt
Definition: common_structs.h:428
f32 rankScaling
Definition: common_structs.h:403
u8 unk_78
Definition: common_structs.h:485
s8 unk_83
Definition: common_structs.h:496
s16 speedometerY
Definition: common_structs.h:436
u32 someTimer
Definition: common_structs.h:405
s16 blinkTimer
Definition: common_structs.h:434
u8 unk_79
Definition: common_structs.h:486
s16 stagingPosition
Definition: common_structs.h:465
u32 timeLastTouchedFinishLine
Definition: common_structs.h:407
s16 itemBoxX
Definition: common_structs.h:437
s16 unk_4C
Definition: common_structs.h:443
u32 someTimer1
Definition: common_structs.h:406
u32 lap2Duration
Definition: common_structs.h:421
s16 lap2CompletionTimeX
Definition: common_structs.h:449
Definition: common_structs.h:163
Definition: common_structs.h:156
Definition: common_structs.h:175
s16 vtx21
Definition: common_structs.h:187
u16 surfaceType
Definition: common_structs.h:183
s16 vtx23
Definition: common_structs.h:189
Vtx * vtxPoly3
Definition: common_structs.h:192
Vtx * vtxPoly2
Definition: common_structs.h:191
s16 vtx31
Definition: common_structs.h:184
f32 height2
Definition: common_structs.h:206
u16 flags
Definition: common_structs.h:176
s16 vtx22
Definition: common_structs.h:188
s16 vtx33
Definition: common_structs.h:186
f32 rotation
Definition: common_structs.h:205
Vtx * vtxPoly1
Definition: common_structs.h:190
f32 gravity
Definition: common_structs.h:198
f32 height
Definition: common_structs.h:195
s16 vtx32
Definition: common_structs.h:185
Definition: common_structs.h:381
u8 ghostDataSaved
Definition: common_structs.h:384
u8 checksum
Definition: common_structs.h:389
s32 unk_00
Definition: common_structs.h:383
u8 characterId
Definition: common_structs.h:386
s8 courseIndex
Definition: common_structs.h:385
signed int s32
Definition: ultratypes.h:15
unsigned int u32
Definition: ultratypes.h:16
signed char s8
Definition: ultratypes.h:11
signed short int s16
Definition: ultratypes.h:13
float f32
Definition: ultratypes.h:32
unsigned short int u16
Definition: ultratypes.h:14
unsigned char u8
Definition: ultratypes.h:12