Skip to content

five-on-it / packages/sim/src/devices / DeviceOptions

Interface: DeviceOptions ​

Defined in: packages/sim/src/devices.ts:153

What a mission says of a device it puts down; anything left out is its kind's.

Properties ​

fuse? ​

optional fuse?: number

Defined in: packages/sim/src/devices.ts:157

A bomb's fuse (s).


hold? ​

optional hold?: number

Defined in: packages/sim/src/devices.ts:163

How long working it takes (s); its kind's by default.


needs? ​

optional needs?: string

Defined in: packages/sim/src/devices.ts:165

The tag of the item working it asks for (a bomb site's bomb, a tool).


radius? ​

optional radius?: number

Defined in: packages/sim/src/devices.ts:161

A fuse box's reach (m).


size? ​

optional size?: "small" | "medium" | "large"

Defined in: packages/sim/src/devices.ts:159

A bomb's blast.


spend? ​

optional spend?: boolean

Defined in: packages/sim/src/devices.ts:167

Whether that item is used up (a bomb planted).


state? ​

optional state?: "done" | "off" | "idle" | "site" | "armed" | "defused" | "exploded" | "broken"

Defined in: packages/sim/src/devices.ts:155

How it stands: a bomb's site or armed, a generator broken, a fuse box off; idle by default.