From 0b2a61e5d84e8a9950004c8d76ad8556e334f6c4 Mon Sep 17 00:00:00 2001 From: YamaArashi Date: Mon, 19 Sep 2016 23:49:22 -0700 Subject: WIP decompilation of script functions --- include/fieldmap.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 include/fieldmap.h (limited to 'include/fieldmap.h') diff --git a/include/fieldmap.h b/include/fieldmap.h new file mode 100644 index 000000000..1abef38da --- /dev/null +++ b/include/fieldmap.h @@ -0,0 +1,37 @@ +#ifndef GUARD_FIELDMAP_H +#define GUARD_FIELDMAP_H + +typedef void (*TilesetCB)(void); + +struct Tileset +{ + bool8 isCompressed; + bool8 isSecondary; + void *tiles; + void *palettes; + void *metatiles; + void *metatileAttributes; + TilesetCB callback; +}; + +struct MapData +{ + u32 width; + u32 height; + void *border; + void *map; + struct Tileset *primaryTileset; + struct Tileset *secondaryTileset; +}; + +struct MapHeader +{ + struct MapData *mapData; + void *events; + u8 *mapScripts; + // TODO: rest of struct +}; + +extern struct MapHeader gMapHeader; + +#endif // GUARD_FIELDMAP_H -- cgit v1.2.3