LightingModel.markLightAsDirtyIfAffectedAreaContainsTile()
Type | function |
Library | wattageTileEngine.LightingModel.* |
Return value | VOID |
Keywords | |
See also |
Overview
This function marks any lights dirty which contain the specified coordinate in their affected areas. This is useful when dynamically changing the opaqueness of tiles.
Syntax
LightingModel.markLightAsDirtyIfAffectedAreaContainsTile( row, col )
row (required)
Number. Row of the tile.
col (required)
Number. Column of the tile.
Examples
lightingModelInstance.markLightAsDirtyIfAffectedAreaContainsTile(10, 15)