1#ifndef _COMMON_STRUCTS_H_
2#define _COMMON_STRUCTS_H_
5#include <libultraship.h>
542#define HUD_PLAYERS_SIZE 4
SpTaskState
Definition common_structs.h:39
@ SPTASK_STATE_INTERRUPTED
Definition common_structs.h:42
@ SPTASK_STATE_FINISHED
Definition common_structs.h:43
@ SPTASK_STATE_RUNNING
Definition common_structs.h:41
@ SPTASK_STATE_FINISHED_DP
Definition common_structs.h:44
@ SPTASK_STATE_NOT_STARTED
Definition common_structs.h:40
s16 Vec4s[4]
Definition common_structs.h:17
f32 Vec3f[3]
Definition common_structs.h:10
GhostController
Definition common_structs.h:29
@ R
Definition common_structs.h:29
@ B
Definition common_structs.h:29
@ A
Definition common_structs.h:29
@ Z
Definition common_structs.h:29
POOL_1_PARTICLE_TYPES
Definition common_structs.h:403
@ NO_PARTICLE
Definition common_structs.h:404
@ POOL_1_PARTICLE_TYPE_6
Definition common_structs.h:410
@ POOL_1_PARTICLE_TYPE_4
Definition common_structs.h:408
@ POOL_1_PARTICLE_TYPE_7
Definition common_structs.h:411
@ POOL_1_PARTICLE_TYPE_9
Definition common_structs.h:413
@ POOL_1_PARTICLE_TYPE_5
Definition common_structs.h:409
@ GRASS_PARTICLE
Definition common_structs.h:407
@ GROUND_PARTICLE
Definition common_structs.h:406
@ POOL_1_PARTICLE_TYPE_8
Definition common_structs.h:412
@ DRIFT_PARTICLE
Definition common_structs.h:405
u16 Vec3su[3]
Definition common_structs.h:16
s16 Vec3s[3]
Definition common_structs.h:15
f32 Vec4f[4]
Definition common_structs.h:11
f32 Mat4[4][4]
Definition common_structs.h:20
s32 Vec3iu[3]
Definition common_structs.h:13
f32 Mat3[3][3]
Definition common_structs.h:19
int16_t pathPointStart
Definition CPU.h:7
int32_t type
Definition CPU.h:9
int16_t pathPointEnd
Definition CPU.h:8
Definition common_structs.h:205
Vtx * vtx3
Definition common_structs.h:224
u16 surfaceType
Definition common_structs.h:213
f32 normalY
Definition common_structs.h:227
f32 normalX
Definition common_structs.h:226
Vtx * vtx1
Definition common_structs.h:222
s16 maxY
Definition common_structs.h:220
f32 normalZ
Definition common_structs.h:228
s16 minZ
Definition common_structs.h:218
u16 flags
Definition common_structs.h:206
s16 minY
Definition common_structs.h:217
Vtx * vtx2
Definition common_structs.h:223
f32 distance
Definition common_structs.h:229
s16 minX
Definition common_structs.h:216
s16 maxX
Definition common_structs.h:219
s16 maxZ
Definition common_structs.h:221
Definition common_structs.h:147
u16 unk32
Definition common_structs.h:149
Vec3f surfaceDistance
Definition common_structs.h:155
u16 meshIndexYX
Definition common_structs.h:151
u16 unk30
Definition common_structs.h:148
Vec3f orientationVector
Definition common_structs.h:158
u16 meshIndexZY
Definition common_structs.h:152
Vec3f unk54
Definition common_structs.h:157
f32 unk6C
Definition common_structs.h:159
u16 unk34
Definition common_structs.h:150
u16 meshIndexZX
Definition common_structs.h:154
Vec3f unk48
Definition common_structs.h:156
Definition common_structs.h:66
s16 rawStickY
Definition common_structs.h:68
u16 stickDepressed
Definition common_structs.h:76
s16 rightRawStickY
Definition common_structs.h:70
u16 stickDirection
Definition common_structs.h:74
s16 rawStickX
Definition common_structs.h:67
u16 buttonPressed
Definition common_structs.h:72
s16 rightRawStickX
Definition common_structs.h:69
u16 button
Definition common_structs.h:71
u16 stickPressed
Definition common_structs.h:75
u16 buttonDepressed
Definition common_structs.h:73
Definition common_structs.h:193
s16 tc[2]
Definition common_structs.h:195
s16 ob[3]
Definition common_structs.h:194
s8 ca[4]
Definition common_structs.h:196
Definition common_structs.h:59
s32 unk8
Definition common_structs.h:62
s16 unk0
Definition common_structs.h:60
s32 unk4
Definition common_structs.h:61
s32 unkC
Definition common_structs.h:63
Definition common_structs.h:232
u16 collisionMeshIndex
Definition common_structs.h:236
s32 unk_14
Definition common_structs.h:241
u8 surfaceType
Definition common_structs.h:234
Vec3f pos
Definition common_structs.h:233
u8 surfaceFlags
Definition common_structs.h:235
f32 baseHeight
Definition common_structs.h:238
Definition common_structs.h:264
u32 nControlFlags
Definition common_structs.h:397
f32 unk_104
Definition common_structs.h:335
f32 unk_DA0
Definition common_structs.h:378
s16 unk_042
Definition common_structs.h:280
s16 unk_D9A
Definition common_structs.h:376
s16 lapCount
Definition common_structs.h:269
f32 kartFriction
Definition common_structs.h:333
s16 unk_0C0
Definition common_structs.h:314
KartTyre tyres[4]
Definition common_structs.h:342
f32 kartHopAcceleration
Definition common_structs.h:330
f32 unk_210
Definition common_structs.h:350
f32 unk_098
Definition common_structs.h:300
f32 unk_D9C
Definition common_structs.h:377
f32 kartGravity
Definition common_structs.h:334
f32 size
Definition common_structs.h:356
f32 currentSpeed
Definition common_structs.h:301
s16 unk_238
Definition common_structs.h:363
s16 nearestPathPointId
Definition common_structs.h:354
f32 unk_DAC
Definition common_structs.h:382
f32 speed
Definition common_structs.h:299
char unk_032[0x2]
Definition common_structs.h:277
u16 unk_046
Definition common_structs.h:282
s32 nStartingRank
Definition common_structs.h:399
s32 nCharacter
Definition common_structs.h:398
f32 unk_0A4
Definition common_structs.h:303
Vec3f oldPos
Definition common_structs.h:275
u16 surfaceType
Definition common_structs.h:331
Mat3 orientationMatrix
Definition common_structs.h:341
f32 previousSpeed
Definition common_structs.h:359
u16 unk_002
Definition common_structs.h:266
s16 unk_228
Definition common_structs.h:357
u16 waterInteractionFlags
Definition common_structs.h:323
s16 unk_044
Definition common_structs.h:281
s32 unk_07C
Definition common_structs.h:293
u16 characterId
Definition common_structs.h:369
f32 kartPropulsionStrength
Definition common_structs.h:297
s16 unk_0CA
Definition common_structs.h:319
Vec4s unk_0CC
Definition common_structs.h:320
u16 unk_0B4
Definition common_structs.h:310
UnkPlayerStruct258 particlePool3[10]
Definition common_structs.h:374
s16 unk_0FA
Definition common_structs.h:332
s16 unk_078
Definition common_structs.h:291
u32 effects
Definition common_structs.h:313
f32 unk_23C
Definition common_structs.h:365
f32 unk_05C
Definition common_structs.h:286
f32 unk_DB0
Definition common_structs.h:383
Mat3 unk_150
Definition common_structs.h:340
f32 unk_0E8
Definition common_structs.h:327
s16 alpha
Definition common_structs.h:317
s16 driftDuration
Definition common_structs.h:346
f32 unk_090
Definition common_structs.h:298
Vec3s rotation
Definition common_structs.h:276
Vec4s unk_050
Definition common_structs.h:284
s16 slopeAccel
Definition common_structs.h:316
UnkPlayerStruct258 particlePool2[10]
Definition common_structs.h:373
f32 boostPower
Definition common_structs.h:294
s16 unk_222
Definition common_structs.h:355
u32 nHasAuthority
Definition common_structs.h:400
s32 tyreSpeed
Definition common_structs.h:366
s16 unk_040
Definition common_structs.h:279
s16 unk_D98
Definition common_structs.h:375
f32 unk_20C
Definition common_structs.h:349
f32 unk_230
Definition common_structs.h:360
Collision collision
Definition common_structs.h:339
f32 boundingBoxSize
Definition common_structs.h:289
s16 hopFrameCounter
Definition common_structs.h:292
f32 unk_0A0
Definition common_structs.h:302
u16 type
Definition common_structs.h:265
f32 unk_DA8
Definition common_structs.h:381
u16 animFrameSelector[4]
Definition common_structs.h:367
s16 unk_0AE
Definition common_structs.h:307
f32 kartHopJerk
Definition common_structs.h:329
f32 topSpeed
Definition common_structs.h:351
UnkPlayerStruct258 particlePool1[10]
Definition common_structs.h:372
f32 unk_0E4
Definition common_structs.h:326
s16 unk_0A8
Definition common_structs.h:304
s16 unk_234
Definition common_structs.h:361
Vec3f velocity
Definition common_structs.h:278
f32 kartHopVelocity
Definition common_structs.h:328
Vec4s unk_0D4
Definition common_structs.h:321
s16 unk_DA4
Definition common_structs.h:379
s16 unk_23A
Definition common_structs.h:364
u16 unk_0B6
Definition common_structs.h:311
Vec3f unk_064
Definition common_structs.h:288
f32 hopVerticalOffset
Definition common_structs.h:336
Vec4s unk_048
Definition common_structs.h:283
s16 unk_0C2
Definition common_structs.h:315
u16 unk_256
Definition common_structs.h:370
f32 unk_084
Definition common_structs.h:295
struct UnkPlayerInner unk_DB4
Definition common_structs.h:384
char unk_10E[0x2]
Definition common_structs.h:338
f32 unk_1FC
Definition common_structs.h:344
s16 unk_DA6
Definition common_structs.h:380
s16 boostTimer
Definition common_structs.h:322
s16 currentItemCopy
Definition common_structs.h:272
s16 unk_0E2
Definition common_structs.h:325
u16 unk_006
Definition common_structs.h:268
char unk_00A[0x2]
Definition common_structs.h:270
s16 unk_0B0
Definition common_structs.h:308
s16 unk_0C8
Definition common_structs.h:318
s16 unk_0B2
Definition common_structs.h:309
s16 unk_236
Definition common_structs.h:362
f32 unk_088
Definition common_structs.h:296
s16 unk_206
Definition common_structs.h:347
f32 unk_060
Definition common_structs.h:287
s32 soundEffects
Definition common_structs.h:271
UnkPlayerStruct258 particlePool0[10]
Definition common_structs.h:371
u16 animGroupSelector[4]
Definition common_structs.h:368
s16 driftState
Definition common_structs.h:358
f32 unk_218
Definition common_structs.h:352
f32 unk_208
Definition common_structs.h:348
f32 unk_058
Definition common_structs.h:285
s16 unk_0E0
Definition common_structs.h:324
s16 unk_012
Definition common_structs.h:273
f32 unk_0B8
Definition common_structs.h:312
u32 unk_200
Definition common_structs.h:345
f32 unk_1F8
Definition common_structs.h:343
s16 currentRank
Definition common_structs.h:267
s16 unk_0AC
Definition common_structs.h:306
f32 unk_074
Definition common_structs.h:290
s16 unk_10C
Definition common_structs.h:337
f32 unk_21C
Definition common_structs.h:353
s16 unk_0AA
Definition common_structs.h:305
Vec3f pos
Definition common_structs.h:274
Definition common_structs.h:427
uint8_t g
Definition common_structs.h:428
uint8_t b
Definition common_structs.h:428
uint8_t r
Definition common_structs.h:428
Definition common_structs.h:431
u16 alpha
Definition common_structs.h:435
u16 red
Definition common_structs.h:432
u16 blue
Definition common_structs.h:434
u16 green
Definition common_structs.h:433
Definition common_structs.h:47
enum SpTaskState state
Definition common_structs.h:51
OSMesg msg
Definition common_structs.h:50
OSMesgQueue * msgqueue
Definition common_structs.h:49
OSTask task
Definition common_structs.h:48
Definition common_structs.h:130
s16 unkA
Definition common_structs.h:136
s16 unk0
Definition common_structs.h:131
s16 unk6
Definition common_structs.h:134
s16 unk2
Definition common_structs.h:132
s16 unk8
Definition common_structs.h:135
s16 unk4
Definition common_structs.h:133
Definition common_structs.h:139
s8 stickX
Definition common_structs.h:143
s8 frameDuration
Definition common_structs.h:141
u8 button
Definition common_structs.h:140
s8 stickY
Definition common_structs.h:142
Definition common_structs.h:249
s16 unk1C
Definition common_structs.h:259
f32 unkC
Definition common_structs.h:254
f32 unk10
Definition common_structs.h:255
s16 unk0
Definition common_structs.h:250
s16 unk2
Definition common_structs.h:251
f32 unk4
Definition common_structs.h:252
f32 unk14
Definition common_structs.h:256
s16 unk20
Definition common_structs.h:261
f32 unk8
Definition common_structs.h:253
s16 unk1E
Definition common_structs.h:260
s16 unk1A
Definition common_structs.h:258
s16 unk18
Definition common_structs.h:257
Definition common_structs.h:162
s16 unk_040
Definition common_structs.h:185
f32 surfaceType
Definition common_structs.h:167
s16 unk_036
Definition common_structs.h:180
s16 unk_032
Definition common_structs.h:178
s16 unk_02E
Definition common_structs.h:176
u16 unk_010
Definition common_structs.h:165
Vec3f pos
Definition common_structs.h:163
s16 unk_020
Definition common_structs.h:171
f32 scale
Definition common_structs.h:164
s16 unk_030
Definition common_structs.h:177
s16 unk_034
Definition common_structs.h:179
s16 blue
Definition common_structs.h:183
s16 green
Definition common_structs.h:182
s16 unk_02C
Definition common_structs.h:175
s16 unk_01E
Definition common_structs.h:170
s16 alpha
Definition common_structs.h:184
s16 unk_042
Definition common_structs.h:186
s16 red
Definition common_structs.h:181
f32 unk_024
Definition common_structs.h:173
f32 unk_018
Definition common_structs.h:168
s16 unk_044
Definition common_structs.h:187
s16 unk_046
Definition common_structs.h:188
f32 unk_028
Definition common_structs.h:174
u16 type
Definition common_structs.h:166
s16 unk_022
Definition common_structs.h:172
s16 isAlive
Definition common_structs.h:169
Definition common_structs.h:96
u32 unk14
Definition common_structs.h:102
u32 unk20
Definition common_structs.h:105
u32 unk1C
Definition common_structs.h:104
u32 unk10
Definition common_structs.h:101
u16 unk26
Definition common_structs.h:107
u32 unk8
Definition common_structs.h:99
u32 unk4
Definition common_structs.h:98
u32 unk0
Definition common_structs.h:97
u32 unk18
Definition common_structs.h:103
u32 unkC
Definition common_structs.h:100
u16 unk24
Definition common_structs.h:106
Definition common_structs.h:118
s32 * D_800ED600
Definition common_structs.h:119
s32 * D_800ED638
Definition common_structs.h:126
s32 * D_800ED628
Definition common_structs.h:124
s32 * D_800ED618
Definition common_structs.h:122
s32 * D_800ED620
Definition common_structs.h:123
s32 * D_800ED610
Definition common_structs.h:121
s32 * D_800ED608
Definition common_structs.h:120
s32 * D_800ED630
Definition common_structs.h:125
Definition common_structs.h:80
f32 unk28
Definition common_structs.h:89
f32 unk34
Definition common_structs.h:92
f32 unk14
Definition common_structs.h:84
s32 unk18
Definition common_structs.h:85
f32 unk2C
Definition common_structs.h:90
s32 unk38
Definition common_structs.h:93
f32 unk24
Definition common_structs.h:88
f32 unk30
Definition common_structs.h:91
f32 unk20
Definition common_structs.h:87
f32 unk10
Definition common_structs.h:83
Vec3f unk0
Definition common_structs.h:81
s32 unk1C
Definition common_structs.h:86
f32 unkC
Definition common_structs.h:82
Definition common_structs.h:110
f32 unk8
Definition common_structs.h:113
f32 unk0
Definition common_structs.h:111
f32 unk4
Definition common_structs.h:112
f32 unkC
Definition common_structs.h:114
Definition common_structs.h:54
OSMesg msg
Definition common_structs.h:56
OSMesgQueue * queue
Definition common_structs.h:55
Definition common_structs.h:23
f32 x
Definition common_structs.h:24
f32 z
Definition common_structs.h:24
f32 y
Definition common_structs.h:24
Definition common_structs.h:440
u32 lap2CompletionTime
Definition common_structs.h:451
s8 raceCompleteBool
Definition common_structs.h:512
s16 lapAfterImage1X
Definition common_structs.h:498
s32 posXInt
Definition common_structs.h:466
u32 lapDurations[3]
Definition common_structs.h:463
u8 unk_7A
Definition common_structs.h:530
s16 lap3CompletionTimeX
Definition common_structs.h:489
u32 lap1Duration
Definition common_structs.h:459
u32 lapCompletionTimes[3]
Definition common_structs.h:454
s16 slideRankX
Definition common_structs.h:504
s32 posZInt
Definition common_structs.h:468
s16 slideItemBoxX
Definition common_structs.h:478
s8 alsoLapCount
Definition common_structs.h:514
u8 unk_7D
Definition common_structs.h:533
s8 unk_74
Definition common_structs.h:521
s16 rankX
Definition common_structs.h:501
s8 unk_75
Definition common_structs.h:522
s16 timerX
Definition common_structs.h:483
u32 lap3Duration
Definition common_structs.h:461
s8 blinkState
Definition common_structs.h:520
s16 lap1CompletionTimeX
Definition common_structs.h:487
u8 unk_7B
Definition common_structs.h:531
s16 lapCompletionTimeXs[3]
Definition common_structs.h:491
s16 rankY
Definition common_structs.h:502
u8 unk_81
Definition common_structs.h:537
s32 unk_38
Definition common_structs.h:469
s16 slideRankY
Definition common_structs.h:506
s16 speedometerX
Definition common_structs.h:474
u32 lap1CompletionTime
Definition common_structs.h:450
f32 unknownScaling
Definition common_structs.h:441
u32 lap3CompletionTime
Definition common_structs.h:452
s16 lapAfterImage2X
Definition common_structs.h:499
s16 lapX
Definition common_structs.h:496
s8 unk_77
Definition common_structs.h:524
u8 unk_7C
Definition common_structs.h:532
s16 totalTimeX
Definition common_structs.h:493
s16 lapY
Definition common_structs.h:500
s8 unk_82
Definition common_structs.h:538
u8 unk_7F
Definition common_structs.h:535
s16 slideItemBoxY
Definition common_structs.h:479
s16 timerY
Definition common_structs.h:494
s8 lapCount
Definition common_structs.h:513
u8 unk_80
Definition common_structs.h:536
u8 unk_7E
Definition common_structs.h:534
s16 unk_6C
Definition common_structs.h:510
s16 itemBoxY
Definition common_structs.h:477
s16 unk_6E
Definition common_structs.h:511
u8 itemOverride
Definition common_structs.h:523
s16 unk_4A
Definition common_structs.h:481
s32 posYInt
Definition common_structs.h:467
f32 rankScaling
Definition common_structs.h:442
u8 unk_78
Definition common_structs.h:528
s8 unk_83
Definition common_structs.h:539
s16 speedometerY
Definition common_structs.h:475
u32 someTimer
Definition common_structs.h:444
s16 blinkTimer
Definition common_structs.h:473
u8 unk_79
Definition common_structs.h:529
s16 stagingPosition
Definition common_structs.h:507
u32 timeLastTouchedFinishLine
Definition common_structs.h:446
s16 itemBoxX
Definition common_structs.h:476
s16 unk_4C
Definition common_structs.h:482
u32 someTimer1
Definition common_structs.h:445
u32 lap2Duration
Definition common_structs.h:460
s16 lap2CompletionTimeX
Definition common_structs.h:488
Definition common_structs.h:416
u8 ghostDataSaved
Definition common_structs.h:419
u8 unk_07[0x3C]
Definition common_structs.h:422
u8 checksum
Definition common_structs.h:424
s32 unk_00
Definition common_structs.h:418
u8 pad_43[0x7F - 0x43]
Definition common_structs.h:423
u8 characterId
Definition common_structs.h:421
s8 courseIndex
Definition common_structs.h:420