LineOfSightModel.getDirtyColumns()

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

Overview

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

Syntax

LineOfSightModel.getDirtyColumns()

Examples

local dirtyRows = lineOfSightModelInstance.getDirtyRows()
local dirtyCols = lineOfSightModelInstance.getDirtyColumns()

local dirtyTileCoords = {}
for i=1,#dirtyRows do
    local row = dirtyRows[i]
    local col = dirtyCols[i]
    table.insert(dirtyTileCoords, {row = row, col = col})
end