class LightSystem: System

Handles lighting calculations for the level. LightSystem:update must be called every frame.

__new(self: Object, ...: any)

The default constructor for the class. Subclasses should override this.

lightBuffers: table<Actor, LightBuffer>
buffer: Grid<Color4>
rtBuffer: Grid<Color4>
tileInfluence: Grid<table<Actor, number>>
MINIMUM_LUMINANCE: number
needsRebuild: boolean
setDirty(self: LightSystem, actor: Actor)
rebuild(self: LightSystem)
update(self: LightSystem)
time: number
cast(
    self: LightSystem,
    x: integer,
    y: integer,
    lightComponent: Light
): Grid<Color4>
getValue(self: LightSystem, x: any, y: any): Color4
getValuePerspective(self: LightSystem, x: integer, y: integer, actor: Actor): Color4?
getRTValue(self: LightSystem, x: any, y: any): Color4
getRTValuePerspective(self: LightSystem, x: any, y: any, actor: any): Color4