Class PreviewCalculationResult
- Namespace
- MoonBark.GridPlacement.Core.Data.Placement
- Assembly
- MoonBark.GridPlacement.Core.dll
Result of preview calculation containing footprint and visual data. This is a pure Core DTO that can be used without Godot dependencies.
public class PreviewCalculationResult
- Inheritance
-
PreviewCalculationResult
- Inherited Members
Properties
Bounds
Bounding rectangle of the preview in grid coordinates.
public CoreRect2I Bounds { get; set; }
Property Value
- CoreRect2I
FootprintData
The footprint data used for this calculation.
public FootprintData FootprintData { get; set; }
Property Value
FootprintPositions
Calculated footprint positions for the preview.
public List<CoreVector2I> FootprintPositions { get; set; }
Property Value
- List<CoreVector2I>
IsValidPlacement
Whether the preview placement is valid at the calculated position.
public bool IsValidPlacement { get; set; }
Property Value
Issues
Issues encountered during calculation.
public List<string> Issues { get; set; }
Property Value
Notes
Additional diagnostic information.
public List<string> Notes { get; set; }
Property Value
ShapeData
Shape configuration for the preview.
public PreviewShapeData ShapeData { get; set; }
Property Value
TintColor
Recommended color tint for the preview.
public CoreColor TintColor { get; set; }
Property Value
- CoreColor
Transparency
Recommended transparency for the preview (0.0 to 1.0).
public float Transparency { get; set; }
Property Value
Methods
AddIssue(string)
Adds an issue to the result.
public void AddIssue(string issue)
Parameters
issuestring
AddNote(string)
Adds a note to the result.
public void AddNote(string note)
Parameters
notestring
HasIssues()
Gets whether the calculation has any issues.
public bool HasIssues()