Search Results for

    Show / Hide Table of Contents

    Class GlobalPatchProcessor

    A alternative detour tool which adds more ways to manage patches and external assemblies.

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

    Properties

    | Improve this Doc View Source

    PatchedGroupMethods

    Gets all the patched methods and their relative patch group.

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

    PatchedMethods

    Gets all the patched methods.

    Declaration
    public static IEnumerable<MethodBase> PatchedMethods { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<System.Reflection.MethodBase>

    Methods

    | Improve this Doc View Source

    PatchAll(Harmony, out Int32)

    Patch all your Harmony and return you the number of failed patch.

    Declaration
    public static void PatchAll(Harmony harmony, out int failedPatch)
    Parameters
    Type Name Description
    Harmony harmony

    The Harmony instance to Patch.

    System.Int32 failedPatch

    The number of failed patch.

    | Improve this Doc View Source

    PatchAll(String, String)

    Searches the current assembly for Harmony annotations and uses them to create patches.
    It supports target-patching using PatchGroupAttribute and the relative groupId.

    Declaration
    public static Harmony PatchAll(string id = "", string groupId = null)
    Parameters
    Type Name Description
    System.String id

    The Harmony instance id.

    System.String groupId

    The target group to include.

    Returns
    Type Description
    Harmony

    The instance.

    Exceptions
    Type Condition
    System.ArgumentNullException

    Thrown when the GroupId is null or empty.

    | Improve this Doc View Source

    UnpatchAll(String, String)

    Unpatches methods by patching them with zero patches.

    Declaration
    public static void UnpatchAll(string id = "", string groupId = null)
    Parameters
    Type Name Description
    System.String id

    The Harmony instance id.

    System.String groupId

    The target group to include.

    Exceptions
    Type Condition
    System.ArgumentNullException

    Thrown when the GroupId is null or empty.

    Extension Methods

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