placementProblem beta
Function of @v12-engine/engine
ts
export declare function placementProblem(world: World, def: UnitTypeDef, point: Vec2, player?: PlayerId, fog?: boolean): MessageRef | undefined;Why this structure cannot be placed here right now, or undefined when it can. The ground has to be free, then the canPlace hook has its say. With fog, ground the player has never seen counts as taken too: that is for the player's own preview, which must not give away what is in the dark