FindWMOAreaRow
function · unassigned · orchestration
- Address
0x7ccde0· 104 bytes, up to0x7cce47- Signature
bool __fastcall (int32_t wmoId, int32_t nameSet, int32_t groupId, void **row)- Meaning
- Finds the WMOAreaTable row of an exact key by binary search and stores it or null
- Confidence
- verified, proof one
- Finding
- terrain/zones#wmoareatable-lookups
Finding: WMOAreaTable lookups in terrain: zones
Both lookups binary-search the WMOAreaTable rows for an exact key of WMO id, name set and group
id, compared in that order. Each field compares by its 32-bit difference, which wraps, so the
rows must be sorted by that order; an empty table finds nothing. 0x7ccde0(wmo, nameSet, group, &row) stores the row found or null and returns whether one was. 0x7ccd30(wmo, nameSet, group)
returns the row's name for the locale, +0x2c + 4 × locale, or the empty string. Neither retries
another name set or the whole-WMO row.
The derivation is in the doc.
Callers 4
- CWorld::GetAreaIdAt terrain
- CWorld::GetEntityAreaId terrain
- GetEntityAreaName terrain
- GetEntityAreaRows terrain
Callees 3
- WMOAreaTableRecConstruct dbc
- WMOAreaTableRecDestruct dbc
- _bsearch crt
Calls and jumps by a bare address, from tables/calls.tsv.