PlacementValidator

PlacementValidator

Core placement validation service. Contains pure business logic without Godot dependencies.

Project: GridPlacement v6.0
Layer: Core
Source: Core/_incomplete/Services/Placement/PlacementValidator.cs
Namespace: GridBuilding.Core.Services.Placement
Kind: class

Parsing Method: AST-based (Roslyn) - NOT regex

⚠️ IMPORTANT: This documentation was generated using AST parsing, not regex.

Methods

ValidatePlacement

Validates if a placeable can be placed in the given context.

Returns: bool

Parameters:

  • object placeable
  • object context

GetValidationErrors

Gets validation errors for a placeable in the given context.

Returns: List<string>

Parameters:

  • object placeable
  • object context

CanPlaceAt

Validates if a footprint can be placed at the given grid position.

Returns: bool

Parameters:

  • FootprintData footprint
  • CoreVector2I position