Skip to content

five-on-it / apps/client/src/ui/studio/town

apps/client/src/ui/studio/town ​

The studio's edits of a grid-town spec, each a pure function from a spec to the next: a block painted with a district (taken from the one it was in), made a park or not, made a walled compound or not; a street line made an avenue or a street again; a district added or removed (its blocks going back to the first, which takes every block no other lists); the grid grown or shrunk (what falls outside it dropped). Where things stand is the generator's frame (town.py): the town centred on the origin, line i of x at x = (i − blocks[0] / 2) · blockSize, block [i, j] between lines i and i + 1 of x and j and j + 1 of z. A selection is the town's own fields, a block, a district, a compound or a street line; townSelectionOfPath finds the one an issue is about, townLayers lists them all.

Type Aliases ​

Functions ​