Table of Contents

Class PlacementPreviewUpdatedEvent

Namespace
MoonBark.GridPlacement.Core.Events
Assembly
MoonBark.GridPlacement.Core.dll

Event raised when placement preview data changes and indicator evaluation should be refreshed.

public sealed class PlacementPreviewUpdatedEvent : ServiceEvent
Inheritance
PlacementPreviewUpdatedEvent
Inherited Members

Constructors

PlacementPreviewUpdatedEvent(object, PreviewInstanceId, int, int, CoreVector2I, IReadOnlyList<CoreVector2I>, bool)

public PlacementPreviewUpdatedEvent(object source, PreviewInstanceId previewInstanceId, int placeableHash, int rotation, CoreVector2I position, IReadOnlyList<CoreVector2I> occupiedCells, bool isPreviewValid)

Parameters

source object
previewInstanceId PreviewInstanceId
placeableHash int
rotation int
position CoreVector2I
occupiedCells IReadOnlyList<CoreVector2I>
isPreviewValid bool

Properties

IsPreviewValid

public bool IsPreviewValid { get; }

Property Value

bool

OccupiedCells

public IReadOnlyList<CoreVector2I> OccupiedCells { get; }

Property Value

IReadOnlyList<CoreVector2I>

PlaceableHash

public int PlaceableHash { get; }

Property Value

int

Position

public CoreVector2I Position { get; }

Property Value

CoreVector2I

PreviewInstanceId

public PreviewInstanceId PreviewInstanceId { get; }

Property Value

PreviewInstanceId

Rotation

public int Rotation { get; }

Property Value

int