Class PlacementSnapshot
- Namespace
- MoonBark.GridPlacement.Core.Data
- Assembly
- MoonBark.GridPlacement.Core.dll
Immutable snapshot data for placement operations
public class PlacementSnapshot
- Inheritance
-
PlacementSnapshot
- Inherited Members
Constructors
PlacementSnapshot(CoreVector2I, string, PlacementData?)
public PlacementSnapshot(CoreVector2I position, string placementId, PlacementData? placementData = null)
Parameters
positionCoreVector2IplacementIdstringplacementDataPlacementData
Properties
GridPosition
Grid position for placement
public CoreVector2I GridPosition { get; }
Property Value
- CoreVector2I
PlacementData
Placement data being placed
public PlacementData? PlacementData { get; }
Property Value
PlacementId
Placement ID for placement
public string PlacementId { get; }
Property Value
Methods
Create(CoreVector2I, string)
Creates a placement snapshot with minimal data
public static PlacementSnapshot Create(CoreVector2I position, string placementId)
Parameters
positionCoreVector2IplacementIdstring