five-on-it / packages/world/src/level / DistrictDef
Interface: DistrictDef
Defined in: packages/world/src/level.ts:635
A district of the level (GAME_DESIGN §5.2): a region of the city with a name, a title the minimap shows, the satire theme it was built in and the pedestrians' roles that theme suggests, over one or more areas (a generated town's blocks). A district is what the generator built there; nothing in the simulation depends on it, the crowd may read its roles.
Properties
areas
areas:
DistrictArea[]
Defined in: packages/world/src/level.ts:645
The ground it covers, one area at least.
name
name:
string
Defined in: packages/world/src/level.ts:637
Its name, the prefix of its places (<district>.<archetype>_<n>).
pedestrians?
optionalpedestrians?:Record<string,number>
Defined in: packages/world/src/level.ts:643
The pedestrians' roles its theme suggests (civilian, commuter, jogger, shopkeeper), each with its weight; absent for no preference.
theme?
optionaltheme?:string
Defined in: packages/world/src/level.ts:641
The satire theme it was built in (tech-campus, old-town…); absent for a plain district.
title
title:
string
Defined in: packages/world/src/level.ts:639
What the minimap writes over it.