Table of Contents

Class UnifiedCatalogLoader

Namespace
MoonBark.GridPlacement.Core.Catalog
Assembly
MoonBark.GridPlacement.Core.dll

Unified loader for placeable catalogs from multiple sources. Provides a single entry point for loading from various engine resources and configuration files.

public class UnifiedCatalogLoader
Inheritance
UnifiedCatalogLoader
Inherited Members

Constructors

UnifiedCatalogLoader()

Creates a new unified catalog loader with default configuration.

public UnifiedCatalogLoader()

UnifiedCatalogLoader(CatalogLoadConfig)

Creates a new unified catalog loader with the specified configuration.

public UnifiedCatalogLoader(CatalogLoadConfig config)

Parameters

config CatalogLoadConfig

The load configuration.

UnifiedCatalogLoader(CatalogLoadConfig, IPlaceableLoader?)

Creates a new unified catalog loader with the specified configuration and placeable loader.

public UnifiedCatalogLoader(CatalogLoadConfig config, IPlaceableLoader? placeableLoader)

Parameters

config CatalogLoadConfig

The load configuration.

placeableLoader IPlaceableLoader

Optional engine-specific placeable loader implementation.

Methods

Load()

Loads placeables from all configured sources into a new catalog.

public IPlaceableRuntimeCatalog Load()

Returns

IPlaceableRuntimeCatalog

A new runtime catalog containing all loaded placeables.

LoadInto(IPlaceableRuntimeCatalog)

Loads placeables from all configured sources into an existing catalog.

public CatalogLoadResult LoadInto(IPlaceableRuntimeCatalog catalog)

Parameters

catalog IPlaceableRuntimeCatalog

The catalog to load placeables into.

Returns

CatalogLoadResult

Result of the load operation.