IPlacementRule
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
Interface for placement rules, enabling POCS testing of validation logic without Godot dependencies.
In Godot, this maps to PlacementRule (extends Resource). In C# tests, we can use MockPlacementRule.
Metadata
Namespace: GridPlacement.Core.Interfaces
Source File: cs/Core/Interfaces/IPlacementRule.cs
Assembly: GridPlacement.Core
Type: interface
Properties
Id
Unique identifier for the rule.
Name
Human-readable name for the rule.
Methods
Validate
Validates the placement context against this rule.
Parameters
| Name | Description |
|---|---|
context | The placement context containing position and other data. |
Returns
A ValidationResult indicating success or failure.