five-on-it / apps/client/src/renderer/chaos-view / ChaosView
Interface: ChaosView
Defined in: apps/client/src/renderer/chaos-view.ts:57
The chaos of one scene.
Properties
counts
readonlycounts:ChaosCounts
Defined in: apps/client/src/renderer/chaos-view.ts:68
What is drawn now.
Methods
grapple()
grapple(
ev,now):void
Defined in: apps/client/src/renderer/chaos-view.ts:61
A grappling hook's line fired: its anchor, remembered a while (now in seconds).
Parameters
ev
length
number
pitch
number
x
number
y
number
yaw
number
z
number
now
number
Returns
void
render()
render(
world,now,nameOf):void
Defined in: apps/client/src/renderer/chaos-view.ts:66
Draws the frame: the leaves, the lines, the canopies, the substations, the boards' faces.
Parameters
world
now
number
nameOf
(client) => string
Returns
void
tell()
tell(
message):void
Defined in: apps/client/src/renderer/chaos-view.ts:59
The room's chaos as the server tells it: the pumps and the billboards.
Parameters
message
bascules
number[] = ...
The tick each bascule leaf began to rise, by its index in the level; −1 lowered.
billboards
object[] = ...
The billboards showing a wanted player's face: the placement's index, the player's client id.
pumps
("out" | "burning" | "fine")[] = ...
Each pump's state (PUMP_STATES), by its index among the level's pumps.
riots
object[] = ...
The riots under way: where (m) and how wide (m).
tick
number = ...
The server's tick as it sent this: what the raisings' ticks are counted from (a client's world counts its own).
type
"chaos" = ...
Returns
void