From 302e43fd9124a85d65a91e9a1a32635d87941036 Mon Sep 17 00:00:00 2001 From: YamaArashi Date: Fri, 30 Sep 2016 09:54:35 -0700 Subject: menu.h --- include/fieldmap.h | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'include/fieldmap.h') diff --git a/include/fieldmap.h b/include/fieldmap.h index d1da5a7e4..6a0074153 100644 --- a/include/fieldmap.h +++ b/include/fieldmap.h @@ -16,8 +16,8 @@ struct Tileset struct MapData { - u32 width; - u32 height; + s32 width; + s32 height; void *border; void *map; struct Tileset *primaryTileset; @@ -37,6 +37,14 @@ struct MapObjectTemplate u8 filler_14[0x4]; }; +struct WarpEvent +{ + s16 x, y; + s8 warpId; + s8 mapGroup; + s8 mapNum; +}; + struct MapEvents { u8 mapObjectCount; @@ -45,7 +53,7 @@ struct MapEvents u8 bgEventCount; struct MapObjectTemplate *mapObjects; - void *warps; + struct WarpEvent *warps; void *coordEvents; void *bgEvents; }; @@ -55,7 +63,10 @@ struct MapHeader struct MapData *mapData; struct MapEvents *events; u8 *mapScripts; - // TODO: rest of struct + void *connections; + u16 music; + u16 mapDataId; + u8 filler_14[0x8]; }; struct MapObject -- cgit v1.2.3