Lib.Harmony by Andreas Pardeike

<PackageReference Include="Lib.Harmony" Version="2.3.3" />

.NET API 2,082,304 bytes

 HarmonyMethod

public class HarmonyMethod
A wrapper around a method to use it as a patch (for example a Prefix)
public string[] after

Install this patch after patches with these Harmony IDs

Array of argument types of the patch method

public string[] before

Install this patch before patches with these Harmony IDs

public string category

Patch Category

public bool? debug

Create debug output for this patch

Class/type declaring this patch

The original method

public string methodName

Patch method name

Optional patch MethodType

public bool nonVirtualDelegate

Whether to use Call (true) or VirtualCall (false) mechanics for HarmonyDelegate-attributed delegate

public int priority

Priority of the patch

Reverse patch type, see HarmonyReversePatchType

public HarmonyMethod()

Default constructor

public HarmonyMethod(MethodInfo method)

Creates a patch from a given method

public HarmonyMethod(Delegate delegate)

Creates a patch from a given method

public HarmonyMethod(MethodInfo method, int priority = -1, string[] before = null, string[] after = null, bool? debug = default)

Creates a patch from a given method

public HarmonyMethod(Delegate delegate, int priority = -1, string[] before = null, string[] after = null, bool? debug = default)

Creates a patch from a given method

public HarmonyMethod(Type methodType, string methodName, Type[] argumentTypes = null)

Creates a patch from a given method

public static List<string> HarmonyFields()

Gets the names of all internal patch info fields

public static HarmonyMethod Merge(List<HarmonyMethod> attributes)

Merges annotations

public static HarmonyMethod op_Implicit(MethodInfo method)

Creates a patch from a given method

public static HarmonyMethod op_Implicit(Delegate delegate)

Creates a patch from a given method