Advertisement
Faschz

DKR - Misc. Structs

Jun 30th, 2020
1,244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 6.80 KB | None | 0 0
  1. typedef struct{
  2.   /* 0x00 */ u32 trophy_points;
  3.   /* 0x04 */ u8 best_times;
  4.   /* 0x05 */ u8 character;
  5.   /* 0x06 */ u8 starting_position;
  6.   /* 0x07 */ char unk_07;
  7.   /* 0x08 */ u16 placements[4];
  8.   /* 0x10 */ u16 course_time;
  9.   /* 0x12 */ u16 lap_times[3];
  10.   /* Size: 0x18 */
  11. } dkr_racer_t;
  12.  
  13. typedef struct{
  14.   /* 0x0000 */ void *balloons_ptr;
  15.   /* 0x0004 */ void *course_flags_ptr;
  16.   /* 0x0008 */ u16 keys;
  17.   /* 0x000A */ char unk_000A[2];
  18.   /* 0x000C */ u16 bosses;
  19.   /* 0x000E */ u16 trophies;
  20.   /* 0x0010 */ u32 cutscene_flags;
  21.   /* 0x0014 */ u16 taj_flags;
  22.   /* 0x0016 */ u8 tt_amulet;
  23.   /* 0x0017 */ u8 wizpig_amulet;
  24.   /* 0x0018 */ void *flap_initials_ptr[3];
  25.   /* 0x0024 */ void *flap_times_ptr[3];
  26.   /* 0x0030 */ void *course_initials_ptr[3];
  27.   /* 0x003C */ void *course_times_ptr[3];
  28.   /* 0x0048 */ u8 world;
  29.   /* 0x0049 */ u8 course;
  30.   /* 0x004A */ u8 player_count;
  31.   /* 0x004B */ u8 new_game;
  32.   /* 0x004C */ void *return_course_ptr;
  33.   /* 0x0050 */ u32 filename;
  34.   /* 0x0054 */ dkr_racer_t racers[8];
  35.   /* 0x0114 */ u8 time_trial_racer;
  36.   /* 0x0115 */ char unk_0115[2];
  37.   /* 0x0117 */ u8 display_times;
  38.   /* 0x0118 */ u32 course_flags[65];
  39.   /* 0x021C */ u16 balloons;
  40.   /* 0x021E */ u16 world_balloons[5];
  41.   /* 0x0228 */ u16 flap_initials[3][65];
  42.   /* 0x03AE */ u16 flap_times[3][65];
  43.   /* 0x0534 */ u16 course_initials[3][65];
  44.   /* 0x06BA */ u16 course_times[3][65];
  45.   /* Size: 0x0840 */
  46. } dkr_settings_t;
  47.  
  48. typedef struct{
  49.   /* 0x00 */ u8 world;
  50.  
  51.   /* 0x08 */ f32 course_height;
  52.  
  53.   /* 0x34 */ u16 geometry;
  54.   /* 0x36 */ u16 collectables; // Objects such as bananas, balloons, etc.
  55.   /* 0x38 */ u16 skybox;
  56.  
  57.   /* 0x3E */ u16 r; // Fog related
  58.   /* 0x40 */ u16 g;
  59.   /* 0x42 */ u16 b;
  60.  
  61.   /* 0x4B */ u8 laps;
  62.   /* 0x4C */ u8 race_type;
  63.   /* 0x4D */ u8 vehicle;
  64.   /* 0x4E */ u8 available_vehicles;
  65.  
  66.   /* 0x52 */ u8 music;
  67.  
  68.   /* 0x54 */ u16 instruments;
  69.  
  70.   // Weather related?
  71.   /* 0x90 */ u16 weather_enable;
  72.   /* 0x92 */ u16 unk;
  73.   /* 0x94 */ u8 unk;
  74.   /* 0x95 */ u8 unk;
  75.   /* 0x96 */ u16 unk;
  76.   /* 0x98 */ u16 unk;
  77.  
  78.   /* Size: 0xC8 */
  79. } dkr_course_t;
  80.  
  81. typedef struct{
  82.   /* 0x00 */ u32 unk_00;
  83.   /* 0x04 */ u32 unk_04;
  84.   /* 0x08 */ u32 unk_08;
  85.   /* 0x0C */ f32 unk_0C;
  86.   /* 0x10 */ u32 unk_10;
  87.   /* 0x14 */ u32 unk_14;
  88.   /* 0x18 */ f32 unk_18;
  89.   /* 0x1C */ u32 unk_1C;
  90.   /* 0x20 */ u32 unk_20;
  91.   /* 0x24 */ u32 unk_24;
  92.   /* 0x28 */ u32 unk_28;
  93.   /* 0x2C */ u32 unk_2C;
  94.   /* 0x30 */ u32 unk_30;
  95.   /* 0x34 */ u32 unk_34;
  96.   /* 0x38 */ u32 unk_38;
  97.   /* 0x3C */ u32 unk_3C;
  98.   /* 0x40 */ f32 unk_40;
  99.   /* 0x44 */ f32 unk_44;
  100.   /* 0x48 */ f32 unk_48;
  101.   /* 0x4C */ u32 unk_4C;
  102.   /* Size: 0x50 */
  103. } dkr_wave_t;
  104.  
  105. typedef struct{
  106.   /* 0x0000 */ u16 y_rotation;
  107.   /* 0x0002 */ u16 x_rotation;
  108.   /* 0x0004 */ u16 z_rotation;
  109.   /* 0x0006 */ u16 unk_0006;
  110.   /* 0x0008 */ f32 scale;
  111.   /* 0x000C */ f32 x_position;
  112.   /* 0x0010 */ f32 y_position;
  113.   /* 0x0014 */ f32 z_position;
  114.   /* 0x0018 */ u16 unk_0018;
  115.   /* 0x001A */ u16 unk_001A;
  116.   /* 0x001C */ f32 x_velocity;
  117.   /* 0x0020 */ f32 y_velocity;
  118.   /* 0x0024 */ f32 z_velocity;
  119.   /* 0x0028 */
  120.  
  121.   /* 0x002E */ u16 unk_002E;
  122.   /* 0x0030 */ f32 unk_0030;
  123.   /* 0x0034 */ f32 unk_0034;
  124.   /* 0x0038 */
  125.  
  126.   /* 0x0039 */ u8 unk_0039;
  127.   /* 0x003A */ u8 unk_003A;
  128.   /* 0x003B */ u8 unk_003B;
  129.   /* 0x003C */
  130.  
  131.   /* 0x0040 */ void *descriptor_ptr;
  132.   /* 0x0044 */ void *unk_0044;
  133.   /* 0x0048 */ u16 unk_0048;
  134.   /* 0x004A */ u16 unk_004A;
  135.   /* 0x004C */ void *unk_004C; //player + 0x318
  136.   /* 0x0050 */ void *unk_0050; //player + 0x2F4
  137.   /* 0x0054 */ void *unk_0054; //player + 0x2C0
  138.   /* 0x0058 */ void *unk_0058; //player + 0x304
  139.   /* 0x005C */
  140.  
  141.   /* 0x0060 */ void *unk_0060; //player + 0x340
  142.   /* 0x0064 */ void *unk_0064; //player + 0x98
  143.   /* 0x0068 */ void *unk_0068; //player + 0x80
  144.   /* 0x006C */ void *unk_006C; //player + 0x370
  145.   /* 0x0070 */
  146.  
  147.   /* 0x0074 */ u32 unk_0074;
  148.   /* 0x0078 */
  149.  
  150.   /* 0x0080 */ void *unk_0080;
  151.   /* 0x0084 */ u32 unk_0084;
  152.   /* 0x0088 */
  153.  
  154.   /* 0x0098 */ u16 unk_0098;
  155.   /* 0x009A */ u8 unk_009A;
  156.   /* 0x009B */ u8 minimap_color;
  157.   /* 0x009C */
  158.  
  159.   /* 0x00A0 */ f32 unk_00A0;
  160.   /* 0x00A4 */
  161.  
  162.   /* 0x00C4 */ f32 velocity;
  163.   /* 0x00C8 */ f32 lateral_velocity;
  164.   /* 0x00CC */
  165.  
  166.   /* 0x00F4 */ f32 prev_x_position;
  167.   /* 0x00F8 */ f32 prev_y_position;
  168.   /* 0x00FC */ f32 prev_z_position;
  169.   /* 0x0100 */
  170.  
  171.   /* 0x0110 */ f32 unk_0110;
  172.   /* 0x0114 */ f32 unk_0114;
  173.   /* 0x0118 */ f32 unk_0118;
  174.   /* 0x011C */ f32 unk_011C;
  175.   /* 0x0120 */
  176.  
  177.   /* 0x0124 */ f32 stretch_height;
  178.   /* 0x0128 */ f32 stretch_height_cap;
  179.   /* 0x012C */ f32 unk_012C;
  180.  
  181.   /* 0x0134 */ f32 pitch;
  182.   /* 0x0138 */
  183.  
  184.   /* 0x0140 */ f32 checkpoint_distance;
  185.   /* 0x0144 */
  186.  
  187.   /* 0x0148 */ f32 unk_0148;
  188.   /* 0x014C */ f32 throttle;
  189.   /* 0x0150 */ f32 brake;
  190.   /* 0x0154 */
  191.  
  192.   /* 0x0160 */ f32 unk_0160;
  193.   /* 0x0164 */
  194.  
  195.   /* 0x0170 */ f32 unk_0170;
  196.   /* 0x0174 */ f32 unk_0174;
  197.   /* 0x0178 */ f32 unk_0178;
  198.   /* 0x017C */ f32 unk_017C;
  199.   /* 0x0180 */ f32 unk_0180;
  200.   /* 0x0184 */ f32 unk_0184;
  201.   /* 0x0188 */ f32 unk_0188;
  202.   /* 0x018C */ f32 unk_018C;
  203.   /* 0x0190 */ f32 unk_0190;
  204.   /* 0x0194 */ f32 unk_0194;
  205.   /* 0x0198 */ f32 unk_0198;
  206.   /* 0x019C */ f32 unk_019C;
  207.   /* 0x01A0 */
  208.  
  209.  
  210.  
  211.   /* 0x01C0 */ u32 lap_times[3];
  212.   /* 0x01CC */
  213.  
  214.   /* 0x01DC */ void *held_obj_ptr;
  215.   /* 0x01E0 */
  216.  
  217.   /* 0x020A */ u8 balloon_type
  218.   /* 0x020B */ u8 balloon_quantity;
  219.   /* 0x020C */ u8 balloon_level;
  220.   /* 0x020D */
  221.  
  222.   /* 0x021D */ s8 bananas;
  223.   /* 0x021E */
  224.  
  225.   /* 0x0270 */ u8 unk_0270;
  226.   /* 0x0271 */ u8 unk_0271;
  227.   /* 0x0272 */
  228.  
  229.   /* 0x0273 */ u8 spinout_timer;
  230.   /* 0x0274 */ u8 wheel_surfaces[4];
  231.   /* 0x0278 */
  232.  
  233.   /* 0x027E */ u8 drift_direction;
  234.   /* 0x027F */
  235.  
  236.   /* 0x0285 */ s8 squish_timer;
  237.   /* 0x0286 */
  238.   /* 0x0287 */ u8 boost_sound;
  239.   /* 0x0288 */
  240.  
  241.   /* 0x028F */ u8 transparency;
  242.   /* 0x0290 */ u8 indicator_type;
  243.   /* 0x0291 */ s8 indicator_timer;
  244.   /* 0x0292 */
  245.  
  246.   /* 0x02C0 */ f32 unk_02C0;
  247.   /* 0x02C4 */ u8 red;
  248.   /* 0x02C5 */ u8 blue;
  249.   /* 0x02C6 */ u8 green;
  250.   /* 0x02C7 */ u8 alpha;
  251.   /* 0x02C8 */
  252.  
  253.   /* 0x02DC */ u16 unk_02DC;
  254.   /* 0x02DE */ u16 unk_02DE;
  255.   /* 0x02E0 */ u16 unk_02E0;
  256.   /* 0x02E2 */
  257.  
  258.   /* 0x02E8 */ f32 unk_02E8;
  259.   /* 0x02EC */ f32 unk_02EC;
  260.   /* 0x02F0 */
  261.  
  262.   /* 0x02F4 */ f32 shadow_scale;
  263.   /* 0x02F8 */ void *unk_02F8;
  264.   /* 0x02FC */ u16 unk_02FC;
  265.   /* 0x02FE */ u16 unk_02FE;
  266.   /* 0x0300 */
  267.  
  268.   /* 0x0304 */ f32 unk_0304;
  269.   /* 0x0308 */
  270.  
  271.   /* 0x0318 */ void *nearest_obj_ptr;
  272.   /* 0x031C */ f32 unk_031C;
  273.   /* 0x0320 */ f32 unk_0320;
  274.   /* 0x0324 */ f32 unk_0324;
  275.   /* 0x0328 */
  276.  
  277.   /* 0x0340 */ u32 unk_0340;
  278.   /* 0x0344 */ void *unk_0344;
  279.   /* 0x0348 */ void *unk_0348;
  280.   /* 0x034C */ void *unk_034C;
  281.   /* 0x0350 */ void *unk_0350;
  282.   /* 0x0354 */
  283.  
  284.   /* 0x0370 */ void *unk_0370;
  285.   /* 0x0374 */
  286.  
  287.   /* Size: 0x0630 */
  288. } dkr_player_t;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement