Table of Contents

Interface IPlacementOccupancySource

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

Provides the placement validation system with occupancy and bounds data.

public interface IPlacementOccupancySource

Properties

SourceName

Gets a stable identifier describing the backing data source.

string SourceName { get; }

Property Value

string

Methods

IsInBounds(CoreVector2I)

Determines whether the specified grid position is within valid bounds.

bool IsInBounds(CoreVector2I position)

Parameters

position CoreVector2I

The grid position to inspect.

Returns

bool

true when the position is in bounds; otherwise false.

IsOccupied(CoreVector2I)

Determines whether the specified grid position is already occupied.

bool IsOccupied(CoreVector2I position)

Parameters

position CoreVector2I

The grid position to inspect.

Returns

bool

true when the position is occupied; otherwise false.