LightingModel.setIsTransparentCallback()

   
Type function
Library wattageTileEngine.LightingModel.*
Return value VOID
Keywords  
See also  

Overview

This function sets the callback function to be used to determine whether a tile is transparent to light.

Syntax

LightingModel.setIsTransparentCallback( callback )
callback (required)

function. Sets the callback function used to determine whether a tile is transparent to light.

The function should have the following signature:

boolean function(column, row)

Examples

lightingModelInstance.setIsTransparentCallback(function (row, column)
  -- Make all tiles transparent
  return true
end)