PluginManager

Namespace: uModPlugins

Assembly: uMod.Core.dll

Inheritance Object PluginManager

Implements IPluginManager, IContextManager<IPlugin>

Summary

Manages a set of plugins

Constructors

Name

Summary

PluginManager (ILogger)

Properties

Name

Summary

Logger

Gets the logger to which this plugin manager writes

OnContextAdded

Called when a plugin has been added

OnContextRemoved

Called when a plugin has been removed

Methods

Name

Summary

AddContext (IPlugin)

Adds a plugin to this manager

AddPlugin (IPlugin)

Consistency method

CallDeprecatedHook (String, String, DateTime, Object[])

Calls a hook on all plugins of this manager and prints a deprecation warning

CallDeprecatedHook (IHookName, IHookName, DateTime, Object[])

Calls a hook on all plugins of this manager and prints a deprecation warning

CallDeprecatedHook (String, String, DateTime, Object[], IEventArgs)

Calls a hook on all plugins of this manager and prints a deprecation warning

CallHook (String, Object[])

Calls a hook on all plugins of this manager

CallHook (HookName, Object[])

Calls a hook on all plugins of this manager

CallHook (String, Object[], IEventArgs)

Calls a hook on all plugins of this manager

CallHook (String, Object[], HookEvent)

Calls a hook on all plugins of this manager

CallHook (IHookName, Object[], IEventArgs)

Calls a hook on all plugins of this manager

Exists (String)

Determines if a plugin exists by the specified name

GetPlugin (String)

Gets a plugin by name

GetPlugin<T> (String)

GetPlugins ()

Gets all plugins managed by this manager

GetPlugins<T> ()

Gets all plugins that implement the specified type

IsSubscribedToHook (String, IPlugin)

Check if the specified plugin subscribes to the specified hook

IsSubscribedToHook (String)

Checks if any plugin subscribes to the specified hook

IsSubscribedToHook (String, IPlugin, Type[])

Check if the specified plugin subscribes to the specified hook

IsSubscribedToHook (String, Type[])

Check if any hook subscribed by any plugin subscribes to the specified hook

RemoveAll ()

Removes all plugins from context manager

RemoveContext (IPlugin)

Removes a plugin from this manager

RemovePlugin (IPlugin)

Consistency method

SubscribeToHook (String, IPlugin)

Subscribes the specified plugin to the specified hook

TryGetSubscriptions (String, out IList<Plugin>)

UnsubscribeToHook (String, IPlugin)

Unsubscribes the specified plugin to the specified hook