Class PlaceableCollectionConverter
- Namespace
- MoonBark.GridPlacement.Core.Catalog
- Assembly
- MoonBark.GridPlacement.Core.dll
Converts PlaceableCollection data structures to runtime Placeable objects. Bridges the gap between YAML/JSON configuration and the runtime catalog.
public static class PlaceableCollectionConverter
- Inheritance
-
PlaceableCollectionConverter
- Inherited Members
Methods
AddToCatalog(PlaceableCollection, IPlaceableRuntimeCatalog)
Converts a PlaceableCollection and adds all placeables to a runtime catalog.
public static void AddToCatalog(PlaceableCollection collection, IPlaceableRuntimeCatalog catalog)
Parameters
collectionPlaceableCollectionThe collection to convert.
catalogIPlaceableRuntimeCatalogThe catalog to add placeables to.
ToCatalog(PlaceableCollection)
Converts a PlaceableCollection to a new runtime catalog.
public static IPlaceableRuntimeCatalog ToCatalog(PlaceableCollection collection)
Parameters
collectionPlaceableCollectionThe collection to convert.
Returns
- IPlaceableRuntimeCatalog
A new runtime catalog containing all placeables from the collection.
ToPlaceables(PlaceableCollection)
Converts a PlaceableCollection to a list of runtime Placeable objects.
public static List<Placeable> ToPlaceables(PlaceableCollection collection)
Parameters
collectionPlaceableCollectionThe collection to convert.