Table of Contents

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

int

Placeables

Gets all placeables in the collection.

IReadOnlyCollection<object> Placeables { get; }

Property Value

IReadOnlyCollection<object>

Methods

Add(object)

Adds a placeable to the collection.

void Add(object placeable)

Parameters

placeable object

The 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

placeable object

The 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

placeable object

The placeable to remove

Returns

bool

True if the placeable was removed, false if not found