benilla-re systems structs docs

PATHINFO

struct · loadingscreen · 16 bytes

Meaning
Holds one taxi path's leg list: capacity, count, buffer and granularity of pair indices
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.

Fields 4

offsetsizetypenamemeaningconfidencefinding
0x00004uint32_tm_capacityHolds the capacity in entriesverified, proof oneloadingscreen/route#taxi-leg-table
0x00044uint32_tm_countHolds the number of legsverified, proof oneloadingscreen/route#taxi-leg-table
0x00084uint32_t *m_dataHolds the buffer of pair indicesverified, proof oneloadingscreen/route#taxi-leg-table
0x000c4uint32_tm_granularityHolds the growth granularity, 0 until setverified, proof oneloadingscreen/route#taxi-leg-table