Utils.getFromGrid()
Type | function |
Library | wattageTileEngine.Utils.* |
Return value | Value |
Keywords | |
See also |
Overview
This function retrieves a value from a grid at the specified row and column or nil if no value exists there.
Syntax
Utils.getFromGrid( grid, row, column )
grid (required)
Table. The table in which the value will be inserted.
row (required)
Number. The row to get the value from.
column (required)
Number. The column to get the value from.
Examples
local TileEngine = require 'plugin.wattageTileEngine'
local Utils = TileEngine.Utils
local value = Utils.getFromGrid(grid, 10, 15)