EntityLayer.getLightingMode()
Type | function |
Library | wattageTileEngine.EntityLayer.* |
Return value | Number |
Keywords | |
See also |
Overview
This function will get the the lighting mode for this layer. The two modes available are:
- Ambient Only - Only ambient lighting applies to this layer.
- All - All lighting applies to this layer.
There are constants defined for the modes:
local TileEngine = require "plugin.wattageTileEngine"
TileEngine.LayerConstants.LIGHTING_MODE_APPLY_ALL
TileEngine.LayerConstants.LIGHTING_MODE_AMBIENT_ONLY
The default mode is LIGHTING_MODE_APPLY_ALL.
Syntax
EntityLayer.getLightingMode()
Examples
local TileEngine = require "plugin.wattageTileEngine"
local mode = entityLayerInstance.getLightingMode()