summaryrefslogtreecommitdiff
path: root/include/fieldmap.h
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2016-09-19 23:49:22 -0700
committerYamaArashi <shadow962@live.com>2016-09-19 23:49:22 -0700
commit0b2a61e5d84e8a9950004c8d76ad8556e334f6c4 (patch)
tree9c6c31de37ba0dbcee99b8093f07d127d1de81e6 /include/fieldmap.h
parent573fa4cd845aae6d95719812e0fa39de2ffb07a9 (diff)
WIP decompilation of script functions
Diffstat (limited to 'include/fieldmap.h')
-rw-r--r--include/fieldmap.h37
1 files changed, 37 insertions, 0 deletions
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