Search Results for

    Show / Hide Table of Contents

    Class Patcher

    A tool for patching.

    Inheritance
    System.Object
    Patcher
    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.Events.Features
    Assembly: Exiled.Events.dll
    Syntax
    public class Patcher

    Properties

    | Improve this Doc View Source

    DisabledPatchesHashSet

    Gets a set of types and methods for which EXILED patches should not be run.

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

    Harmony

    Gets the instance.

    Declaration
    public Harmony Harmony { get; }
    Property Value
    Type Description
    Harmony
    | Improve this Doc View Source

    UnpatchedTypes

    Gets a System.Collections.Generic.HashSet<T> that contains all patch types that haven't been patched.

    Declaration
    public static HashSet<Type> UnpatchedTypes { get; }
    Property Value
    Type Description
    System.Collections.Generic.HashSet<System.Type>

    Methods

    | Improve this Doc View Source

    Patch(IExiledEvent)

    Patches all events that target a specific IExiledEvent.

    Declaration
    public void Patch(IExiledEvent event)
    Parameters
    Type Name Description
    IExiledEvent event

    The IExiledEvent all matching patches should target.

    | Improve this Doc View Source

    PatchAll(Boolean, out Int32)

    Patches all events.

    Declaration
    public void PatchAll(bool includeEvents, out int failedPatch)
    Parameters
    Type Name Description
    System.Boolean includeEvents

    Whether to patch events as well as all required patches.

    System.Int32 failedPatch

    the number of failed patch returned.

    | Improve this Doc View Source

    ReloadDisabledPatches()

    Checks the DisabledPatchesHashSet list and un-patches any methods that have been defined there. Once un-patching has been done, they can be patched by plugins, but will not be re-patchable by Exiled until a server reboot.

    Declaration
    public void ReloadDisabledPatches()
    | Improve this Doc View Source

    UnpatchAll()

    Unpatches all events.

    Declaration
    public void UnpatchAll()

    Extension Methods

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