Skip to content

canPlaceStructure beta ​

Function of @v12-engine/engine

ts
export declare function canPlaceStructure(world: World, def: UnitTypeDef, point: Vec2, player?: PlayerId, fog?: boolean): boolean;

Whether this structure can be placed here right now, see placementProblem