Table of Contents

Class PluginChatCoordinateLinkRouter

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

Routes coordinate chat clicks to a plugin-owned destination callback.

public sealed class PluginChatCoordinateLinkRouter : IDisposable
Inheritance
PluginChatCoordinateLinkRouter
Implements
Inherited Members

Constructors

PluginChatCoordinateLinkRouter(IPluginChat, Action<PluginChatCoordinate>)

Starts routing coordinate clicks from a chat surface.

public PluginChatCoordinateLinkRouter(IPluginChat chat, Action<PluginChatCoordinate> destination)

Parameters

chat IPluginChat

The chat surface whose link clicks are watched.

destination Action<PluginChatCoordinate>

Called with the coordinate each time the player clicks one.

Exceptions

ArgumentNullException

Either argument is null.

Methods

Dispose()

Stops routing. Clicks after this reach nothing.

public void Dispose()