Table of Contents

Interface IPlacementPreview

Namespace
MoonBark.GridPlacement.Core.Interfaces
Assembly
MoonBark.GridPlacement.Core.dll

Interface for placement preview events exposed to the Godot layer. Used by PlacementSceneAdapter to subscribe to preview events without depending on ECS types.

public interface IPlacementPreview

Events

PreviewRemoved

Event raised when a preview is removed (ghost deselected). Parameters: (entityId)

event Action<int>? PreviewRemoved

Event Type

Action<int>

PreviewUpdated

Event raised when a preview entity is created or updated. Parameters: (entityId, placeableHash, gridPosition, isValid)

event Action<int, int, CoreVector2I, bool>? PreviewUpdated

Event Type

Action<int, int, CoreVector2I, bool>