DefaultPlacementValidator

DefaultPlacementValidator

Simple core implementation of used by tests and POCS placement flows. It enforces a few basic invariants:

  • Coordinates must be non-negative.
  • placeableId must be non-empty. More complex rule and bounds logic should live in higher-level validators or rule engines; this type is intentionally minimal and engine-agnostic.

Project: GridPlacement v6.0
Layer: Core
Source: Core/Validation/DefaultPlacementValidator.cs
Namespace: GridBuilding.Core.Validation
Kind: class

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

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

Methods

ValidatePlacement

Validates a placement request.

Returns: bool

Parameters:

  • float x
  • float y
  • string placeableId

ValidatePlacement

Validates a placement request with an additional context payload.

Returns: bool

Parameters:

  • float x
  • float y
  • string placeableId
  • Dictionary<string, object> context

GetValidationResult

Gets a validation result containing any errors for the placement request.

Returns: ValidationResult

Parameters:

  • float x
  • float y
  • string placeableId

IsPlacementAllowed

Returns whether placement is allowed for the given request.

Returns: bool

Parameters:

  • float x
  • float y
  • string placeableId