Skip to content

five-on-it / apps/client/src/renderer/car-lights / CarLights

Interface: CarLights ​

Defined in: apps/client/src/renderer/car-lights.ts:84

The cars' lights of a scene.

Properties ​

stats ​

readonly stats: object

Defined in: apps/client/src/renderer/car-lights.ts:88

The cars whose lights were drawn on the last frame: how many, and which (their views' ids).

beams ​

beams: number

cars ​

cars: string[]

Methods ​

update() ​

update(dark, cars): void

Defined in: apps/client/src/renderer/car-lights.ts:86

Draws the lights of the cars in cars that drive with theirs on (lights), dark deep (0 by day).

Parameters ​

dark ​

number

cars ​

readonly CarView[]

Returns ​

void