Class NoOpPluginMapRegistry
- Namespace
- AcDream.Plugin.Abstractions
- Assembly
- AcDream.Plugin.Abstractions.dll
The map registry of a host that shows no maps.
public sealed class NoOpPluginMapRegistry : IPluginMapRegistry
- Inheritance
-
NoOpPluginMapRegistry
- Implements
- Inherited Members
Remarks
Accepts every call and shows nothing; what is set is not kept. No client shows maps yet, so every host answers with this.
Properties
Instance
The one shared instance.
public static NoOpPluginMapRegistry Instance { get; }
Property Value
Methods
AddMap(string, PluginMapViewport)
Adds a map. Dispose the returned surface to remove it.
public IPluginMapSurface AddMap(string mapId, PluginMapViewport initialViewport)
Parameters
mapIdstringThe map's name, unique within the plugin that adds it.
initialViewportPluginMapViewportThe part of the world the map shows to begin with.
Returns
- IPluginMapSurface
The surface the plugin sets the map's image, markers and route through.