Search Results for

    Show / Hide Table of Contents

    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
    IntBound bounds

    The bounds.

    ClearWater(TileHandle)

    Clears the water for a given tile handle.

    Declaration
    public void ClearWater(TileHandle tileHandle)
    Parameters
    Type Name Description
    TileHandle 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.Mathematics.int2 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
    Type Name Description
    IntBound bounds

    The bounds.

    Int32 height

    The height.

    SetHeights(TileHandle, int4)

    Sets the tile heights for given tile handle.

    Declaration
    public void SetHeights(TileHandle handle, int4 heights)
    Parameters
    Type Name Description
    TileHandle handle

    The tile handle.

    Unity.Mathematics.int4 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.Mathematics.int2 tilePosition

    The tile position.

    Unity.Mathematics.int4 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
    Type Name Description
    IntBound bounds

    The bounds.

    TileType tileType

    Type of the tile.

    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.Mathematics.int2 tilePosition

    The tile position.

    TileType 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.Mathematics.int2 tilePosition

    The tile position.

    UInt16 waterLevel

    The water level.

    In This Article
    Back to top Tycoon Tile documentation