Interface IPlaceableCollection
- Namespace
- MoonBark.GridPlacement.Core.Data
- Assembly
- MoonBark.GridPlacement.Core.dll
Interface for managing collections of placeable objects. Provides abstraction for placeable data management and operations.
public interface IPlaceableCollection
Properties
Count
Gets the count of placeables in the collection.
int Count { get; }
Property Value
Placeables
Gets all placeables in the collection.
IReadOnlyCollection<object> Placeables { get; }
Property Value
Methods
Add(object)
Adds a placeable to the collection.
void Add(object placeable)
Parameters
placeableobjectThe placeable to add
Clear()
Clears all placeables from the collection.
void Clear()
Contains(object)
Checks if the collection contains a specific placeable.
bool Contains(object placeable)
Parameters
placeableobjectThe placeable to check for
Returns
- bool
True if the placeable is in the collection
Remove(object)
Removes a placeable from the collection.
bool Remove(object placeable)
Parameters
placeableobjectThe placeable to remove
Returns
- bool
True if the placeable was removed, false if not found