DefaultPlacementValidator
AUTO-GENERATED FILE – DO NOT EDIT MANUALLY
This page documents the supported public API surface only. Private, internal, benchmark, test, and implementation-detail types are intentionally omitted.
Declaration
Summary
Simple core implementation of IPlacementValidator used by tests and POCS placement flows. It enforces a few basic invariants:
- Coordinates must be non-negative.
placeableIdmust 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.
Metadata
Namespace: GridPlacement.Core.Validation
Source File: cs/Core/Validation/DefaultPlacementValidator.cs
Assembly: GridPlacement.Core
Type: class
Implements
IPlacementValidator
Methods
ValidatePlacement
Validates a placement request.
Parameters
| Name | Description |
|---|---|
x | The X coordinate. |
y | The Y coordinate. |
placeableId | The placeable identifier. |
Returns
true if placement is valid; otherwise false.
ValidatePlacement
Validates a placement request with an additional context payload.
Parameters
| Name | Description |
|---|---|
x | The X coordinate. |
y | The Y coordinate. |
placeableId | The placeable identifier. |
context | Additional validation context. |
Returns
true if placement is valid; otherwise false.
GetValidationResult
Gets a validation result containing any errors for the placement request.
Parameters
| Name | Description |
|---|---|
x | The X coordinate. |
y | The Y coordinate. |
placeableId | The placeable identifier. |
Returns
The validation result.
IsPlacementAllowed
Returns whether placement is allowed for the given request.
Parameters
| Name | Description |
|---|---|
x | The X coordinate. |
y | The Y coordinate. |
placeableId | The placeable identifier. |
Returns
true if placement is allowed; otherwise false.