Table of Contents

Class Loader

Namespace
Exiled.Loader
Assembly
Exiled.Loader.dll

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

List<Assembly>

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

Dictionary<Assembly, string>

Plugins

Gets the plugins list.

public static SortedSet<IPlugin<IConfig>> Plugins { get; }

Property Value

SortedSet<IPlugin<IConfig>>

Random

Gets the initialized global random class.

public static Random Random { get; }

Property Value

Random

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

Version

Methods

CreatePlugin(Assembly)

Create a plugin instance.

public static IPlugin<IConfig> CreatePlugin(Assembly assembly)

Parameters

assembly Assembly

The plugin assembly.

Returns

IPlugin<IConfig>

Returns the created plugin instance or null.

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 string

The name or prefix of the plugin (Using the prefix is recommended).

Returns

IPlugin<IConfig>

The desired plugin, null if not found.

LoadAssembly(string)

Loads an assembly.

public static Assembly LoadAssembly(string path)

Parameters

path string

The path to load the assembly from.

Returns

Assembly

Returns the loaded assembly or null.

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>.