Table of Contents

Class GlobalPatchProcessor

Namespace
Exiled.API.Features
Assembly
Exiled.API.dll

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

public class GlobalPatchProcessor
Inheritance
GlobalPatchProcessor
Inherited Members
Extension Methods

Properties

PatchedGroupMethods

Gets all the patched methods and their relative patch group.

public static IReadOnlyDictionary<MethodBase, HashSet<string>> PatchedGroupMethods { get; }

Property Value

IReadOnlyDictionary<MethodBase, HashSet<string>>

PatchedMethods

Gets all the patched methods.

public static IEnumerable<MethodBase> PatchedMethods { get; }

Property Value

IEnumerable<MethodBase>

Methods

PatchAll(Harmony, out int)

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

public static void PatchAll(Harmony harmony, out int failedPatch)

Parameters

harmony Harmony

The Harmony instance to Patch.

failedPatch int

The number of failed patch.

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.

public static Harmony PatchAll(string id = "", string groupId = null)

Parameters

id string

The Harmony instance id.

groupId string

The target group to include.

Returns

Harmony

The HarmonyLib.Harmony instance.

Exceptions

ArgumentNullException

Thrown when the GroupId is null or empty.

UnpatchAll(string, string)

Unpatches methods by patching them with zero patches.

public static void UnpatchAll(string id = "", string groupId = null)

Parameters

id string

The Harmony instance id.

groupId string

The target group to include.

Exceptions

ArgumentNullException

Thrown when the GroupId is null or empty.