Skip to content

AddHarborRecipeStep

Defined in: packages/declarative-hex-worlds/src/scenario/recipe.ts:350

Recipe step that places a harbor composition.

action: "addHarbor"

Defined in: packages/declarative-hex-worlds/src/scenario/recipe.ts:352

Discriminator for harbor placement.


at: HexCoordinates

Defined in: packages/declarative-hex-worlds/src/gameboard/plan.ts:390

Coast tile where the harbor is anchored.

HarborOptions.at


facing: HexEdgeIndex

Defined in: packages/declarative-hex-worlds/src/gameboard/plan.ts:392

Edge facing adjacent water.

HarborOptions.facing


faction: "blue" | "green" | "red" | "yellow"

Defined in: packages/declarative-hex-worlds/src/gameboard/plan.ts:394

Faction color for the harbor.

HarborOptions.faction


optional includeProps?: boolean

Defined in: packages/declarative-hex-worlds/src/gameboard/plan.ts:398

Whether to add adjacent boat/anchor props.

HarborOptions.includeProps


optional kind?: HarborKind

Defined in: packages/declarative-hex-worlds/src/gameboard/plan.ts:396

Harbor structure variant.

HarborOptions.kind


optional rotationSteps?: number

Defined in: packages/declarative-hex-worlds/src/gameboard/plan.ts:400

Clockwise 60-degree rotation steps. Defaults to facing.

HarborOptions.rotationSteps