Table of Contents

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

position CoreVector2I
placementId string
placementData PlacementData

Properties

GridPosition

Grid position for placement

public CoreVector2I GridPosition { get; }

Property Value

CoreVector2I

PlacementData

Placement data being placed

public PlacementData? PlacementData { get; }

Property Value

PlacementData

PlacementId

Placement ID for placement

public string PlacementId { get; }

Property Value

string

Methods

Create(CoreVector2I, string)

Creates a placement snapshot with minimal data

public static PlacementSnapshot Create(CoreVector2I position, string placementId)

Parameters

position CoreVector2I
placementId string

Returns

PlacementSnapshot