five-on-it / packages/world/src/nav-layers / NavLinks
Interface: NavLinks
Defined in: packages/world/src/nav-layers.ts:104
The typed links of a layered navigation (nav-links.ts builds them): one-way ways from a node to another that are no walk, each with its kind (an index into NAV_LINK_KINDS), the ladder or lift it uses, what it costs and where it is taken and left. Flat typed arrays, sorted by the node they leave, so they cross to another thread as they are.
Properties
cost
cost:
Float32Array
Defined in: packages/world/src/nav-layers.ts:116
What each takes (s): the climb, the wait and the ride, the jump, the walk.
first
first:
Uint32Array
Defined in: packages/world/src/nav-layers.ts:106
Where each node's links start: those of node n are first[n] to first[n + 1] (exclusive).
from
from:
Int32Array
Defined in: packages/world/src/nav-layers.ts:108
The node each link leaves.
kind
kind:
Uint8Array
Defined in: packages/world/src/nav-layers.ts:112
Each link's kind: an index into NAV_LINK_KINDS (ladder, lift, drop, hop, stairs).
points
points:
Float32Array
Defined in: packages/world/src/nav-layers.ts:118
Where each is taken and where it is left, six numbers a link: x, y, z of each (m).
ref
ref:
Int32Array
Defined in: packages/world/src/nav-layers.ts:114
The ladder's or the lift's index in the level, or the stairs' placement's; −1 for a drop or a hop.
to
to:
Int32Array
Defined in: packages/world/src/nav-layers.ts:110
The node each link reaches.