threejs-worldgen
    Preparing search index...

    Interface CityData

    Everything another package needs to put props, vehicles and people into a settlement. JSON-safe.

    interface CityData {
        architecture: ArchitectureName;
        buildings: BuildingData[];
        center: [number, number];
        farm: Farm | null;
        lots: LotData[];
        population: number;
        radius: number;
        roads: RoadNetworkData;
        style: RoadStyle;
    }
    Index
    architecture: ArchitectureName

    Architecture.

    buildings: BuildingData[]

    Buildings.

    center: [number, number]

    Centre (frame-local).

    farm: Farm | null

    A farmstead's yard, fields (corn ones for a crop renderer), tractor spots and props; null for other settlements.

    lots: LotData[]

    Lots.

    population: number

    Estimated residents.

    radius: number

    Radius, metres.

    Road network.

    style: RoadStyle

    Street layout.