Class NoOpPluginMapResourceCatalog
- Namespace
- AcDream.Plugin.Abstractions
- Assembly
- AcDream.Plugin.Abstractions.dll
Inert map resource provider for headless hosts.
public sealed class NoOpPluginMapResourceCatalog : IPluginMapResourceCatalog
- Inheritance
-
NoOpPluginMapResourceCatalog
- Implements
- Inherited Members
Properties
Instance
The one shared instance.
public static NoOpPluginMapResourceCatalog Instance { get; }
Property Value
Methods
OpenMapAsync(string, CancellationToken)
Opens a tiled map among the plugin's resources.
public 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.