targetsFor

function targetsFor
devtools/src/travel.ts:507
targetsFor(world: World, from: UniverseVector, addresses: readonly string[], currentSystem: SystemId | null) → readonly TravelTarget[]

Rows for the addresses a caller already holds.

The third question a listing can ask, after "what is near me" and "what is called this": these ones, as rows. A fuzzy index over names answers with addresses and nothing else — an index that carried the rows would be a copy of the survey that goes stale as the camera moves — so the panel that owns the index hands the addresses back here and gets the same rows the survey draws, with distances measured from the same eye.

Anything resolveDestination accepts is accepted: SOL, s:SOL/b:2, the full g: form, and b:2 relative to currentSystem. An address that names nothing is skipped rather than thrown, because one bad entry in a list of forty should cost that entry and not the listing. A body row needs its system generated — a body has no record before that — so a body of an unloaded system is skipped too.

worldWorld
Undocumented
fromUniverseVector
Undocumented
addressesreadonly string[]
Undocumented
currentSystemSystemId | null
Undocumented
Returnsreadonly TravelTarget[]