Skip to content

five-on-it / apps/client/src/renderer/signal-lamps / LampState

Interface: LampState ​

Defined in: apps/client/src/renderer/signal-lamps.ts:48

One lamp as drawn: the junction it rules (the road graph's node), its group, its colour, where.

Properties ​

colour ​

colour: SignalColour | "off"

Defined in: apps/client/src/renderer/signal-lamps.ts:54

What it shows; off once knocked loose.


group ​

group: number

Defined in: apps/client/src/renderer/signal-lamps.ts:52

The group of approaches it shows.


junction ​

junction: number

Defined in: apps/client/src/renderer/signal-lamps.ts:50

The junction's node.


x ​

x: number

Defined in: apps/client/src/renderer/signal-lamps.ts:56

Where its head is (m).


z ​

z: number

Defined in: apps/client/src/renderer/signal-lamps.ts:58

Where its head is (m).