Mario Kart 64
Loading...
Searching...
No Matches
common_structs.h
Go to the documentation of this file.
1#ifndef _COMMON_STRUCTS_H_
2#define _COMMON_STRUCTS_H_
3
4#include "ultra64.h"
5
6typedef f32 Vec3f[3];
7typedef f32 Vec4f[4];
8
9typedef s32 Vec3iu[3];
10
11typedef s16 Vec3s[3];
12typedef u16 Vec3su[3];
13typedef s16 Vec4s[4];
14
15typedef f32 Mat3[3][3];
16typedef f32 Mat4[4][4];
17
18// might not be real, used by func_8002C954
19typedef struct
20{
21 f32 x, y, z;
22} Vec3fs;
23
24// This was added as a silly idea:
25// In the data to use "A, B, Z, R" instead of hex numbers.
26typedef enum {
27 A = 0x80,
28 B = 0x40,
29 Z = 0x20,
30 R = 0x10
32
33
34/*** types.h ***/
35
36typedef struct {
37 /* 0x0 */ s16 waypointStart;
38 /* 0x2 */ s16 waypointEnd;
39 /* 0x4 */ s32 type;
40} KartAIBehaviour; // size = 0x8
41
49
50struct SPTask
51{
52 /*0x00*/ OSTask task;
53 /*0x40*/ OSMesgQueue *msgqueue;
54 /*0x44*/ OSMesg msg;
55 /*0x48*/ enum SpTaskState state;
56}; // size = 0x4C, align = 0x8
57
59{
60 OSMesgQueue *queue;
61 OSMesg msg;
62};
63
70
71struct Controller {
74 u16 button; // HeldButton
75 u16 buttonPressed; // OnTriggered
76 u16 buttonDepressed; // OffTriggered
78 u16 stickPressed; // OffTriggered
79 u16 stickDepressed; // OnTriggered
80};
81
82// Camera path struct? Or something like that. For GP race won scene?
98
112
119// end math util structs
120
125/*** Types.h end ***/
126
127
128
129
136// 80160ADC Banana's remaining
137
138typedef struct {
139 /* 0x00 */ u16 unk30;
140 /* 0x02 */ u16 unk32;
141 /* 0x04 */ u16 unk34;
142 /* 0x06 */ u16 unk36;
143 /* 0x08 */ u16 unk38;
144 // This may be an index to the tilemap?
145 /* 0x0A */ u16 unk3A;
146 /* 0x0C */ Vec3f unk3C;
147 /* 0x18 */ Vec3f unk48;
148 /* 0x24 */ Vec3f unk54;
150 /* 0x3C */ f32 unk6C;
151} Collision;
152
153typedef struct {
154 /* 0x00 */ Vec3f unk_000;
155 /* 0x0C */ f32 unk_00C;
156 /* 0x10 */ u16 unk_010;
157 /* 0x12 */ u16 unk_012;
158 /* 0x14 */ f32 unk_014;
159 /* 0x18 */ f32 unk_018;
160 /* 0x1C */ s16 unk_01C;
161 /* 0x1E */ s16 unk_01E;
162 /* 0x20 */ s16 unk_020;
163 /* 0x22 */ s16 unk_022;
164 /* 0x24 */ f32 unk_024;
165 /* 0x28 */ f32 unk_028;
166 /* 0x2C */ s16 unk_02C;
167 /* 0x2E */ s16 unk_02E;
168 /* 0x30 */ s16 unk_030;
169 /* 0x32 */ s16 unk_032;
170 /* 0x34 */ s16 unk_034;
171 /* 0x36 */ s16 unk_036;
172 /* 0x38 */ s16 unk_038;
173 /* 0x3A */ s16 unk_03A;
174 /* 0x3C */ s16 unk_03C;
175 /* 0x3E */ s16 unk_03E;
176 /* 0x40 */ s16 unk_040;
177 /* 0x42 */ s16 unk_042;
178 /* 0x44 */ s16 unk_044;
179 /* 0x46 */ s16 unk_046;
180} UnkPlayerStruct258; // size = 0x48
181
182// This struct is almost identical to the GBI Vtx_t type,
183// except that its missing the "flag" member.
184typedef struct {
185 s16 ob[3]; /* x, y, z */
186 s16 tc[2]; /* texture coord */
187 s8 ca[4]; /* color & alpha */
188
189} CourseVtx;
190
191/*
192This struct has been copied (with only minor modifications) from
193https://github.com/micro500/mariokart64/wiki/Surface-Map
194on January 23rd, 2022
195The original author is assumed to be RenaKunisaki
196*/
197typedef struct {
198 /* 0x00 */ u16 flags;
199 // Top bytes is a collections of flags, bottom byte is of unknown purpose
200 //bit 7: 1 = only tangible if landed on, not if driven onto?
201 // very weird. game crashes sometimes when playing with this.
202 //bit 6: 1 = Lakitu can drop you here (XXX verify)
203 //bit 4: 1 = out of bounds
204 //bit 3: 1 = player tumbles upon contact (may fall right through)
205 /* 0x02 */ u16 surfaceType;
206 /* 0x04 */ s16 vtx31;
208 s16 vtx33; //X, Y, Z of poly's third vertex
211 /* 0x0A */ s16 vtx23; //X, Y, Z of poly's second vertex
212 /* 0x10 */ Vtx *vtxPoly1; //pointer to the 3 vertices of this poly
215 //unsure why this exists along with a copy of two of the vertices.
216 //both are involved in hit detection.
217 /* 0x1C */ f32 height;
218 //normally 0; read at 0x802AB1A4. this value is added to the height Lakitu
219 //drops you at. changing it seems to make the surface intangible.
220 /* 0x20 */ f32 gravity;
221 //normally 1. The height Lakitu drops you off at is divided by this value
222 //(before adding the value at 0x1C), although if set to zero, he just tries
223 //to drop you at about the height of the finish line banner. Changing it
224 //has various unusual effects, making the polygon intangible or
225 //significantly reducing the gravity above it, probably depending on its Y
226 //position.
227 /* 0x24 */ f32 rotation; //normally about -0.001. no idea what this actually is.
228 /* 0x28 */ f32 height2; //changes Y position of all vertices (but not graphics or
229 //Lakitu drop position). Normally set to (track_height * -1) + about 6.
230} mk64_surface_map_ram; // size = 0x2C
231
232typedef struct {
233 /* 0x00 */ Vec3f cornerPos;
234 // Type of surface the corner is above
235 /* 0x0C */ u8 surfaceType;
236 // Close to being a copy of the top byte of the surface_map "flag" member
237 /* 0x0D */ u8 surfaceFlags;
238 // Don't know if "tile" is right the right term
239 // gSurfaceMap is a pointer to an array of "tile" structs. This is an index to that array
241 // cornerPos places the corner "in the air" as it were, this member indicates the Y position of the corner's "on the ground" sibling
242 // On flat ground this value should be cornerY - gKartBoundingBoxTable[characterId]
243 /* 0x10 */ f32 cornerGroundY;
244 // Something lighting related. 1 when in a shaded region, 2 when in a tree's shadow
245 // 3 when getting crushed by a whomp, but curiously only the front left tyre will ever have this value
246 /* 0x14 */ s32 unk_14;
247} KartBoundingBoxCorner; // size = 0x18
248
249#define FRONT_LEFT_TYRE 0
250#define FRONT_RIGHT_TYRE 1
251#define BACK_LEFT_TYRE 2
252#define BACK_RIGHT_TYRE 3
253
255 /* 0xDB4 */ s16 unk0;
256 /* 0xDB6 */ s16 unk2;
257 /* 0xDB8 */ f32 unk4;
258 /* 0xDBC */ f32 unk8;
259 /* 0xDC0 */ f32 unkC;
260 /* 0xDC4 */ f32 unk10;
261 /* 0xDC8 */ f32 unk14;
262 /* 0xDCC */ s16 unk18;
263 /* 0xDCE */ s16 unk1A;
264 /* 0xDD0 */ s16 unk1C;
265 /* 0xDD2 */ s16 unk1E;
266 /* 0xDD4 */ s16 unk20;
267};
268
269typedef struct {
270 /* 0x0000 */ u16 type; // playerType?
271 /* 0x0002 */ u16 unk_002;
272 /* 0x0004 */ s16 currentRank;
273 /* 0x0006 */ u16 unk_006;
274 /* 0x0008 */ s16 lapCount;
275 /* 0x000A */ char unk_00A[0x2];
276 /* 0x000C */ s32 soundEffects; // Bitflag.
277 /* 0x0010 */ s16 currentItemCopy; // Has no effect on what item the players has, It is just a synced copy
278 /* 0x0012 */ s16 unk_012;
279 /* 0x0014 */ Vec3f pos;
280 /* 0x0020 */ f32 copy_rotation_x;
281 /* 0x0024 */ f32 copy_rotation_y;
282 /* 0x0028 */ f32 copy_rotation_z;
283 /* 0x002C */ Vec3s rotation;
284 /* 0x0032 */ char unk_032[0x2];
285 /* 0x0034 */ Vec3f velocity;
286 /* 0x0040 */ s16 unk_040;
287 /* 0x0042 */ s16 unk_042;
288 /* 0x0044 */ s16 unk_044;
289 /* 0x0046 */ u16 unk_046;
290 /* 0x0048 */ Vec4s unk_048;
291 /* 0x0050 */ Vec4s unk_050;
292 /* 0x0058 */ f32 unk_058;
293 /* 0x005C */ f32 unk_05C;
294 /* 0x0060 */ f32 unk_060;
295 /* 0x0064 */ Vec3f unk_064;
296 /* 0x0070 */ f32 boundingBoxSize;
297 /* 0x0074 */ f32 unk_074;
298 /* 0x0078 */ s16 unk_078;
299 /* 0x007A */ s16 unk_07A;
300 /* 0x007C */ s32 unk_07C;
301 /* 0x0080 */ f32 boostPower;
302 /* 0x0084 */ f32 unk_084;
303 /* 0x0088 */ f32 unk_088;
304 /* 0x008C */ f32 unk_08C;
305 /* 0x0090 */ f32 unk_090;
306 /* 0x0094 */ f32 unk_094;
307 /* 0x0098 */ f32 unk_098;
308 /* 0x009C */ f32 currentSpeed;
309 /* 0x00A0 */ f32 unk_0A0;
310 /* 0x00A4 */ f32 unk_0A4;
311 /* 0x00A8 */ s16 unk_0A8;
312 /* 0x00AA */ s16 unk_0AA;
313 /* 0x00AC */ s16 unk_0AC;
314 /* 0x00AE */ s16 unk_0AE;
315 /* 0x00B0 */ s16 unk_0B0;
316 /* 0x00B2 */ s16 unk_0B2;
317 /* 0x00B4 */ u16 unk_0B4;
318 /* 0x00B6 */ u16 unk_0B6;
319 /* 0x00B8 */ f32 unk_0B8;
320 /* 0x00BC */ u32 effects;
321 /* 0x00C0 */ s16 unk_0C0;
322 /* 0x00C2 */ s16 unk_0C2;
323 /* 0x00C4 */ s16 slopeAccel;
324 /* 0x00C6 */ s16 unk_0C6;
325 /* 0x00C8 */ s16 unk_0C8;
326 /* 0x00CA */ s16 unk_0CA;
327 /* 0x00CC */ Vec4s unk_0CC;
328 /* 0x00D4 */ Vec4s unk_0D4;
329 /* 0x00DC */ s16 boostTimer;
330 /* 0x00DE */ u16 unk_0DE;
331 /* 0x00E0 */ s16 unk_0E0;
332 /* 0x00E2 */ s16 unk_0E2;
333 /* 0x00E4 */ f32 unk_0E4;
334 /* 0x00E8 */ f32 unk_0E8;
335 /* 0x00EC */ f32 kartHopVelocity;
336 /* 0x00F0 */ f32 kartHopJerk;
338 /* 0x00F8 */ u16 surfaceType;
339 /* 0x00FA */ s16 unk_0FA;
340 /* 0x00FC */ f32 kartFriction;
341 /* 0x0100 */ f32 kartGravity;
342 /* 0x0104 */ f32 unk_104;
343 /* 0x0108 */ f32 unk_108;
344 /* 0x010C */ s16 unk_10C;
345 /* 0x010E */ char unk_10E[0x2];
346 /* 0x0110 */ Collision unk_110;
347 /* 0x0150 */ Mat3 unk_150;
349 /* 0x0198 */ KartBoundingBoxCorner boundingBoxCorners[4];
350 /* 0x01F8 */ f32 unk_1F8;
351 /* 0x01FC */ f32 unk_1FC;
352 /* 0x0200 */ u32 unk_200; // May be s32. but less casting required if u32
353 /* 0x0204 */ s16 unk_204;
354 /* 0x0206 */ s16 unk_206;
355 /* 0x0208 */ f32 unk_208;
356 /* 0x020C */ f32 unk_20C;
357 /* 0x0210 */ f32 unk_210;
358 /* 0x0214 */ f32 topSpeed;
359 /* 0x0218 */ f32 unk_218;
360 /* 0x021C */ f32 unk_21C;
361 /* 0x0220 */ s16 nearestWaypointId; // ??
362 /* 0x0222 */ s16 unk_222;
363 /* 0x0224 */ f32 size;
364 /* 0x0228 */ s16 unk_228;
365 /* 0x022A */ s16 unk_22A;
366 /* 0x022C */ f32 unk_22C;
367 /* 0x0230 */ f32 unk_230;
368 /* 0x0234 */ s16 unk_234;
369 /* 0x0236 */ s16 unk_236;
370 /* 0x0238 */ s16 unk_238;
371 /* 0x023A */ s16 unk_23A;
372 /* 0x023C */ f32 unk_23C;
373 /* 0x0240 */ s32 unk_240;
374 /* 0x0244 */ u16 animFrameSelector[4]; // [0] Active texture group
375 /* 0x024C */ u16 animGroupSelector[4];
376 /* 0x0254 */ u16 characterId;
377 /* 0x0256 */ u16 unk_256;
378 /* 0x0258 */ UnkPlayerStruct258 unk_258[40];
379 /* 0x0D98 */ s16 unk_D98;
380 /* 0x0D9A */ s16 unk_D9A;
381 /* 0x0D9C */ f32 unk_D9C;
382 /* 0x0DA0 */ f32 unk_DA0;
383 /* 0x0DA4 */ s16 unk_DA4;
384 /* 0x0DA6 */ s16 unk_DA6;
385 /* 0x0DA8 */ f32 unk_DA8;
386 /* 0x0DAC */ f32 unk_DAC;
387 /* 0x0DB0 */ f32 unk_DB0;
388 /* 0x0DB4 */ struct UnkPlayerInner unk_DB4;
389 /* 0x0DB6 */ // s16 unk_DB6;
390 /* 0x0DB8 */ // f32 unk_DB8;
391 /* 0x0DBC */ //f32 unk_DBC;
392 /* 0x0DC0 */ // f32 unk_DC0;
393 /* 0x0DC4 */ // f32 unk_DC4;
394 /* 0x0DC8 */ // f32 unk_DC8;
395 /* 0x0DCC */ // s16 unk_DCC;
396 /* 0x0DCE */ // s16 unk_DCE;
397 /* 0x0DD0 */ // s16 unk_DD0;
398 /* 0x0DD2 */ // s16 unk_DD2;
399 /* 0x0DD4 */ // s16 unk_DD4;
400} Player; // size = 0xDD8
401
402typedef struct
403{
404 // Something related to time trial ghost data?
405 /* 0x00 */ s32 unk_00;
406 /* 0x04 */ u8 ghostDataSaved;
407 /* 0x05 */ s8 courseIndex;
408 /* 0x06 */ u8 characterId;
409 /* 0x07 */ u8 unk_07[0x3C];
410 /* 0x43 */ u8 pad_43[0x7F-0x43];
411 /* 0x7F */ u8 checksum;
412} struct_8018EE10_entry; // size = 0x80
413
414typedef struct {
415 /* 0x00 */ u16 red;
416 /* 0x02 */ u16 green;
417 /* 0x04 */ u16 blue;
418 /* 0x06 */ u16 alpha;
419} RGBA16; // size = 0x08
420
421// Something related to human players
422// Also might be used for the camera during the post race screens
423typedef struct {
424 /* 0x00 */ f32 unknownScaling; // Looks to be some type of scaling, unknown use
425 /* 0x04 */ f32 rankScaling; // Scaling done on the rank text in the bottom left corner of the screen
426 // All time measurements are in centiseconds
427 /* 0x08 */ u32 someTimer; // The someTimers seem to always have the same value, the total time since race start
428 /* 0x0C */ u32 someTimer1;
429 /* 0x10 */ u32 timeLastTouchedFinishLine; // Sum of time of all completed laps
430 // Times at which each lap was completed
431 union {
432 struct {
436 };
437 u32 lapCompletionTimes[3];
438 };
439 // Time each lap took to complete
440 union {
441 struct {
442 /* 0x20 */ u32 lap1Duration;
443 /* 0x24 */ u32 lap2Duration;
444 /* 0x28 */ u32 lap3Duration;
445 };
446 u32 lapDurations[3];
447 };
448 // Integer parts of the player's X/Y/X coordinates
449 /* 0x2C */ s32 posXInt;
450 /* 0x30 */ s32 posYInt;
451 /* 0x34 */ s32 posZInt;
452 /* 0x38 */ s32 unk_38;
453 // Timer for how long the on screen should blink on lap completion
454 // Blinking occurs as long as this is a non-zero value.
455 // Other on screen effects may override the blinking
456 /* 0x3C */ s16 blinkTimer;
457 /* 0x3E */ s16 speedometerX;
458 /* 0x40 */ s16 speedometerY;
459 /* 0x42 */ s16 itemBoxX;
460 /* 0x44 */ s16 itemBoxY;
461 /* 0x46 */ s16 slideItemBoxX;
462 /* 0x48 */ s16 slideItemBoxY;
463 // These 2 s16's have values, but I have yet to identify any places that read them
464 /* 0x4A */ s16 unk_4A;
465 /* 0x4C */ s16 unk_4C;
466 /* 0x4E */ s16 timerX; // X coordinate of the on screen timer
467 // These 4 X coordinates are "slide" values
468 union {
469 struct {
470 /* 0x50 */ s16 lap1CompletionTimeX; // Pulls double-duty as timerAfterImage1X
471 /* 0x52 */ s16 lap2CompletionTimeX; // Pulls double-duty as timerAfterImage2X
473 };
474 /* 0x50 */ s16 lapCompletionTimeXs[3];
475 };
476 /* 0x56 */ s16 totalTimeX;
477 /* 0x58 */ s16 timerY; // Y coordinate of the on screen timer (used as Y coordinate for lap completion times in post-race screen)
478 /* 0x5A */ s16 lapX; // X coordinate of the on screen lap counter
479 // 0x5C and 0x5E seem to be relative to lapX
482 /* 0x60 */ s16 lapY; // Y coordinate of the on screen lap counter
483 /* 0x62 */ s16 rankX; // X coordinate of the on screen rank indicator
484 /* 0x64 */ s16 rankY; // Y coordinate of the on screen rank indicator
485 /* 0x66 */ s16 slideRankX; // Adds with the other rankX, used during post race screen to make the rank "slide" into place
486 /* 0x68 */ s16 slideRankY; // Adds with the other rankY, used during post race screen to make the rank "slide" into place
487 /* 0x6A */ s16 stagingPosition; // Position to take during race staging
488 // These s16's occasionally have values, but I have yet to identify any places that read them
489 // They appear to have values when in 3/4 player split screen mode, otherwise they're 0
490 /* 0x6C */ s16 unk_6C;
491 /* 0x6E */ s16 unk_6E;
492 /* 0x70 */ s8 raceCompleteBool; // Indicates if race is over?
493 /* 0x71 */ s8 lapCount; // This increases to 3 when a race is over, while alsoLapCount stays at 2
494 /* 0x72 */ s8 alsoLapCount;
495 // Related to the timer blinking on lap completion
496 // If blinkTimer is counting down:
497 // 0: Show timer
498 // 1: Hide timer
499 // 2: ? Seems to be a transition state, never lasts a long enough for blinkTimer to tick
500 /* 0x73 */ s8 blinkState;
501 /* 0x74 */ s8 unk_74;
502 /* 0x75 */ s8 unk_75;
503 /* 0x76 */ u8 itemOverride; // Something related to item generation. If non-zero, it determines the item you get
504 /* 0x77 */ s8 unk_77;
505 // 0x78 to 0x7F appear to be some type of "state" trackers for the lap and timer text during a race start
506 // When a race starts those texts (and their afterimages) slide in and "bounce" a bit. These states control the bouncing (somehow)
507 /* 0x78 */ u8 unk_78;
508 /* 0x79 */ u8 unk_79;
509 /* 0x7A */ u8 unk_7A;
510 /* 0x7B */ u8 unk_7B;
511 /* 0x7C */ u8 unk_7C;
512 /* 0x7D */ u8 unk_7D;
513 /* 0x7E */ u8 unk_7E;
514 /* 0x7F */ u8 unk_7F;
515 /* 0x80 */ u8 unk_80;
516 /* 0x81 */ u8 unk_81;
517 /* 0x82 */ s8 unk_82;
518 /* 0x83 */ s8 unk_83;
519} hud_player; // size = 0x84
520
521#define HUD_PLAYERS_SIZE 4
522
523#endif
SpTaskState
Definition common_structs.h:42
@ SPTASK_STATE_INTERRUPTED
Definition common_structs.h:45
@ SPTASK_STATE_FINISHED
Definition common_structs.h:46
@ SPTASK_STATE_RUNNING
Definition common_structs.h:44
@ SPTASK_STATE_FINISHED_DP
Definition common_structs.h:47
@ SPTASK_STATE_NOT_STARTED
Definition common_structs.h:43
s16 Vec4s[4]
Definition common_structs.h:13
f32 Vec3f[3]
Definition common_structs.h:6
GhostController
Definition common_structs.h:26
@ R
Definition common_structs.h:30
@ B
Definition common_structs.h:28
@ A
Definition common_structs.h:27
@ Z
Definition common_structs.h:29
u16 Vec3su[3]
Definition common_structs.h:12
s16 Vec3s[3]
Definition common_structs.h:11
f32 Vec4f[4]
Definition common_structs.h:7
f32 Mat4[4][4]
Definition common_structs.h:16
s32 Vec3iu[3]
Definition common_structs.h:9
f32 Mat3[3][3]
Definition common_structs.h:15
Definition common_structs.h:138
u16 unk32
Definition common_structs.h:140
Vec3f unk3C
Definition common_structs.h:146
u16 unk30
Definition common_structs.h:139
u16 unk3A
Definition common_structs.h:145
Vec3f orientationVector
Definition common_structs.h:149
u16 unk38
Definition common_structs.h:143
Vec3f unk54
Definition common_structs.h:148
u16 unk36
Definition common_structs.h:142
f32 unk6C
Definition common_structs.h:150
u16 unk34
Definition common_structs.h:141
Vec3f unk48
Definition common_structs.h:147
Definition common_structs.h:71
s16 rawStickY
Definition common_structs.h:73
u16 stickDepressed
Definition common_structs.h:79
u16 stickDirection
Definition common_structs.h:77
s16 rawStickX
Definition common_structs.h:72
u16 buttonPressed
Definition common_structs.h:75
u16 button
Definition common_structs.h:74
u16 stickPressed
Definition common_structs.h:78
u16 buttonDepressed
Definition common_structs.h:76
Definition common_structs.h:184
Definition common_structs.h:64
s32 unk8
Definition common_structs.h:67
s16 unk0
Definition common_structs.h:65
s32 unk4
Definition common_structs.h:66
s32 unkC
Definition common_structs.h:68
Definition common_structs.h:36
s16 waypointStart
Definition common_structs.h:37
s16 waypointEnd
Definition common_structs.h:38
s32 type
Definition common_structs.h:39
Definition common_structs.h:232
u8 surfaceType
Definition common_structs.h:235
f32 cornerGroundY
Definition common_structs.h:243
Vec3f cornerPos
Definition common_structs.h:233
u16 surfaceMapIndex
Definition common_structs.h:240
u8 surfaceFlags
Definition common_structs.h:237
s32 unk_14
Definition common_structs.h:246
Definition common_structs.h:269
s16 unk_07A
Definition common_structs.h:299
f32 unk_104
Definition common_structs.h:342
f32 unk_DA0
Definition common_structs.h:382
f32 copy_rotation_y
Definition common_structs.h:281
s16 unk_042
Definition common_structs.h:287
s16 unk_D9A
Definition common_structs.h:380
s16 lapCount
Definition common_structs.h:274
f32 kartFriction
Definition common_structs.h:340
s16 unk_0C0
Definition common_structs.h:321
Collision unk_110
Definition common_structs.h:346
u16 unk_0DE
Definition common_structs.h:330
f32 kartHopAcceleration
Definition common_structs.h:337
f32 unk_210
Definition common_structs.h:357
f32 unk_098
Definition common_structs.h:307
f32 unk_D9C
Definition common_structs.h:381
f32 kartGravity
Definition common_structs.h:341
f32 size
Definition common_structs.h:363
f32 currentSpeed
Definition common_structs.h:308
s16 unk_238
Definition common_structs.h:370
f32 unk_DAC
Definition common_structs.h:386
u16 unk_046
Definition common_structs.h:289
f32 unk_0A4
Definition common_structs.h:310
f32 unk_094
Definition common_structs.h:306
u16 surfaceType
Definition common_structs.h:338
Mat3 orientationMatrix
Definition common_structs.h:348
u16 unk_002
Definition common_structs.h:271
f32 copy_rotation_z
Definition common_structs.h:282
s16 unk_228
Definition common_structs.h:364
s16 unk_044
Definition common_structs.h:288
s32 unk_07C
Definition common_structs.h:300
u16 characterId
Definition common_structs.h:376
s16 unk_0CA
Definition common_structs.h:326
Vec4s unk_0CC
Definition common_structs.h:327
u16 unk_0B4
Definition common_structs.h:317
f32 unk_08C
Definition common_structs.h:304
s16 unk_0FA
Definition common_structs.h:339
s16 unk_078
Definition common_structs.h:298
u32 effects
Definition common_structs.h:320
f32 unk_23C
Definition common_structs.h:372
f32 unk_05C
Definition common_structs.h:293
f32 unk_DB0
Definition common_structs.h:387
Mat3 unk_150
Definition common_structs.h:347
f32 unk_0E8
Definition common_structs.h:334
f32 unk_090
Definition common_structs.h:305
Vec3s rotation
Definition common_structs.h:283
Vec4s unk_050
Definition common_structs.h:291
s16 slopeAccel
Definition common_structs.h:323
f32 boostPower
Definition common_structs.h:301
s16 unk_222
Definition common_structs.h:362
s16 unk_040
Definition common_structs.h:286
s16 unk_D98
Definition common_structs.h:379
f32 unk_20C
Definition common_structs.h:356
f32 unk_230
Definition common_structs.h:367
f32 boundingBoxSize
Definition common_structs.h:296
f32 unk_0A0
Definition common_structs.h:309
u16 type
Definition common_structs.h:270
f32 unk_108
Definition common_structs.h:343
f32 unk_DA8
Definition common_structs.h:385
s16 unk_0AE
Definition common_structs.h:314
f32 kartHopJerk
Definition common_structs.h:336
f32 topSpeed
Definition common_structs.h:358
f32 unk_0E4
Definition common_structs.h:333
s16 unk_0A8
Definition common_structs.h:311
s16 unk_234
Definition common_structs.h:368
Vec3f velocity
Definition common_structs.h:285
f32 kartHopVelocity
Definition common_structs.h:335
Vec4s unk_0D4
Definition common_structs.h:328
s16 unk_DA4
Definition common_structs.h:383
s32 unk_240
Definition common_structs.h:373
s16 unk_23A
Definition common_structs.h:371
u16 unk_0B6
Definition common_structs.h:318
f32 unk_22C
Definition common_structs.h:366
Vec3f unk_064
Definition common_structs.h:295
Vec4s unk_048
Definition common_structs.h:290
s16 unk_0C2
Definition common_structs.h:322
u16 unk_256
Definition common_structs.h:377
f32 unk_084
Definition common_structs.h:302
f32 unk_1FC
Definition common_structs.h:351
s16 unk_DA6
Definition common_structs.h:384
s16 boostTimer
Definition common_structs.h:329
s16 currentItemCopy
Definition common_structs.h:277
s16 unk_0E2
Definition common_structs.h:332
u16 unk_006
Definition common_structs.h:273
s16 unk_0B0
Definition common_structs.h:315
s16 unk_0C8
Definition common_structs.h:325
s16 unk_0B2
Definition common_structs.h:316
s16 unk_204
Definition common_structs.h:353
s16 unk_236
Definition common_structs.h:369
f32 unk_088
Definition common_structs.h:303
s16 unk_206
Definition common_structs.h:354
f32 unk_060
Definition common_structs.h:294
s32 soundEffects
Definition common_structs.h:276
f32 unk_218
Definition common_structs.h:359
f32 unk_208
Definition common_structs.h:355
f32 unk_058
Definition common_structs.h:292
s16 nearestWaypointId
Definition common_structs.h:361
s16 unk_0E0
Definition common_structs.h:331
s16 unk_012
Definition common_structs.h:278
f32 unk_0B8
Definition common_structs.h:319
s16 unk_0C6
Definition common_structs.h:324
u32 unk_200
Definition common_structs.h:352
f32 unk_1F8
Definition common_structs.h:350
s16 currentRank
Definition common_structs.h:272
s16 unk_0AC
Definition common_structs.h:313
s16 unk_22A
Definition common_structs.h:365
f32 unk_074
Definition common_structs.h:297
s16 unk_10C
Definition common_structs.h:344
f32 unk_21C
Definition common_structs.h:360
s16 unk_0AA
Definition common_structs.h:312
f32 copy_rotation_x
Definition common_structs.h:280
Vec3f pos
Definition common_structs.h:279
Definition common_structs.h:414
u16 alpha
Definition common_structs.h:418
u16 red
Definition common_structs.h:415
u16 blue
Definition common_structs.h:417
u16 green
Definition common_structs.h:416
Definition common_structs.h:51
enum SpTaskState state
Definition common_structs.h:55
OSMesg msg
Definition common_structs.h:54
OSMesgQueue * msgqueue
Definition common_structs.h:53
OSTask task
Definition common_structs.h:52
Definition common_structs.h:130
s8 stickX
Definition common_structs.h:134
s8 frameDuration
Definition common_structs.h:132
u8 button
Definition common_structs.h:131
s8 stickY
Definition common_structs.h:133
Definition common_structs.h:254
s16 unk1C
Definition common_structs.h:264
f32 unkC
Definition common_structs.h:259
f32 unk10
Definition common_structs.h:260
s16 unk0
Definition common_structs.h:255
s16 unk2
Definition common_structs.h:256
f32 unk4
Definition common_structs.h:257
f32 unk14
Definition common_structs.h:261
s16 unk20
Definition common_structs.h:266
f32 unk8
Definition common_structs.h:258
s16 unk1E
Definition common_structs.h:265
s16 unk1A
Definition common_structs.h:263
s16 unk18
Definition common_structs.h:262
Definition common_structs.h:153
s16 unk_040
Definition common_structs.h:176
s16 unk_036
Definition common_structs.h:171
s16 unk_032
Definition common_structs.h:169
s16 unk_02E
Definition common_structs.h:167
u16 unk_010
Definition common_structs.h:156
s16 unk_020
Definition common_structs.h:162
f32 unk_00C
Definition common_structs.h:155
s16 unk_030
Definition common_structs.h:168
s16 unk_034
Definition common_structs.h:170
s16 unk_038
Definition common_structs.h:172
Vec3f unk_000
Definition common_structs.h:154
s16 unk_03A
Definition common_structs.h:173
s16 unk_03C
Definition common_structs.h:174
s16 unk_02C
Definition common_structs.h:166
s16 unk_01E
Definition common_structs.h:161
s16 unk_042
Definition common_structs.h:177
f32 unk_024
Definition common_structs.h:164
f32 unk_018
Definition common_structs.h:159
s16 unk_044
Definition common_structs.h:178
s16 unk_046
Definition common_structs.h:179
f32 unk_028
Definition common_structs.h:165
s16 unk_03E
Definition common_structs.h:175
s16 unk_022
Definition common_structs.h:163
s16 unk_01C
Definition common_structs.h:160
u16 unk_012
Definition common_structs.h:157
f32 unk_014
Definition common_structs.h:158
Definition common_structs.h:99
u32 unk14
Definition common_structs.h:105
u32 unk20
Definition common_structs.h:108
u32 unk1C
Definition common_structs.h:107
u32 unk10
Definition common_structs.h:104
u16 unk26
Definition common_structs.h:110
u32 unk8
Definition common_structs.h:102
u32 unk4
Definition common_structs.h:101
u32 unk0
Definition common_structs.h:100
u32 unk18
Definition common_structs.h:106
u32 unkC
Definition common_structs.h:103
u16 unk24
Definition common_structs.h:109
Definition common_structs.h:121
s32 * D_800ED600
Definition common_structs.h:122
s32 * D_800ED638
Definition common_structs.h:123
s32 * D_800ED628
Definition common_structs.h:123
s32 * D_800ED618
Definition common_structs.h:122
s32 * D_800ED620
Definition common_structs.h:123
s32 * D_800ED610
Definition common_structs.h:122
s32 * D_800ED608
Definition common_structs.h:122
s32 * D_800ED630
Definition common_structs.h:123
Definition common_structs.h:83
f32 unk28
Definition common_structs.h:92
f32 unk34
Definition common_structs.h:95
f32 unk14
Definition common_structs.h:87
s32 unk18
Definition common_structs.h:88
f32 unk2C
Definition common_structs.h:93
s32 unk38
Definition common_structs.h:96
f32 unk24
Definition common_structs.h:91
f32 unk30
Definition common_structs.h:94
f32 unk20
Definition common_structs.h:90
f32 unk10
Definition common_structs.h:86
Vec3f unk0
Definition common_structs.h:84
s32 unk1C
Definition common_structs.h:89
f32 unkC
Definition common_structs.h:85
Definition common_structs.h:113
f32 unk8
Definition common_structs.h:116
f32 unk0
Definition common_structs.h:114
f32 unk4
Definition common_structs.h:115
f32 unkC
Definition common_structs.h:117
Definition common_structs.h:59
OSMesg msg
Definition common_structs.h:61
OSMesgQueue * queue
Definition common_structs.h:60
Definition common_structs.h:20
f32 x
Definition common_structs.h:21
Definition common_structs.h:423
u32 lap2CompletionTime
Definition common_structs.h:434
s8 raceCompleteBool
Definition common_structs.h:492
s16 lapAfterImage1X
Definition common_structs.h:480
s32 posXInt
Definition common_structs.h:449
u8 unk_7A
Definition common_structs.h:509
s16 lap3CompletionTimeX
Definition common_structs.h:472
u32 lap1Duration
Definition common_structs.h:442
s16 slideRankX
Definition common_structs.h:485
s32 posZInt
Definition common_structs.h:451
s16 slideItemBoxX
Definition common_structs.h:461
s8 alsoLapCount
Definition common_structs.h:494
u8 unk_7D
Definition common_structs.h:512
s8 unk_74
Definition common_structs.h:501
s16 rankX
Definition common_structs.h:483
s8 unk_75
Definition common_structs.h:502
s16 timerX
Definition common_structs.h:466
u32 lap3Duration
Definition common_structs.h:444
s8 blinkState
Definition common_structs.h:500
s16 lap1CompletionTimeX
Definition common_structs.h:470
u8 unk_7B
Definition common_structs.h:510
s16 rankY
Definition common_structs.h:484
u8 unk_81
Definition common_structs.h:516
s32 unk_38
Definition common_structs.h:452
s16 slideRankY
Definition common_structs.h:486
s16 speedometerX
Definition common_structs.h:457
u32 lap1CompletionTime
Definition common_structs.h:433
f32 unknownScaling
Definition common_structs.h:424
u32 lap3CompletionTime
Definition common_structs.h:435
s16 lapAfterImage2X
Definition common_structs.h:481
s16 lapX
Definition common_structs.h:478
s8 unk_77
Definition common_structs.h:504
u8 unk_7C
Definition common_structs.h:511
s16 totalTimeX
Definition common_structs.h:476
s16 lapY
Definition common_structs.h:482
s8 unk_82
Definition common_structs.h:517
u8 unk_7F
Definition common_structs.h:514
s16 slideItemBoxY
Definition common_structs.h:462
s16 timerY
Definition common_structs.h:477
s8 lapCount
Definition common_structs.h:493
u8 unk_80
Definition common_structs.h:515
u8 unk_7E
Definition common_structs.h:513
s16 unk_6C
Definition common_structs.h:490
s16 itemBoxY
Definition common_structs.h:460
s16 unk_6E
Definition common_structs.h:491
u8 itemOverride
Definition common_structs.h:503
s16 unk_4A
Definition common_structs.h:464
s32 posYInt
Definition common_structs.h:450
f32 rankScaling
Definition common_structs.h:425
u8 unk_78
Definition common_structs.h:507
s8 unk_83
Definition common_structs.h:518
s16 speedometerY
Definition common_structs.h:458
u32 someTimer
Definition common_structs.h:427
s16 blinkTimer
Definition common_structs.h:456
u8 unk_79
Definition common_structs.h:508
s16 stagingPosition
Definition common_structs.h:487
u32 timeLastTouchedFinishLine
Definition common_structs.h:429
s16 itemBoxX
Definition common_structs.h:459
s16 unk_4C
Definition common_structs.h:465
u32 someTimer1
Definition common_structs.h:428
u32 lap2Duration
Definition common_structs.h:443
s16 lap2CompletionTimeX
Definition common_structs.h:471
Definition common_structs.h:197
s16 vtx21
Definition common_structs.h:209
u16 surfaceType
Definition common_structs.h:205
s16 vtx23
Definition common_structs.h:211
Vtx * vtxPoly3
Definition common_structs.h:214
Vtx * vtxPoly2
Definition common_structs.h:213
s16 vtx31
Definition common_structs.h:206
f32 height2
Definition common_structs.h:228
u16 flags
Definition common_structs.h:198
s16 vtx22
Definition common_structs.h:210
s16 vtx33
Definition common_structs.h:208
f32 rotation
Definition common_structs.h:227
Vtx * vtxPoly1
Definition common_structs.h:212
f32 gravity
Definition common_structs.h:220
f32 height
Definition common_structs.h:217
s16 vtx32
Definition common_structs.h:207
Definition common_structs.h:403
u8 ghostDataSaved
Definition common_structs.h:406
u8 checksum
Definition common_structs.h:411
s32 unk_00
Definition common_structs.h:405
u8 characterId
Definition common_structs.h:408
s8 courseIndex
Definition common_structs.h:407
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:33
unsigned short int u16
Definition ultratypes.h:14
unsigned char u8
Definition ultratypes.h:12