five-on-it / apps/tools/src/kits / KitPiece
Interface: KitPiece
Defined in: apps/tools/src/kits.ts:114
One piece of a kit, in the game's frame.
Properties
anchors
anchors:
Map<string,KitAnchor>
Defined in: apps/tools/src/kits.ts:136
Its named points by name, in the game's frame, in the sidecar's order.
breakable?
optionalbreakable?:number
Defined in: apps/tools/src/kits.ts:126
Its mass (kg) when a fast car can knock it loose; absent for a piece planted for good.
kind
kind:
PieceKind
Defined in: apps/tools/src/kits.ts:118
What it is for the navigation and the maps.
look?
optionallook?:string
Defined in: apps/tools/src/kits.ts:134
The colour its variant leans to (brick, glass), if the sidecar says.
mesh
mesh:
MeshDef
Defined in: apps/tools/src/kits.ts:122
Its mesh at the size it was modelled, around its own origin.
name
name:
string
Defined in: apps/tools/src/kits.ts:116
The piece's name.
parts
parts:
string[]
Defined in: apps/tools/src/kits.ts:138
The pieces of its kit placed with it (a walk-in building's upper floors).
render
render:
boolean
Defined in: apps/tools/src/kits.ts:130
False for a collider nobody sees (render: false in the sidecar).
rests?
optionalrests?:PieceRests
Defined in: apps/tools/src/kits.ts:128
What it stands on when it is not the ground (water: a boat at its waterline; road: a cone), as the sidecar says.
roads
roads:
PieceRoad[]
Defined in: apps/tools/src/kits.ts:124
The roads it carries, in its own frame.
shape
shape:
ColliderShape
Defined in: apps/tools/src/kits.ts:120
How it collides.
tags
tags:
string[]
Defined in: apps/tools/src/kits.ts:132
Its OpenStreetMap-style tags (amenity=hospital) as the sidecar gives them; none for most.