benilla-re systems structs docs

s_taxiLegPairs

global · loadingscreen

Address
0x882b60 · 16 bytes, up to 0x882b6f
Type
uint32_t[4]
Meaning
Holds the array of first stop and last stop pairs
Confidence
verified, proof one
Finding
loadingscreen/route#taxi-leg-table

Finding: Taxi leg table in loadingscreen: route

At startup 0x408000 builds the per-path leg table from the TaxiPathNode store, one outer entry for every taxi path id up to the TaxiPath store's highest. Walking the nodes in order, a node with flag 2 records its id as the run's last stop, and as its first stop when the run has none; a node with flag 1, or the first node on a new continent within a path, closes the run: it appends the pair (first stop, last stop) to the pair array and the pair's index to the path's leg list, and clears the first stop. A change of path closes a run that has a first stop, in the path before it.

The derivation is in the doc.