Interface IPlacementView
- Namespace
- MoonBark.GridPlacement.Core.Interfaces.Placement
- Assembly
- MoonBark.GridPlacement.Core.dll
Interface for a placement view that handles the visualization of placement operations. This interface is engine-agnostic, allowing different engines (Godot, Unity) to implement their own visual representation.
public interface IPlacementView
Methods
Cleanup()
Cleans up the view and unsubscribes from events.
void Cleanup()
Initialize(IEcsBackendEvents)
Initializes the view and subscribes to backend events.
void Initialize(IEcsBackendEvents events)
Parameters
eventsIEcsBackendEventsThe backend event source to subscribe to.
SetGridVisible(bool)
Sets the visibility of the grid overlay.
void SetGridVisible(bool visible)
Parameters
visibleboolTrue to show, false to hide.
SetVisible(bool)
Sets the visibility of the entire placement visualization system.
void SetVisible(bool visible)
Parameters
visibleboolTrue to show, false to hide.
UpdateGridArea(GridRect)
Updates the grid overlay area.
void UpdateGridArea(GridRect bounds)
Parameters
boundsGridRectThe bounds of the area to show the grid for.