LineOfSightModel
Type | LineOfSightModel |
Library | wattageTileEngine.* |
Keywords | Wattage, LineOfSightModel, Tile Engine |
See also |
Overview
Syntax
local TileEngine = require "plugin.wattageTileEngine"
-- Callback to indicate whether line of sight can pass through tile
local function isTransparent(column, row)
-- Make an opaque wall along column 5
return column ~= 5
end
local lineOfSightModel = TileEngine.LineOfSightModel.new({
radius = 15,
isTransparent = isTransparent
})