Skip to content

PlacementName beta ​

TypeAlias of @v12-engine/engine/ai

ts
export type PlacementName = 'nearHome' | 'byResource' | 'atEdge' | 'behind' | 'cluster' | `cluster:${string}` | `onLayer:${string}`;

The kit's placement strategies, by name: nearHome (rings around the place, keeping the way to the mine clear), byResource (on the nearest deposit it is built on: a mine), atEdge (at the edge of the base towards the enemy, for a tower), behind (away from the enemy, for supply), cluster (beside another of its type, barracks by barracks; cluster:<type> beside another type), onLayer:<layer> (where the whole footprint is on a layer of cells the game paints: onLayer:blight for a race that builds on blight)