IndicatorCalculationResult

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 class IndicatorCalculationResult

Summary

Result of indicator calculation containing placement positions and validity data. This is a pure Core DTO that can be used without Godot dependencies.

Metadata

Namespace: GridPlacement.Core.Data.Placement

Source File: cs/Core/Data/Placement/IndicatorCalculationResult.cs

Assembly: GridPlacement.Core

Type: class

Properties

PositionValidityMap

1
public Dictionary<CoreVector2I, bool> PositionValidityMap { get; set; }

Dictionary mapping grid positions to their placement validity. Key: Grid position in tile coordinates Value: True if placement is valid at this position


PositionRulesMap

1
public Dictionary<CoreVector2I, List<string>> PositionRulesMap { get; set; }

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

1
public List<CoreVector2I> IndicatorPositions { get; set; }

List of grid positions where indicators should be placed. This is the computed footprint of the object for placement validation.


IsOverallValid

1
public bool IsOverallValid { get; set; }

Overall placement validity based on all positions.


Issues

1
public List<string> Issues { get; set; }

Issues encountered during calculation.


Notes

1
public List<string> Notes { get; set; }

Additional diagnostic information.


Methods

HasIssues

1
public bool HasIssues()

Gets whether the calculation has any issues.


AddIssue

1
public void AddIssue(string issue)

Adds an issue to the result.


AddNote

1
public void AddNote(string note)

Adds a note to the result.


GetPositionValidity

1
public bool GetPositionValidity(CoreVector2I position)

Gets validity for a specific position.


GetPositionRules

1
public List<string> GetPositionRules(CoreVector2I position)

Gets applicable rules for a specific position.