Table of Contents

Interface IPlacementContext

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

Core interface for placement context operations. Provides access to grid configuration without engine-specific dependencies. This interface is engine-agnostic and can be implemented by Godot, Unity, or other engine adapters.

public interface IPlacementContext

Properties

Catalog

Gets the runtime catalog for placeable definitions.

IPlaceableRuntimeCatalog Catalog { get; }

Property Value

IPlaceableRuntimeCatalog

GridConfiguration

Gets the configuration object dictating formal grid dimensions.

IGridConfiguration GridConfiguration { get; }

Property Value

IGridConfiguration

InputBridge

Gets the input bridge for executing placement, selection, and demolition operations.

IPlacementInputBridge? InputBridge { get; }

Property Value

IPlacementInputBridge

Logger

Gets the logger for diagnostic output.

IFrameworkLogger? Logger { get; }

Property Value

IFrameworkLogger

ModeService

Gets the mode service for managing placement modes (place, move, demolish, etc.).

IModeService? ModeService { get; }

Property Value

IModeService

PlacementView

Gets or sets the placement view for visualization.

IPlacementView? PlacementView { get; set; }

Property Value

IPlacementView

TerrainProvider

Gets the terrain provider for environment-aware placement.

ITerrainProvider? TerrainProvider { get; }

Property Value

ITerrainProvider

Methods

Dispose()

Disposes of resources and cleans up event subscriptions.

void Dispose()