Class MedievalCitySpec
- Namespace
- GrindFest.Generation
- Assembly
- GrindFest.dll
POCO spec for a rectangular walled medieval city. Consumed by MedievalCityGenerator; produced by CityBlueprints.
Layout: rectangular wall (width × depth), corner towers, evenly-spaced gates on the long edges. Interior is divided by a street network running gate-to-gate; remaining space is BSP-subdivided into plots and filled with modular houses, with reserved anchor slots for landmarks (market, fountain, statue, forge, etc).
public class MedievalCitySpec
- Inheritance
-
objectMedievalCitySpec
Fields
- AnchorSlots
Optional handcrafted landmark slots (overrides plot generation).
- BattlementsYOffset
Where to put battlement caps on top of walls.
- HouseModule
House wall module length (m). Synty default = 2.5m.
- HouseStoreyHeight
House wall height per storey (m). Synty default = 2.5m.
- MainStreetWidth
Width of main streets carved through the city (meters).
- MaxPlotSize
Maximum plot dimension before forcing a split.
- MinPlotSize
Smallest acceptable plot dimension after BSP splits.
- PlotMargin
Empty perimeter strip around each house plot (gardens / fence).
- PlotProps
Small ambient props dropped near plot corners (barrels, crates, sacks, wood piles, hay bales, baskets, fences, etc.). Sprinkled by
BuildPlotPropsafter each house is placed.
- PresetHouseChance
Chance a plot uses a preset prefab house (vs modular assembly). Currently 0 — modular-only by design.
- PresetHouses
Pool of preset house variants (unused while PresetHouseChance==0).
- SideStreetWidth
Side-street width inside plot blocks.
- TileRoofChance
Chance of using tile roof vs thatch.
- TownSquareRadius
Town square radius (clearing in the middle).
- TwoStoreyChance
Chance of a two-storey house when plot allows it.
- WallCornerSize
Castle corner module footprint. Synty L corner = 5.25m.
- WallDepth
City depth (Z axis, meters). Snapped to wall module size.
- WallModuleLength
Castle wall module footprint (X). Synty default = 5m.
- WallWidth
City width (X axis, meters). Snapped to wall module size.