LineOfSightModel.getCoordinatesIn()
| Type | function |
| Library | wattageTileEngine.LineOfSightModel.* |
| Return value | Table |
| Keywords | |
| See also |
Overview
This function returns a table containing the tiles currently in the line of sight.
Syntax
LineOfSightModel.getCoordinatesIn()
Examples
local inRowColumnPairs = {}
local coordsIn = lineOfSightModelInstance.getCoordinatesIn()
for row, columns in pairs(coordsIn) do
for col, tile in pairs(columns) do
table.insert(inRowColumnPairs, {row = row, col = col})
end
end