Skip to content

five-on-it / apps/client/src/ui/studio/frame / specPoint

Function: specPoint() ​

specPoint(point, spec, plan, depth?): Pt | undefined

Defined in: apps/client/src/ui/studio/frame.ts:145

Where a spec's point stands in the game's frame, as the solver puts it; undefined when the spec or the plan does not say (a grid, a hill or a road it names is not there).

Parameters ​

point ​

unknown

spec ​

climate? ​

"none" | "temperate" | "meadow" | "forest" | "alpine" | "farmland" | "steppe" | "desert" | "autumn" | "coast" = ...

clock? ​

{ pace?: number; start?: string; } = ...

clock.pace? ​

number = ...

clock.start? ​

string = ...

districts ​

object[] = ...

grids? ​

object[] = ...

hills? ​

object[] = ...

name ​

string = ...

parks? ​

object[] = ...

places? ​

object[] = ...

roads? ​

object[] = ...

roundabouts? ​

object[] = ...

seed? ​

number = ...

size? ​

number = ...

spawn ​

{ near?: [number, number] | { at: [number, number]; grid: string; } | { arm: number; roundabout: string; } | { at: number | "start" | "end"; road: string; } | { hill: string; }; road: string; } = ...

spawn.near? ​

[number, number] | { at: [number, number]; grid: string; } | { arm: number; roundabout: string; } | { at: number | "start" | "end"; road: string; } | { hill: string; } = ...

spawn.road ​

string = ...

template ​

"city" = ...

water? ​

object[] = ...

plan ​

CityPlan | undefined

depth? ​

number = 0

Returns ​

Pt | undefined