Class IndicatorSetupReport
- Namespace
- MoonBark.GridPlacement.Core.Data
- Assembly
- MoonBark.GridPlacement.Core.dll
Core POCS implementation of IndicatorSetupReport for state management. Report containing diagnostic information from indicator setup operations.
Ported from: godot/addons/grid_building/systems/placement/managers/indicator_setup_report.gd
public class IndicatorSetupReport
- Inheritance
-
IndicatorSetupReport
- Inherited Members
Constructors
IndicatorSetupReport()
Creates a new IndicatorSetupReport with empty collections.
public IndicatorSetupReport()
IndicatorSetupReport(List<IPlacementRule>, IGridMap2D?, IGridPositioner?, IIndicatorTemplate?)
Creates a new IndicatorSetupReport.
public IndicatorSetupReport(List<IPlacementRule> tileCheckRules, IGridMap2D? targetMap, IGridPositioner? positioner, IIndicatorTemplate? indicatorTemplate)
Parameters
tileCheckRulesList<IPlacementRule>The tile check rules that were applied
targetMapIGridMap2DThe target map used for setup
positionerIGridPositionerThe positioner used for setup
indicatorTemplateIIndicatorTemplateThe indicator template used
Properties
DiagnosticMetadata
Diagnostic metadata.
public Dictionary<string, object> DiagnosticMetadata { get; }
Property Value
IndicatorTemplate
The indicator template used.
public IIndicatorTemplate? IndicatorTemplate { get; }
Property Value
Issues
List of issues found during setup.
public List<string> Issues { get; }
Property Value
Positioner
The positioner used for setup.
public IGridPositioner? Positioner { get; }
Property Value
TargetMap
The target map used for setup.
public IGridMap2D? TargetMap { get; }
Property Value
TileCheckRules
The tile check rules that were applied.
public List<IPlacementRule> TileCheckRules { get; }
Property Value
Methods
AddIssue(string)
Adds an issue to the report.
public void AddIssue(string issue)
Parameters
issuestringThe issue to add
AddIssues(IEnumerable<string>)
Adds multiple issues to the report.
public void AddIssues(IEnumerable<string> issues)
Parameters
issuesIEnumerable<string>The issues to add
IsFailed()
Checks if the setup failed.
public bool IsFailed()
Returns
- bool
True if failed, false otherwise
IsSuccessful()
Checks if the setup was successful.
public bool IsSuccessful()
Returns
- bool
True if successful, false otherwise
ToString()
Gets a string representation of the report.
public override string ToString()
Returns
- string
String representation
ToVerboseString()
Gets a verbose string representation of the report.
public string ToVerboseString()
Returns
- string
Verbose string representation