struct MAP_HEADER
A layout's header: the camera's bounds, the layers' priorities, tile bases and setup, and the offsets, from the header's start, of its packed metatile tiles, collision, metatiles, shapes, tileset animation, blend script and script.
Declared in field_internal.h.
Fields
| Name | Description | |
|---|---|---|
Uint8 | cameraBounds [4] | camera bounds in 8-pixel tiles: left, top, right, bottom |
Uint8 | priority [3] | each layer's BG priority, 1 to 3; 0 leaves the layer off |
Uint8 | charBase [3] | each layer's BG char block |
Uint16 | reserved | nothing reads it |
MAP_HEADER_LAYER | layers [3] | |
Sint32 | metatileTiles | staged and unpacked into the metatile tiles buffer |
Sint32 | collision | into RamMapCollision |
Sint32 | metatiles | into RamMapMetatileBuffer |
Sint32 | shapes | into MapShapeGrid |
Sint32 | animation | the tileset animation script, or 0 for none |
Sint32 | blend | the blend script, or 0 for none |
Sint32 | script | into RamMapCollision after its MAPGRID_SHAPE_TABLE_BYTES |
Description
A layout's header: the camera's bounds, the layers' priorities, tile bases and setup, and the offsets, from the header's start, of its packed metatile tiles, collision, metatiles, shapes, tileset animation, blend script and script.
struct MAP_HEADER
Referenced by fdMapGetCameraBounds(), fdMapGridLoadMap() and fdMapLoadMetatilesAndShapes().
Definition at line 125 of file field_internal.h.
Fields in detail
cameraBounds
Uint8 cameraBounds[4]
camera bounds in 8-pixel tiles: left, top, right, bottom
priority
Uint8 priority[3]
each layer's BG priority, 1 to 3; 0 leaves the layer off
charBase
Uint8 charBase[3]
each layer's BG char block
reserved
Uint16 reserved
nothing reads it
layers
MAP_HEADER_LAYER layers[3]
metatileTiles
Sint32 metatileTiles
staged and unpacked into the metatile tiles buffer
collision
Sint32 collision
into RamMapCollision
metatiles
Sint32 metatiles
into RamMapMetatileBuffer
shapes
Sint32 shapes
into MapShapeGrid
animation
Sint32 animation
the tileset animation script, or 0 for none
blend
Sint32 blend
the blend script, or 0 for none
script
Sint32 script
into RamMapCollision after its
MAPGRID_SHAPE_TABLE_BYTES