Namespace TycoonTerrain.Core.TerrainOperations
Classes
OperationContext
The operation context contains references to the most important pieces of information about a Tycoon Tile map.
Structs
ClearWaterBodyOperation
This operation is responsible for removing all water that is connected to the water in the origin tile.
CopyHeightMapOperation
Copies the heightmap data of all tiles to a byte array.
CreateWaterBodyFloodOperation
This operation will create a water body using a floodfill, starting from a given position and water level. Neighbouring tiles will also be filled with water as long as any of the neighbour height are below water level.
DecreaseHeightCliffOperation
This operation will decrease the height of the tiles within the specified bounds, starting from the highest corners within that bound. Cliffs will be generated at the bounds edges.
DecreaseHeightCorner
This operation will decrease the height of the specified tile corner. Cliffs will be generated at the bounds edges.
DecreaseHeightSmoothConnectedOperation
This operation will decrease the height of the tiles within the specified bounds, starting from the highest corners within that bound. Neighbouring tiles heights will increase as necessary, as to not generate cliffs.
GetTilesInWaterBody
This operation will retrieve all tile positions that belong to the same water body. That is, all connected water tiles with the same water level.
IncreaseHeightCliffOperation
This operation will increase the height of the tiles within the specified bounds, starting from the lowest corners within that bound. Cliffs will be generated at the bounds edges.
IncreaseHeightCorner
This operation will increase the height of the specified tile corner. Cliffs will be generated at the bounds edges.
IncreaseHeightSmoothConnectedOperation
This operation will increase the height of the tiles within the specified bounds, starting from the highest corners within that bound. Neighbouring tiles heights will increase as necessary, as to not generate cliffs.
MaxHeightSmooth
OperationResult
Container for all modifications that were generated in a terrain operation.
SetHeightOperation
Sets the tile heights to a given height for all tiles within the given bounds.
SetTileTypeInBoundsOperation
Changes the terrain within a given bounds to a given tile type.
SetWaterLevelOperation
This operation sets the water level to a given level for all given tiles positions.
Interfaces
ITerrainOperation
Standard interface to apply modifications to a Tycoon Tile terrain. Any modifications done to tiles should be registered through the operation results parameter.