benilla-re systems structs docs

Script::GetMapContinents

function · ui · primitive

Address
0x4a7ce0 · 44 bytes, up to 0x4a7d0b
Signature
int __fastcall (lua_State *L)
Meaning
Pushes the continent names and returns their count
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/worldmap#the-getters

Finding: The getters in ui: the world map

GetMapInfo() pushes three values: the selected row's area name (the row at the direct area for a continent of -1 or less, the continent's own row, or its child), the texture height and its power-of-two round-up. A direct area has no continent row, so its height and round-up are 0. GetCurrentMapContinent() pushes the continent word plus one, so -1 for a direct area, and GetCurrentMapZone() pushes the zone plus one. GetMapContinents() and GetMapZones(continent) push the names of the lists; GetMapZones uses an unsigned bound on continent - 1, so a continent of -1 or -2 pushes none. SetMapZoom(continent [, zone]) calls 0x4a67a0(continent - 1, zone - 1) with -1 for a missing zone.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

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