PlaceableCollection

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

This page documents the supported public API surface only. Private, internal, benchmark, test, and implementation-detail types are intentionally omitted.

Declaration

1
public class PlaceableCollection : IPlaceableCollection

Summary

Collection of placeable objects with metadata and categories

Metadata

Namespace: GridPlacement.Core.Data

Source File: cs/Core/Data/Placeable/PlaceableCollection.cs

Assembly: GridPlacement.Core

Type: class

Implements

  • IPlaceableCollection

Properties

Metadata

1
public PlaceableMetadata Metadata { get; set; }

Collection metadata


Categories

1
public Dictionary<string, List<IPlaceable>> Categories { get; set; }

Categories in this collection


Placeables

1
public IReadOnlyCollection<object> Placeables { get; }

All placeables in the collection


Count

1
public int Count { get; }

Number of placeables in the collection


Methods

Add

1
public void Add(object placeable)

Adds a placeable to the collection


Remove

1
public bool Remove(object placeable)

Removes a placeable from the collection


Clear

1
public void Clear()

Clears all placeables from the collection


Contains

1
public bool Contains(object placeable)

Checks if the collection contains a specific placeable


GetAllPlaceables

1
public IEnumerable<IPlaceable> GetAllPlaceables()

Gets all placeables as IPlaceable objects


GetPlaceablesByCategory

1
public IEnumerable<IPlaceable> GetPlaceablesByCategory(string category)

Gets placeables by category


FindById

1
public IPlaceable? FindById(string id)

Finds a placeable by ID


FindByName

1
public IEnumerable<IPlaceable> FindByName(string name)

Finds placeables by name