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
Methods
IsInBounds(CoreVector2I)
Determines whether the specified grid position is within valid bounds.
bool IsInBounds(CoreVector2I position)
Parameters
positionCoreVector2IThe grid position to inspect.
Returns
- bool
truewhen the position is in bounds; otherwisefalse.
IsOccupied(CoreVector2I)
Determines whether the specified grid position is already occupied.
bool IsOccupied(CoreVector2I position)
Parameters
positionCoreVector2IThe grid position to inspect.
Returns
- bool
truewhen the position is occupied; otherwisefalse.