IIndicatorCalculationService
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
Core service interface for calculating placement indicators. This interface contains pure business logic without Godot dependencies.
Metadata
Namespace: GridPlacement.Core.Interfaces.Placement
Source File: cs/Core/Interfaces/Placement/IIndicatorCalculationService.cs
Assembly: GridPlacement.Core
Type: interface
Methods
CalculateIndicators
Calculates indicator positions and validity for a given footprint.
Parameters
| Name | Description |
|---|---|
footprint | The footprint data to calculate indicators for |
gridPosition | The grid position where the footprint is placed |
rules | List of placement rules to apply |
existingOccupancy | Current grid occupancy data |
Returns
Calculation result with indicator positions and validity
CalculateIndicatorCount
Calculates the number of indicators that would be created without creating them. Useful for performance optimization and UI preview.
Parameters
| Name | Description |
|---|---|
footprint | The footprint data |
gridPosition | The grid position |
rules | List of placement rules to apply |
existingOccupancy | Current grid occupancy data |
Returns
Number of indicators that would be created
ValidatePlacement
Validates that a footprint can be placed at the given position.
Parameters
| Name | Description |
|---|---|
footprint | The footprint data to validate |
gridPosition | The grid position to validate |
rules | List of placement rules to apply |
existingOccupancy | Current grid occupancy data |
Returns
True if placement is valid
GetFootprintPositions
Gets the footprint positions for a given footprint at a grid position.
Parameters
| Name | Description |
|---|---|
footprint | The footprint data |
gridPosition | The grid position |
Returns
List of grid positions occupied by the footprint