benilla-re systems structs docs

LoadArea

function · terrain · primitive

Address
0x6c2720 · 319 bytes, up to 0x6c285e
Signature
void __fastcall (uint32_t column, uint32_t row)
Meaning
Marks a tile requested, makes its area with indices and origin, and reads its ADT
Confidence
verified, proof one
Finding
terrain/files#tile-load
Test
terrain::adt_area_origin_difftest

Finding: Tile load in terrain: files

0x6c2720(column, row) starts a tile: it marks the WDT entry with bit 1, makes the area, links it into the map's area list, and stores column +0x88, row +0x8c, the index row·64 + column +0x98, 16·column +0x90 and 16·row +0x94, and the tile origin X = 17066.666 − 16·row·33.333332 at +0x7c and Y at +0x80, each one rounding. The file is <dir>\<name>_<column>_<row>.adt.

The derivation is in the doc.

Callers 1

Callees 4

Calls and jumps by a bare address, from tables/calls.tsv.