Struct TerrainTypeTable
Two dimensional grid that stores the tile type of each tile.
Namespace: TycoonTerrain.Core
Assembly: TycoonTerrainAssembly.dll
Syntax
public struct TerrainTypeTable
Properties
Size
The size of the tile type table.
Declaration
public int2 Size { get; }
Property Value
Type | Description |
---|---|
Unity.Mathematics.int2 | The size of the tile type table. |
Methods
GetTileType(int2)
Gets the tile type at the given tile position.
Declaration
public TileType GetTileType(int2 tilePosition)
Parameters
Type | Name | Description |
---|---|---|
Unity.Mathematics.int2 | tilePosition | The tile position. |
Returns
Type | Description |
---|---|
TileType | A TileType instance that represents the tile type for the tile at |