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