hex-world
    Preparing search index...

    Interface ScatterPlacementRules

    Where a definition may spawn, beyond allowedTerrains. Resolved into the definition's canSpawnAt by resolveScatterDefinition.

    interface ScatterPlacementRules {
        minElevation?: number;
        maxElevation?: number;
        shore?: boolean;
        avoidRivers?: boolean;
    }
    Index

    Properties

    minElevation?: number

    Lowest cell elevation, inclusive.

    maxElevation?: number

    Highest cell elevation, inclusive.

    shore?: boolean

    Only cells with a liquid neighbour — palms on a beach, reeds by a lake.

    avoidRivers?: boolean

    Skip cells a river runs through.