benilla-re systems structs docs

TaxiPathExists

function · ui · primitive

Address
0x4dbad0 · 49 bytes, up to 0x4dbb00
Signature
bool __fastcall (uint32_t fromId, uint32_t toId)
Meaning
Returns whether the path table holds a TaxiPath from one node id to another
Confidence
verified, proof one
Finding
ui/taxiroute#path-tables

Finding: Path tables in ui: taxi routes, fares and the flight

At game start 0x4db340 fills two tables. The path table holds, for a pair of node ids from 1 to 256, the TaxiPath row that runs from the first node to the second. The rows are walked from the last to the first, so when two rows share a pair the first in the file stays. The point runs come from TaxiPathNode: rows are 0x24 bytes, the path id at +4 and the point x, y and z at +0x10, +0x14 and +0x18. Consecutive rows with one path id form a run, kept in a map by path id as the first row and a count. TaxiPathExists(from, to) answers whether the table holds the pair.

The derivation is in the doc.

Callers 4

Callees 0

None by a direct call or jump.

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