Struct 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.
Implements
Namespace: TycoonTerrain.Core.TerrainOperations
Assembly: TycoonTerrainAssembly.dll
Syntax
public struct CreateWaterBodyFloodOperation : ITerrainOperation
Constructors
CreateWaterBodyFloodOperation(int2, Int32, Int32)
Declaration
public CreateWaterBodyFloodOperation(int2 position, int waterLevel, int waterStepsPerHeight)
Parameters
Methods
ScheduleOperation(OperationContext, ref OperationResult)
Declaration
public void ScheduleOperation(OperationContext context, ref OperationResult result)
Parameters
Type | Name | Description |
---|---|---|
Operation |
context | |
Operation |
result |