Class PlacementReport
- Namespace
- MoonBark.GridPlacement.Core.Results
- Assembly
- MoonBark.GridPlacement.Core.dll
Represents a placement report containing validation results and placement data.
This class contains information about a placement operation including validation results, the placeable being placed, and other contextual data.
public class PlacementReport
- Inheritance
-
PlacementReport
- Inherited Members
Constructors
PlacementReport(IOwner?, Placeable?, CoreVector2I?, ManipulationAction)
Initializes a new instance of the PlacementReport class.
public PlacementReport(IOwner? owner, Placeable? placeable, CoreVector2I? position, ManipulationAction action)
Parameters
ownerIOwnerThe owner performing the placement.
placeablePlaceableThe placeable being placed.
positionCoreVector2I?The placement position.
actionManipulationActionThe manipulation action.
Properties
Action
Gets the manipulation action being performed.
public ManipulationAction Action { get; }
Property Value
IndicatorsReport
Optional indicator setup diagnostics associated with this report.
public IndicatorSetupReport? IndicatorsReport { get; set; }
Property Value
IsSuccessful
Gets whether the placement is successful.
public bool IsSuccessful { get; }
Property Value
Issues
Gets the list of placement issues.
public List<string> Issues { get; }
Property Value
Notes
Supplemental notes for diagnostics.
public List<string> Notes { get; }
Property Value
Owner
Gets the owner who performed the placement.
public IOwner? Owner { get; }
Property Value
Placeable
Gets the placeable being placed.
public Placeable? Placeable { get; }
Property Value
Placed
Legacy alias used by older workflow code paths.
public Placeable? Placed { get; set; }
Property Value
Position
Gets the position where the placeable is being placed.
public CoreVector2I? Position { get; }
Property Value
- CoreVector2I?
StructuredIssues
public List<PlacementValidationIssue> StructuredIssues { get; }
Property Value
Methods
AddIssue(string)
Adds an issue to the placement report.
public void AddIssue(string issue)
Parameters
issuestringThe issue to add.
AddNote(string)
public void AddNote(string note)
Parameters
notestring
AddStructuredIssue(PlacementValidationIssue)
Adds a structured validation issue to the placement report.
public void AddStructuredIssue(PlacementValidationIssue issue)
Parameters
issuePlacementValidationIssueThe structured issue to add.
GetIssues()
Gets all placement issues.
public List<string> GetIssues()
Returns
IsFailed()
public bool IsFailed()
Returns
ToVerboseString()
public string ToVerboseString()