Skip to content

five-on-it / packages/catalogue/src/region/towns / TownSocket

Interface: TownSocket ​

Defined in: packages/catalogue/src/region/towns.ts:32

A socket of a town: where a road of the region may end at it.

Properties ​

line ​

line: number

Defined in: packages/catalogue/src/region/towns.ts:36

The street line that comes out there, counted as the town counts them along that side.


point ​

point: object

Defined in: packages/catalogue/src/region/towns.ts:39

x ​

x: number

z ​

z: number


side ​

side: number

Defined in: packages/catalogue/src/region/towns.ts:34

The side of the footprint it lies on, the way out of the town (DIRS' index: 0 west, 1 east, 2 north, 3 south).


tile ​

tile: object

Defined in: packages/catalogue/src/region/towns.ts:38

The tile just outside the footprint the road ends in, and the point (the middle of the edge they share), in the game's frame.

i ​

i: number

j ​

j: number