Table of Contents

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

collection PlaceableCollection

The collection to convert.

catalog IPlaceableRuntimeCatalog

The catalog to add placeables to.

ToCatalog(PlaceableCollection)

Converts a PlaceableCollection to a new runtime catalog.

public static IPlaceableRuntimeCatalog ToCatalog(PlaceableCollection collection)

Parameters

collection PlaceableCollection

The 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

collection PlaceableCollection

The collection to convert.

Returns

List<Placeable>

List of Placeable objects for the runtime catalog.