Skip to content

UnitPresetOptions

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

Options for adding a predefined multi-part unit composition.

at: HexCoordinates

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

Tile where the unit preset is anchored.


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

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

Faction used by colored unit parts.


role: "ship" | "worker" | "soldier" | "archer" | "cavalry" | "merchant" | "siege"

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

Unit role composition to create.


optional rotationSteps?: number

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

Clockwise 60-degree rotation steps.


optional style?: "accent" | "full"

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

Colored unit style.