threejs-worldgen
    Preparing search index...

    Interface SizeClass

    What a size class looks like.

    interface SizeClass {
        arms: number;
        districts: DistrictShares;
        landmarks: Record<Landmark, number>;
        mainStreet: number;
        maxFloors: number;
        oldTown: RoadSurface | null;
        population: [number, number];
        radius: [number, number];
        roads: DeepPartial<RoadOptions>;
        style: RoadStyle;
        styles: DeepPartial<Record<District, DistrictStyle>>;
        surfaces: Record<RoadType, RoadSurface>;
    }
    Index
    arms: number

    Arterial roads leaving the centre.

    districts: DistrictShares

    District shares.

    landmarks: Record<Landmark, number>

    Civic landmarks near the centre: how many of each (a fraction is the chance of one more).

    mainStreet: number

    Downtown is a strip this many metres either side of the main street (the arterial through the centre), districts.downtown × radius long each way; 0 = a disc around the centre.

    maxFloors: number

    Tallest building, floors.

    oldTown: RoadSurface | null

    Surface of the side streets in the downtown core (null = same as elsewhere).

    population: [number, number]

    Population range of the class; a settlement's radius follows its population through it (log scale).

    radius: [number, number]

    Radius range, metres, from the smallest to the largest population of the class.

    Road rules of this class, over the roads defaults (your own roads input still wins).

    style: RoadStyle

    Default street layout.

    District rules of this class, over the districts.styles defaults (your own input still wins).

    surfaces: Record<RoadType, RoadSurface>

    Road surface per road class.