five-on-it / packages/world/src/pavements / Pavements
Interface: Pavements
Defined in: packages/world/src/pavements.ts:101
The pavements of a level.
Properties
buckets
buckets:
Map<number,number[]>
Defined in: packages/world/src/pavements.ts:113
Node ids by bucket (column * 4096 + row of BUCKET cells), for the nearest node.
doors
doors:
Door[]
Defined in: packages/world/src/pavements.ts:107
The doors, in placement order.
links
links:
PavementLink[][]
Defined in: packages/world/src/pavements.ts:105
Each node's links, by neighbour id ascending.
nodes
nodes:
PavementNode[]
Defined in: packages/world/src/pavements.ts:103
The nodes.
part
part:
Int32Array
Defined in: packages/world/src/pavements.ts:109
The connected part each node belongs to.
parts
parts:
number[][]
Defined in: packages/world/src/pavements.ts:111
The nodes of each part, ascending.