LineOfSightModel.getRowsTransitionedIn()

   
Type function
Library wattageTileEngine.LineOfSightModel.*
Return value Table
Keywords  
See also  

Overview

This function returns a table containing the column component of all tiles transitioned into line of sight. The order of this list matches that of getColsTransitionedIn(). So the value at the same index from each gives the complete row, column coordinate.

Syntax

LineOfSightModel.getRowsTransitionedIn()

Examples

local inRows = lineOfSightModelInstance.getRowsTransitionedIn()
local inCols = lineOfSightModelInstance.getColsTransitionedIn()

local inTileCoords = {}
for i=1,#inRows do
    local row = inRows[i]
    local col = inCols[i]
    table.insert(inTileCoords, {row = row, col = col})
end