• Manual
  • Scripting API
  • Asset Store
  • TycoonTerrain.Core.TerrainOperations
  • CreateWaterBodyFloodOperation
Search Results for

    Show / Hide Table of Contents
    • TycoonTerrain.Components
      • TycoonTileRendererBase
    • TycoonTerrain.Core
      • BoundsContainer
      • BoundsReservationRegister
      • CallbackHandle
      • CallbacksRegister
      • CardinalDirection
      • ChunkSet
      • ConstructableDefinition
      • CornerIndex
      • Extensions
      • IChunkListener
      • IntBound
      • LandTile
      • OnBoundsChangeCallback
      • PlacementValidResult
      • SurfaceOverlayMesh
      • TerrainGrid
      • TerrainModifiedEvent
      • TerrainSelection
      • TerrainTypeCollectionAsset
      • TerrainTypeDefinition
      • TerrainTypeTable
      • TileCorner
      • TileHandle
      • TilePosition
      • TileType
      • TycoonTileMap
      • TycoonTileRaycastHit
    • TycoonTerrain.Core.Generation
      • TerrainGenerationJob
    • TycoonTerrain.Core.Rendering
      • ChunkMesh
      • IMesh
      • NativeMeshData
      • RenderTerrainCliffChunkJob
      • RenderTerrainSurfaceChunkJob
      • RenderWaterChunkJob
      • RenderWaterCliffChunkJob
      • SubMeshTriangle
    • TycoonTerrain.Core.TerrainOperations
      • ClearWaterBodyOperation
      • CopyHeightMapOperation
      • CreateWaterBodyFloodOperation
      • DecreaseHeightCliffOperation
      • DecreaseHeightCorner
      • DecreaseHeightSmoothConnectedOperation
      • GetTilesInWaterBody
      • IncreaseHeightCliffOperation
      • IncreaseHeightCorner
      • IncreaseHeightSmoothConnectedOperation
      • ITerrainOperation
      • MaxHeightSmooth
      • OperationContext
      • OperationResult
      • SetHeightOperation
      • SetTileTypeInBoundsOperation
      • SetWaterLevelOperation
    • TycoonTerrain.Previewers
      • BuildingToolPreviewer
      • PreviewMeshes
      • TerrainPainterPreviewer
      • TerrainSelectionPreviewer
      • ToolPreviewerBase<T>
    • TycoonTerrain.Tools
      • BuildingTool
      • PainterTool
      • SceneryTool
      • SelectionToolBase
      • SnappingMode
      • TerraformingTool
      • ToolBase
      • WaterTool

    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
    ITerrainOperation
    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
    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
    Type Name Description
    OperationContext context
    OperationResult result

    Implements

    ITerrainOperation

    See Also

    ITerrainOperation
    In This Article
    • Constructors
      • CreateWaterBodyFloodOperation(int2, Int32, Int32)
    • Methods
      • ScheduleOperation(OperationContext, ref OperationResult)
    • Implements
    • See Also
    Back to top Tycoon Tile documentation