diff options
author | Phlosioneer <mattmdrr2@gmail.com> | 2019-02-22 03:08:48 -0500 |
---|---|---|
committer | huderlem <huderlem@gmail.com> | 2019-02-28 22:21:16 -0600 |
commit | 189d387f01104a715d788690fbc76d987ea3d6e1 (patch) | |
tree | 3b7fd01eedba31426e8314b42082ffcaa41ac3dd /include/global.fieldmap.h | |
parent | 9ed0f775289d574a792f20ec37fe24f26e765117 (diff) |
Add macros for metatile manipulation
Diffstat (limited to 'include/global.fieldmap.h')
-rw-r--r-- | include/global.fieldmap.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/global.fieldmap.h b/include/global.fieldmap.h index 74a8363bb..2b85a02d1 100644 --- a/include/global.fieldmap.h +++ b/include/global.fieldmap.h @@ -1,6 +1,13 @@ #ifndef GUARD_GLOBAL_FIELDMAP_H #define GUARD_GLOBAL_FIELDMAP_H +#define MAP_IMPASSABLE_MASK 0x0C00 +#define MAP_METATILE_ID_MASK 0x03FF +#define MAP_UNDEFINED_METATILE_ID 0x03FF +#define MAP_TILE_ELEVATION_SHIFT 12 +#define MAP_IMPASSABLE_SHIFT 10 +#define MAP_TILE_ELEVATION_MASK 0xF000 + enum { CONNECTION_SOUTH = 1, @@ -19,8 +26,8 @@ struct Tileset /*0x01*/ bool8 isSecondary; /*0x04*/ void *tiles; /*0x08*/ void *palettes; - /*0x0c*/ void *metatiles; - /*0x10*/ void *metatileAttributes; + /*0x0c*/ u16 *metatiles; + /*0x10*/ u16 *metatileAttributes; /*0x14*/ TilesetCB callback; }; |