Search Results for

    Show / Hide Table of Contents

    Class Loader

    Used to handle plugins.

    Inheritance
    System.Object
    Loader
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Exiled.Loader
    Assembly: Exiled.Loader.dll
    Syntax
    public class Loader

    Constructors

    | Improve this Doc View Source

    Loader()

    Initializes a new instance of the Loader class.

    Declaration
    public Loader()

    Properties

    | Improve this Doc View Source

    Dependencies

    Gets plugin dependencies.

    Declaration
    public static List<Assembly> Dependencies { get; }
    Property Value
    Type Description
    System.Collections.Generic.List<System.Reflection.Assembly>
    | Improve this Doc View Source

    Deserializer

    Gets or sets the deserializer for configs and translations.

    Declaration
    public static IDeserializer Deserializer { get; set; }
    Property Value
    Type Description
    YamlDotNet.Serialization.IDeserializer
    | Improve this Doc View Source

    Locations

    Gets a dictionary containing the file paths of assemblies.

    Declaration
    public static Dictionary<Assembly, string> Locations { get; }
    Property Value
    Type Description
    System.Collections.Generic.Dictionary<System.Reflection.Assembly, System.String>
    | Improve this Doc View Source

    Plugins

    Gets the plugins list.

    Declaration
    public static SortedSet<IPlugin<IConfig>> Plugins { get; }
    Property Value
    Type Description
    System.Collections.Generic.SortedSet<IPlugin<IConfig>>
    | Improve this Doc View Source

    Random

    Gets the initialized global random class.

    Declaration
    public static Random Random { get; }
    Property Value
    Type Description
    System.Random
    | Improve this Doc View Source

    Serializer

    Gets or sets the serializer for configs and translations.

    Declaration
    public static ISerializer Serializer { get; set; }
    Property Value
    Type Description
    YamlDotNet.Serialization.ISerializer
    | Improve this Doc View Source

    Version

    Gets the version of the assembly.

    Declaration
    public static Version Version { get; }
    Property Value
    Type Description
    System.Version

    Methods

    | Improve this Doc View Source

    CreatePlugin(Assembly)

    Create a plugin instance.

    Declaration
    public static IPlugin<IConfig> CreatePlugin(Assembly assembly)
    Parameters
    Type Name Description
    System.Reflection.Assembly assembly

    The plugin assembly.

    Returns
    Type Description
    IPlugin<IConfig>

    Returns the created plugin instance or null.

    | Improve this Doc View Source

    DisablePlugins()

    Disables all plugins.

    Declaration
    public static void DisablePlugins()
    | Improve this Doc View Source

    EnablePlugins()

    Enables all plugins.

    Declaration
    public static void EnablePlugins()
    | Improve this Doc View Source

    GetPlugin(String)

    Gets a plugin with its prefix or name.

    Declaration
    public static IPlugin<IConfig> GetPlugin(string args)
    Parameters
    Type Name Description
    System.String args

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

    Returns
    Type Description
    IPlugin<IConfig>

    The desired plugin, null if not found.

    | Improve this Doc View Source

    LoadAssembly(String)

    Loads an assembly.

    Declaration
    public static Assembly LoadAssembly(string path)
    Parameters
    Type Name Description
    System.String path

    The path to load the assembly from.

    Returns
    Type Description
    System.Reflection.Assembly

    Returns the loaded assembly or null.

    | Improve this Doc View Source

    LoadPlugins()

    Loads all plugins.

    Declaration
    public static void LoadPlugins()
    | Improve this Doc View Source

    ReloadPlugins()

    Reloads all plugins.

    Declaration
    public static void ReloadPlugins()
    | Improve this Doc View Source

    Run(Assembly[])

    Runs the plugin manager, by loading all dependencies, plugins, configs and then enables all plugins.

    Declaration
    public IEnumerator<float> Run(Assembly[] dependencies = null)
    Parameters
    Type Name Description
    System.Reflection.Assembly[] dependencies

    The dependencies that could have been loaded by Exiled.Bootstrap.

    Returns
    Type Description
    System.Collections.Generic.IEnumerator<System.Single>

    A MEC System.Collections.Generic.IEnumerator<T>.

    Extension Methods

    ReflectionExtensions.CopyProperties(Object, Object)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX