Search Results for

    Show / Hide Table of Contents

    Struct RiverSettings

    Holds the settings used for river generation.

    Namespace: Global
    Assembly: cs.temp.dll.dll
    Syntax
    public struct RiverSettings

    Constructors

    RiverSettings(TerrainGenerator.TerrainType)

    Constructor for RiverSettings. Responsible for setting all the varables randomly (except the terrain type).

    Declaration
    public RiverSettings(TerrainGenerator.TerrainType tType)
    Parameters
    Type Name Description
    TerrainGenerator.TerrainType tType

    The type of terrain to be generated.

    RiverSettings(TerrainGenerator.TerrainType, Boolean, RiverGenerator.NumberOfRivers, Boolean)

    Constructor for RiverSettings. Responsible for setting all the varables from user options.

    Declaration
    public RiverSettings(TerrainGenerator.TerrainType tType, bool rGenerationEnabled, RiverGenerator.NumberOfRivers rNum, bool intersectionsEnabled)
    Parameters
    Type Name Description
    TerrainGenerator.TerrainType tType

    The type of terrain to be generated.

    Boolean rGenerationEnabled

    Turn on or off the creation of rivers.

    RiverGenerator.NumberOfRivers rNum

    The number of rivers relative to the remaining terrain size.

    Boolean intersectionsEnabled

    Turn on or off whether rivers are able to cross paths.

    Fields

    intersectionsEnabled

    Turn on or off whether rivers are able to cross paths.

    Declaration
    public readonly bool intersectionsEnabled
    Field Value
    Type Description
    Boolean

    rGenerationEnabled

    Turn on or off the creation of rivers.

    Declaration
    public readonly bool rGenerationEnabled
    Field Value
    Type Description
    Boolean

    rNum

    The number of rivers relative to the remaining terrain size.

    Declaration
    public readonly RiverGenerator.NumberOfRivers rNum
    Field Value
    Type Description
    RiverGenerator.NumberOfRivers

    tType

    The type of terrain to be generated.

    Declaration
    public readonly TerrainGenerator.TerrainType tType
    Field Value
    Type Description
    TerrainGenerator.TerrainType
    In This Article
    Back to top Project documentation