Struct OperationResult
Container for all modifications that were generated in a terrain operation.
Namespace: TycoonTerrain.Core.TerrainOperations
Assembly: TycoonTerrainAssembly.dll
Syntax
public struct OperationResult
Methods
ClearWater(IntBound)
Clears the water within the given bounds.
Declaration
public void ClearWater(IntBound bounds)
Parameters
Type | Name | Description |
---|---|---|
Int |
bounds | The bounds. |
ClearWater(TileHandle)
Clears the water for a given tile handle.
Declaration
public void ClearWater(TileHandle tileHandle)
Parameters
Type | Name | Description |
---|---|---|
Tile |
tileHandle | The tile handle. |
ClearWater(int2)
Clears the water at the given tile position.
Declaration
public void ClearWater(int2 tilePosition)
Parameters
Type | Name | Description |
---|---|---|
Unity. |
tilePosition | The tile position. |
SetHeight(IntBound, Int32)
Sets the height of all tiles and corners within the given bounds.
Declaration
public void SetHeight(IntBound bounds, int height)
Parameters
SetHeights(TileHandle, int4)
Sets the tile heights for given tile handle.
Declaration
public void SetHeights(TileHandle handle, int4 heights)
Parameters
Type | Name | Description |
---|---|---|
Tile |
handle | The tile handle. |
Unity. |
heights | The heights. |
SetHeights(int2, int4)
Sets the heights of the tile at the given tile position.
Declaration
public void SetHeights(int2 tilePosition, int4 heights)
Parameters
Type | Name | Description |
---|---|---|
Unity. |
tilePosition | The tile position. |
Unity. |
heights | The heights. |
SetTileType(IntBound, TileType)
Sets the tile type within the given bounds. Use this overload for batch modifications, since it is more efficient.
Declaration
public void SetTileType(IntBound bounds, TileType tileType)
Parameters
SetTileType(int2, TileType)
Sets the tile type at the given tile position.
Declaration
public void SetTileType(int2 tilePosition, TileType tileType)
Parameters
Type | Name | Description |
---|---|---|
Unity. |
tilePosition | The tile position. |
Tile |
tileType | Type of the tile. |
SetWaterLevel(int2, UInt16)
Sets the water level at the given tile position.
Declaration
public void SetWaterLevel(int2 tilePosition, ushort waterLevel)
Parameters
Type | Name | Description |
---|---|---|
Unity. |
tilePosition | The tile position. |
UInt16 | waterLevel | The water level. |