Skip to content

AddFortificationRecipeStep

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

Recipe step that places a wall or fence with fortification metadata.

action: "addFortification"

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

Discriminator for fortification placement.


at: HexCoordinates

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

Tile where the segment is anchored.

FortificationOptions.at


optional enclosureId?: string

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

Optional stable id for a multi-segment enclosure.

FortificationOptions.enclosureId


optional facing?: HexEdgeIndex

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

Edge the segment faces; also used as the default rotation.

FortificationOptions.facing


optional material?: FortificationMaterial

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

Material family. Defaults to wall.

FortificationOptions.material


optional rotationSteps?: number

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

Clockwise 60-degree rotation steps. Overrides facing when provided.

FortificationOptions.rotationSteps


optional scale?: number

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

Uniform render scale.

FortificationOptions.scale


optional segment?: FortificationSegment

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

Segment visual shape. Defaults to straight.

FortificationOptions.segment