PluginLoader

Namespace: uModPlugins

Assembly: uMod.Core.dll

Inheritance Object PluginLoader

Implements IPluginLoader

Summary

Represents a loader for a certain type of plugin

Properties

Name

Summary

CorePlugins

Stores the names of core plugins which should never be unloaded

FileExtension

Stores the plugin file extension which this loader supports

HasLoadedCorePlugins

Check if this loader has attempted to load core plugins

LoadedPlugins

Optional loaded plugin instances used by loaders which need to be notified before a plugin is unloaded

LoadingPlugins

Stores the names of plugins which are currently loading asynchronously

PluginErrors

Stores the last error a plugin had while loading

PluginFailureReasons

Stores the reason the plugin failed while loading

Methods

Name

Summary

GetFiles (DirectoryInfo, String, Func<String, Boolean>)

Load (String, String)

Loads a plugin with the specified name

Load (String)

Load a plugin with the specified name

Load (IPlugin, Boolean)

Load specified plugin

LoadCorePlugins ()

Load specified plugin loader

plugin_OnResolved (IPlugin)

PluginLoaded (IPlugin)

Complete plugin loading sequence

PluginUnloaded (IPlugin)

Unloads the specified plugin

Reload (String, String)

Reloads a plugin given the specified name, implemented by plugin loaders which support reloading plugins

Reload (String)

Reloads a plugin given the specified name, implemented by plugin loaders which support reloading plugins

Scan ()

Scans the loader for available plugins

ScanDirectory (String)

Scans the specified directory and returns a set of plugin names for plugins that this loader can load

Unloading (IPlugin)