Class HarmonyDelegate
- Namespace
- HarmonyLib
- Assembly
- 0Harmony.dll
Annotation to define the original method for delegate injection
[AttributeUsage(AttributeTargets.Delegate, AllowMultiple = true)]
public class HarmonyDelegate : HarmonyPatch
- Inheritance
-
objectAttributeHarmonyDelegate
- Inherited Members
Constructors
HarmonyDelegate(MethodDispatchType)
An annotation that specifies call dispatching mechanics for the delegate
public HarmonyDelegate(MethodDispatchType methodDispatchType)
Parameters
methodDispatchTypeMethodDispatchType
HarmonyDelegate(MethodDispatchType, params Type[])
An annotation that specifies a method, property or constructor to patch
public HarmonyDelegate(MethodDispatchType methodDispatchType, params Type[] argumentTypes)
Parameters
methodDispatchTypeMethodDispatchTypeargumentTypesType[]An array of argument types to target overloads
HarmonyDelegate(MethodDispatchType, Type[], ArgumentType[])
An annotation that specifies a method, property or constructor to patch
public HarmonyDelegate(MethodDispatchType methodDispatchType, Type[] argumentTypes, ArgumentType[] argumentVariations)
Parameters
methodDispatchTypeMethodDispatchTypeargumentTypesType[]An array of argument types to target overloads
argumentVariationsArgumentType[]An array of ArgumentType
HarmonyDelegate(string)
An annotation that specifies a method, property or constructor to patch
public HarmonyDelegate(string methodName)
Parameters
methodNamestringThe name of the method, property or constructor to patch
HarmonyDelegate(string, MethodDispatchType)
An annotation that specifies a method, property or constructor to patch
public HarmonyDelegate(string methodName, MethodDispatchType methodDispatchType)
Parameters
methodNamestringThe name of the method, property or constructor to patch
methodDispatchTypeMethodDispatchType
HarmonyDelegate(string, params Type[])
An annotation that specifies a method, property or constructor to patch
public HarmonyDelegate(string methodName, params Type[] argumentTypes)
Parameters
methodNamestringThe name of the method, property or constructor to patch
argumentTypesType[]An array of argument types to target overloads
HarmonyDelegate(string, Type[], ArgumentType[])
An annotation that specifies a method, property or constructor to patch
public HarmonyDelegate(string methodName, Type[] argumentTypes, ArgumentType[] argumentVariations)
Parameters
methodNamestringThe name of the method, property or constructor to patch
argumentTypesType[]An array of argument types to target overloads
argumentVariationsArgumentType[]An array of ArgumentType
HarmonyDelegate(Type)
An annotation that specifies a class to patch
public HarmonyDelegate(Type declaringType)
Parameters
declaringTypeTypeThe declaring class/type
HarmonyDelegate(Type, MethodDispatchType)
An annotation that specifies a method, property or constructor to patch
public HarmonyDelegate(Type declaringType, MethodDispatchType methodDispatchType)
Parameters
declaringTypeTypeThe declaring class/type
methodDispatchTypeMethodDispatchType
HarmonyDelegate(Type, MethodDispatchType, params Type[])
An annotation that specifies a method, property or constructor to patch
public HarmonyDelegate(Type declaringType, MethodDispatchType methodDispatchType, params Type[] argumentTypes)
Parameters
declaringTypeTypeThe declaring class/type
methodDispatchTypeMethodDispatchTypeargumentTypesType[]An array of argument types to target overloads
HarmonyDelegate(Type, MethodDispatchType, Type[], ArgumentType[])
An annotation that specifies a method, property or constructor to patch
public HarmonyDelegate(Type declaringType, MethodDispatchType methodDispatchType, Type[] argumentTypes, ArgumentType[] argumentVariations)
Parameters
declaringTypeTypeThe declaring class/type
methodDispatchTypeMethodDispatchTypeargumentTypesType[]An array of argument types to target overloads
argumentVariationsArgumentType[]Array of ArgumentType
HarmonyDelegate(Type, string)
An annotation that specifies a method, property or constructor to patch
public HarmonyDelegate(Type declaringType, string methodName)
Parameters
declaringTypeTypeThe declaring class/type
methodNamestringThe name of the method, property or constructor to patch
HarmonyDelegate(Type, string, MethodDispatchType)
An annotation that specifies a method, property or constructor to patch
public HarmonyDelegate(Type declaringType, string methodName, MethodDispatchType methodDispatchType)
Parameters
declaringTypeTypeThe declaring class/type
methodNamestringThe name of the method, property or constructor to patch
methodDispatchTypeMethodDispatchType
HarmonyDelegate(Type, string, params Type[])
An annotation that specifies a method, property or constructor to patch
public HarmonyDelegate(Type declaringType, string methodName, params Type[] argumentTypes)
Parameters
declaringTypeTypeThe declaring class/type
methodNamestringThe name of the method, property or constructor to patch
argumentTypesType[]An array of argument types to target overloads
HarmonyDelegate(Type, string, Type[], ArgumentType[])
An annotation that specifies a method, property or constructor to patch
public HarmonyDelegate(Type declaringType, string methodName, Type[] argumentTypes, ArgumentType[] argumentVariations)
Parameters
declaringTypeTypeThe declaring class/type
methodNamestringThe name of the method, property or constructor to patch
argumentTypesType[]An array of argument types to target overloads
argumentVariationsArgumentType[]Array of ArgumentType
HarmonyDelegate(Type, Type[])
An annotation that specifies a method, property or constructor to patch
public HarmonyDelegate(Type declaringType, Type[] argumentTypes)
Parameters
declaringTypeTypeThe declaring class/type
argumentTypesType[]The argument types of the method or constructor to patch
HarmonyDelegate(Type[])
An annotation that specifies a method, property or constructor to patch
public HarmonyDelegate(Type[] argumentTypes)
Parameters
argumentTypesType[]An array of argument types to target overloads
HarmonyDelegate(Type[], ArgumentType[])
An annotation that specifies a method, property or constructor to patch
public HarmonyDelegate(Type[] argumentTypes, ArgumentType[] argumentVariations)
Parameters
argumentTypesType[]An array of argument types to target overloads
argumentVariationsArgumentType[]An array of ArgumentType