Skip to content

PlacementStrategy beta ​

TypeAlias of @v12-engine/engine/ai

ts
export type PlacementStrategy = (ai: Brain, type: UnitTypeDef, site: SiteRequest) => Vec2 | undefined;

A way of finding a spot for a building: the kit's by name, or a function of the game's own. Nothing (undefined) when there is no spot it likes