UnitPresetOptions
Defined in: packages/declarative-hex-worlds/src/gameboard/plan.ts:634
Options for adding a predefined multi-part unit composition.
Extended by
Section titled “Extended by”Properties
Section titled “Properties”at:
HexCoordinates
Defined in: packages/declarative-hex-worlds/src/gameboard/plan.ts:636
Tile where the unit preset is anchored.
faction
Section titled “faction”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.
rotationSteps?
Section titled “rotationSteps?”
optionalrotationSteps?:number
Defined in: packages/declarative-hex-worlds/src/gameboard/plan.ts:644
Clockwise 60-degree rotation steps.
style?
Section titled “style?”
optionalstyle?:"accent"|"full"
Defined in: packages/declarative-hex-worlds/src/gameboard/plan.ts:640
Colored unit style.