pokecrystal-board/data/tilesets.asm
Rangi 40902ffe24 Verify data table sizes with table_width and assert_table_length macros
This was discussed in #706

It also uncovered some off-by-one issues with defining some constants.

A few structs now use rsreset/_RS to define their offset constants, as discussed in #739
2021-03-04 00:15:03 -05:00

54 lines
1.4 KiB
NASM

tileset: MACRO
dba \1GFX, \1Meta, \1Coll
dw \1Anim
dw NULL
dw \1PalMap
ENDM
; Associated data:
; - The *GFX, *Meta, and *Coll are defined in gfx/tilesets.asm
; - The *PalMap are defined in gfx/tileset_palette_maps.asm
; - The *Anim are defined in engine/tilesets/tileset_anims.asm
Tilesets::
; entries correspond to TILESET_* constants (see constants/tileset_constants.asm)
table_width TILESET_LENGTH, Tilesets
tileset Tileset0
tileset TilesetJohto
tileset TilesetJohtoModern
tileset TilesetKanto
tileset TilesetBattleTowerOutside
tileset TilesetHouse
tileset TilesetPlayersHouse
tileset TilesetPokecenter
tileset TilesetGate
tileset TilesetPort
tileset TilesetLab
tileset TilesetFacility
tileset TilesetMart
tileset TilesetMansion
tileset TilesetGameCorner
tileset TilesetEliteFourRoom
tileset TilesetTraditionalHouse
tileset TilesetTrainStation
tileset TilesetChampionsRoom
tileset TilesetLighthouse
tileset TilesetPlayersRoom
tileset TilesetPokeComCenter
tileset TilesetBattleTowerInside
tileset TilesetTower
tileset TilesetCave
tileset TilesetPark
tileset TilesetRuinsOfAlph
tileset TilesetRadioTower
tileset TilesetUnderground
tileset TilesetIcePath
tileset TilesetDarkCave
tileset TilesetForest
tileset TilesetBetaWordRoom
tileset TilesetHoOhWordRoom
tileset TilesetKabutoWordRoom
tileset TilesetOmanyteWordRoom
tileset TilesetAerodactylWordRoom
assert_table_length NUM_TILESETS + 1