benilla-re systems structs docs

CMap::LoadWdt

function · terrain · orchestration

Address
0x694760 · 445 bytes, up to 0x69491c
Signature
void __cdecl (void)
Meaning
Reads the WDT's version, map header and tile table, and places a one-object map's object
Confidence
verified, proof one
Finding
terrain/files#wdt

Finding: WDT in terrain: files

CMap::LoadWdt (0x694760) reads the WDT in fixed pieces: an 8-byte header, the 4-byte version into 0xc96314, a header, the 32-byte map header into 0xc9e35c, a header, and the 32,768-byte tile table into 0xc89f50, 64×64 entries of two dwords, index row·64 + column. Bit 0 of an entry's first dword means the tile has an ADT. When the map header's first dword has bit 0 set, the map is one object: the reader takes a header, the object's name of the size that header gives, a header and one 64-byte placement, and places it with the unique id taken from a counter that counts down.

The derivation is in the doc.

Callers 1

Callees 9

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