Table of Contents

Interface IPluginMapResourceCatalog

Namespace
AcDream.Plugin.Abstractions
Assembly
AcDream.Plugin.Abstractions.dll

Loads tiled maps from declared plugin resources.

public interface IPluginMapResourceCatalog

Methods

OpenMapAsync(string, CancellationToken)

Opens a tiled map among the plugin's resources.

ValueTask<IPluginTiledMapResource?> OpenMapAsync(string resourceId, CancellationToken cancellationToken = default)

Parameters

resourceId string

The id of the map resource.

cancellationToken CancellationToken

Cancels the open.

Returns

ValueTask<IPluginTiledMapResource>

The map, or null when the host loads no maps or has no such resource. Dispose it when done.