threejs-worldgen
    Preparing search index...

    Interface CitySite

    A settlement of the population model, as a City to build.

    interface CitySite {
        radius: number;
        road: { points: [number, number][]; type: RoadType } | null;
        seed: number;
        settlement: Settlement;
        size: SettlementSize;
        x: number;
        z: number;
    }
    Index
    radius: number

    Radius, metres.

    road: { points: [number, number][]; type: RoadType } | null

    Farmsteads, when planned with a road network: the nearest road (frame-local polyline) and its class, for farm.road and farm.roadType.

    seed: number

    Seed for the city's own generation (stable per H3 cell and population seed).

    settlement: Settlement

    The population model's settlement.

    Size class.

    x: number

    Centre (frame-local).

    z: number

    Centre (frame-local).