IndicatorCalculationResult
IndicatorCalculationResult
Result of indicator calculation containing placement positions and validity data. This is a pure Core DTO that can be used without Godot dependencies.
Project: GridPlacement v6.0
Layer: Godot
Source: Godot/Core/Data/Placement/IndicatorCalculationResult.cs
Namespace: GridBuilding.Core.Data.Placement
Kind: class
Parsing Method: AST-based (Roslyn) - NOT regex
⚠️ IMPORTANT: This documentation was generated using AST parsing, not regex.
Properties
PositionValidityMap
Dictionary mapping grid positions to their placement validity. Key: Grid position in tile coordinates Value: True if placement is valid at this position
PositionRulesMap
Dictionary mapping grid positions to applicable rule identifiers. Key: Grid position in tile coordinates Value: List of rule identifiers that apply to this position
IndicatorPositions
List of grid positions where indicators should be placed. This is the computed footprint of the object for placement validation.
IsOverallValid
Overall placement validity based on all positions.
Issues
Issues encountered during calculation.
Notes
Additional diagnostic information.
Methods
HasIssues
Gets whether the calculation has any issues.
Returns: bool
AddIssue
Adds an issue to the result.
Returns: void
Parameters:
string issue
AddNote
Adds a note to the result.
Returns: void
Parameters:
string note
GetPositionValidity
Gets validity for a specific position.
Returns: bool
Parameters:
CoreVector2I position
GetPositionRules
Gets applicable rules for a specific position.
Returns: List<string>
Parameters:
CoreVector2I position