Skip to content

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

Function: gridOf() ​

gridOf(spec): object

Defined in: apps/client/src/ui/studio/town.ts:36

The town's grid: blocks along x and z, a block's size (m), a street's width (m).

Parameters ​

spec ​

TownSpec

Returns ​

object

nx ​

nx: number

nz ​

nz: number

size ​

size: number

street ​

street: number