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
resourceIdstringThe id of the map resource.
cancellationTokenCancellationTokenCancels the open.
Returns
- ValueTask<IPluginTiledMapResource>
The map, or null when the host loads no maps or has no such resource. Dispose it when done.