CreateAreaChunk
function · terrain · orchestration
- Address
0x6c2880· 308 bytes, up to0x6c29b3- Signature
void __fastcall (void *area, uint32_t column, uint32_t row)- Meaning
- Makes the chunk at a column and row of an area from its MCIN entry and loads it
- Confidence
- verified, proof one
- Finding
- terrain/chunk#chunk-creation
Finding: Chunk creation in terrain: chunk
0x6c2880(area, column, row) makes the chunk at (column, row) of an area: it takes a CMapChunk
from the pool, links it into the area's chunk list, sets its indices and loads it from the MCNK
record the area's MCIN entry row·16 + column points at. The MCIN entry's third dword is the
client's own: bit 0 set means the chunk was made before, and the load is told whether this is the
first time.
The derivation is in the doc.
Callers 1
- ScheduleTileLoads terrain
Callees 3
- AllocMapLink terrain
- AllocChunk terrain
- CMapChunk::Load terrain
Calls and jumps by a bare address, from tables/calls.tsv.