diff options
| author | Robin Allen <r@foon.uk> | 2020-06-03 21:52:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-03 16:52:10 -0400 |
| commit | 69e30364b9b3eb23784d30f8dfd972bbf35ec005 (patch) | |
| tree | 2625f73c3bafce538f9b63d1cfb60981e83cd485 /include | |
| parent | 78049aa5c527f6908e813b76257f1295c1061080 (diff) | |
Convert z_map_data to C (#183)
* Convert z_map_data to C
* Style
Co-authored-by: Random <28494085+Random06457@users.noreply.github.com>
* Cleanup
Co-authored-by: Random <28494085+Random06457@users.noreply.github.com>
* Convert the whole file
* Cleanup
* Cleanup
Co-authored-by: Roman971 <32455037+Roman971@users.noreply.github.com>
* floorNames → floorID
* Style
* Format & fix switch array padding
* Remove trailing zeroes
* Cleanup
Co-authored-by: Random <28494085+Random06457@users.noreply.github.com>
Co-authored-by: Roman971 <32455037+Roman971@users.noreply.github.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/z64.h | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/include/z64.h b/include/z64.h index 9adc769b3..80a7c8d8c 100644 --- a/include/z64.h +++ b/include/z64.h @@ -1289,6 +1289,25 @@ typedef struct PreNMIContext { /* 0xA8 */ UNK_TYPE unk_A8; } PreNMIContext; // size = 0xAC +typedef enum { + /* 1 */ F_8F = 1, + /* 2 */ F_7F, + /* 3 */ F_6F, + /* 4 */ F_5F, + /* 5 */ F_4F, + /* 6 */ F_3F, + /* 7 */ F_2F, + /* 8 */ F_1F, + /* 9 */ F_B1, + /* 10 */ F_B2, + /* 11 */ F_B3, + /* 12 */ F_B4, + /* 13 */ F_B5, + /* 14 */ F_B6, + /* 15 */ F_B7, + /* 16 */ F_B8 +} FloorID; + // All arrays pointed in this struct are indexed by "map indexes" // In dungeons, the map index corresponds to the dungeon index (which also indexes keys, items, etc) // In overworld areas, the map index corresponds to the overworld area index (spot 00, 01, etc) @@ -1319,8 +1338,8 @@ typedef struct { /* 0x5C */ u8 (*switchFromRoom)[51]; // room to come from /* 0x60 */ u8 (*switchFromFloor)[51]; // floor to come from /* 0x64 */ u8 (*switchToRoom)[51]; // room to go to - /* 0x68 */ UNK_PTR unk_68; - /* 0x6C */ UNK_PTR unk_6C; + /* 0x68 */ u8 (*floorID)[8]; + /* 0x6C */ s16* skullFloorIconY; // dungeon big skull icon Y pos } MapData; // size = 0x70 typedef struct { |
