Class Loader
Used to handle plugins.
public class Loader
- Inheritance
-
Loader
- Inherited Members
- Extension Methods
Constructors
Loader()
Initializes a new instance of the Loader class.
public Loader()
Properties
Dependencies
Gets plugin dependencies.
public static List<Assembly> Dependencies { get; }
Property Value
Deserializer
Gets or sets the deserializer for configs and translations.
public static IDeserializer Deserializer { get; set; }
Property Value
- IDeserializer
Locations
Gets a dictionary containing the file paths of assemblies.
public static Dictionary<Assembly, string> Locations { get; }
Property Value
Plugins
Gets the plugins list.
public static SortedSet<IPlugin<IConfig>> Plugins { get; }
Property Value
Random
Gets the initialized global random class.
public static Random Random { get; }
Property Value
Serializer
Gets or sets the serializer for configs and translations.
public static ISerializer Serializer { get; set; }
Property Value
- ISerializer
Version
Gets the version of the assembly.
public static Version Version { get; }
Property Value
Methods
CreatePlugin(Assembly)
Create a plugin instance.
public static IPlugin<IConfig> CreatePlugin(Assembly assembly)
Parameters
assembly
AssemblyThe plugin assembly.
Returns
DisablePlugins()
Disables all plugins.
public static void DisablePlugins()
EnablePlugins()
Enables all plugins.
public static void EnablePlugins()
GetPlugin(string)
Gets a plugin with its prefix or name.
public static IPlugin<IConfig> GetPlugin(string args)
Parameters
args
stringThe name or prefix of the plugin (Using the prefix is recommended).
Returns
LoadAssembly(string)
Loads an assembly.
public static Assembly LoadAssembly(string path)
Parameters
path
stringThe path to load the assembly from.
Returns
LoadPlugins()
Loads all plugins.
public static void LoadPlugins()
ReloadPlugins()
Reloads all plugins.
public static void ReloadPlugins()
Run(Assembly[])
Runs the plugin manager, by loading all dependencies, plugins, configs and then enables all plugins.
public IEnumerator<float> Run(Assembly[] dependencies = null)
Parameters
dependencies
Assembly[]The dependencies that could have been loaded by Exiled.Bootstrap.
Returns
- IEnumerator<float>
A MEC IEnumerator<T>.