STATIC_ASSERT, a compile-time check that emits nothing.
#define STATIC_ASSERT(condition)
C89 permits repeated extern declarations of the same array.
#define offsetof(type, member)
The map's running blend script, which sets the blend registers over time.
One of the 16 tile animation channels, which copy tiles into VRAM by script.
One cell of a map layer: its metatile and flags, its collision code and an attribute indexing the col...
u8 attributeB
Indexes the 4-byte collision entries (gMapCollision): terrain kind in the first byte's low four bits,...
u16 metatileAndFlags
bits: 15..12 flags (15..14 read by Map_GetCellHighFlags) | 11..0 metatile
u8 collisionCode
The step code: 1 to 239 scene events, 240 and 241 encounter ground, 250 hazard, 252 to 254 for Field_...
A map layer's scroll record, seen from its cells.
u8 unk04[0x2c]
the next layer's scroll values; not named by TBS code
struct MapCell * cells
the layer's first cell (MapLayerScroll's cells)
The map work in heap slot 8 (struct MapScrollWork), seen as its tile animation channels,...
u8 unk104[0x2c]
the first layer's scroll values; not named by TBS code
u8 blendControl
The last BLDCNT the blend script wrote; with mode 1 in bits 7..6 its values go to BLDALPHA,...
u8 unk17
MapScrollWork's footprints; Bilibin Cave sets it.
u16 flags
REG_DISPCNT bits; Map_SetShownLayers sets BG1 to BG3.
struct MapAnimation anim[16]
struct MapLayer layers[4]
Each layer's cells, at MapScrollWork's layers[i].cells; readers mask the layer with 3,...
u8 unke4[0x1f]
MapScrollWork's view, bounds and shown layers.
struct BlendScriptState blend
u8 unk000[0x14]
MapScrollWork's origin, shake and script.
u8 wideTiles
nonzero: tile animations copy 64-byte tiles
A position on the world map, as its walkability check reads it.
s32 x
16.16 fixed-point pixels
s32 y
16.16 fixed-point pixels
s32 height
16.16 fixed-point pixels
The integer types, TRUE, UNUSED and the fixed-address macros.