five-on-it / apps/client/src/renderer/actor-lamps / ActorLamps
Interface: ActorLamps
Defined in: apps/client/src/renderer/actor-lamps.ts:42
The lamps' lights on the actors.
Properties
shining
readonlyshining:number
Defined in: apps/client/src/renderer/actor-lamps.ts:54
How many of the lights shone on the last frame.
Methods
update()
update(
dark,target,heads,lit):void
Defined in: apps/client/src/renderer/actor-lamps.ts:47
Puts the lights at the lamps of heads nearest to target (where the camera looks) among those lit says are on, dark deep (0 by day: every light off).
Parameters
dark
number
target
x
number
z
number
heads
readonly LampHead[]
lit
(index) => boolean
Returns
void