Plugin

Namespace: uModPlugins

Assembly: uMod.Core.dll

Inheritance ObjectBasePlugin Plugin

Implements IPlugin, IResource, ISingleton, IContext, INameable, IManagedContext<IPlugin, IPluginManager>

Summary

Represents a single plugin

Properties

Name

Summary

Author

Gets the author of this plugin

Commands

Description

Gets the description of this plugin

Diagnostics

Filename

Gets the source file name, if any

HookedOnFrame

IsCorePlugin

IsLoaded

Has this plugins Init/Loaded hook been called

IsResolved

Checks if async file operations are completed during loading

Lang

Loader

Gets the PluginLoader which loaded this plugin

Name

Object

Gets the object associated with this plugin

OnAddedToManager

Called when this plugin is added to a manager

OnError

Called when this plugin has raised an error

OnException

Called when this plugin has raised an exception

OnRemovedFromManager

Called when this plugin is removed from a manager

OnResolved

Called when plugin files are resolved

OnWarning

Called when this plugin has raised an exception

Title

Gets the user-friendly title of this plugin

Version

Gets the version of this plugin

Methods

Name

Summary

_<T> (IPlayer)

Get locale of generic type and/or for specified player

CallHook (HookName, Object[], HookEvent)

Calls a local hook

HandleAddedToManager (IPluginManager)

Called when this plugin has been added to the specified manager

HandleRemovedFromManager (IPluginManager)

Called when this plugin has been removed from the specified manager

Load (IPluginLoader)

Locale<T> (IPlayer)

Get locale of generic type and/or for specified player

Locale<T> (String)

Get locale of generic type for the specified language

Locale (Type, IPlayer)

Get locale of the specified type for the specified player

Locale (Type, String)

Get locale of the specified type for the specified language

Resolve (IPluginLoader, String, String)

Resolves core plugin info and attributes

Unload (IPluginLoader)

Called when this plugin is unloaded

Static Methods

Name

Summary

GetLibrary<T> (String)

Gets the library by the specified type or name