GTileMap.opIndex

short opIndex(Sz row, Sz col, Sz layerId = 0) @trusted ref

Returns a reference to the tile id at the given row, column, and layer.

short opIndex(IVec2 position, Sz layerId = 0) ref

Returns a reference to the tile id at the given grid position and layer.