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