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

1
public interface IPlacementRule

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

1
public abstract string Id { get; }

Unique identifier for the rule.


Name

1
public abstract string Name { get; }

Human-readable name for the rule.


Methods

Validate

1
GridPlacement.Core.Results.ValidationResult Validate(IPlacementContext context)

Validates the placement context against this rule.

Parameters

NameDescription
contextThe placement context containing position and other data.

Returns

A ValidationResult indicating success or failure.