Skip to content

five-on-it / apps/client/src/renderer/devices-view

apps/client/src/renderer/devices-view ​

The devices a mission puts down and the props lying about, as the game draws them: each device (@foi/sim's devices.ts: a bomb, a laptop on its table, a fuse box, a generator, a workbench, a car jack) as its model of models/props.glb (device-<kind>), where the snapshots have it, a safe (a container) as its own; an item with a look lying on the ground (a briefcase, a cash bag, a toolbox: @foi/shared's HANDHELD_LOOKS) as its model of models/handheld.glb (held-<look>), bobbing as the other pickups do (items-view.ts draws those, and no box for these). All of it by the models' batches: a draw a frame each, nothing in the scene graph. A bomb not planted yet is nothing to see (the tracker marks where it goes) and one gone off is gone; an armed bomb pulses, a running generator shakes.

Interfaces ​

Functions ​