Exemple #1
0
 /// <summary>An annotation that specifies a method, property or constructor to patch</summary>
 /// <param name="methodInheritance">The <see cref="MethodInheritance"/></param>
 /// <param name="argumentTypes">An array of argument types to target overloads</param>
 /// <param name="argumentVariations">An array of <see cref="ArgumentType"/></param>
 ///
 public HarmonyDelegate(MethodInheritance methodInheritance, Type[] argumentTypes, ArgumentType[] argumentVariations)
     : base(MethodType.Normal, argumentTypes, argumentVariations)
 {
     info.virtualDelegate = methodInheritance == MethodInheritance.Virtual;
 }
Exemple #2
0
 /// <summary>An annotation that specifies a method, property or constructor to patch</summary>
 /// <param name="methodInheritance">The <see cref="MethodInheritance"/></param>
 /// <param name="argumentTypes">An array of argument types to target overloads</param>
 ///
 public HarmonyDelegate(MethodInheritance methodInheritance, params Type[] argumentTypes)
     : base(MethodType.Normal, argumentTypes)
 {
     info.virtualDelegate = methodInheritance == MethodInheritance.Virtual;
 }
Exemple #3
0
 /// <summary>An annotation that specifies a method, property or constructor to patch</summary>
 /// <param name="methodName">The name of the method, property or constructor to patch</param>
 /// <param name="methodInheritance">The <see cref="MethodInheritance"/></param>
 ///
 public HarmonyDelegate(string methodName, MethodInheritance methodInheritance)
     : base(methodName, MethodType.Normal)
 {
     info.virtualDelegate = methodInheritance == MethodInheritance.Virtual;
 }
Exemple #4
0
 /// <summary>An annotation that specifies call dispatching mechanics for the delegate</summary>
 /// <param name="methodInheritance">The <see cref="MethodInheritance"/></param>
 ///
 public HarmonyDelegate(MethodInheritance methodInheritance)
 {
     info.virtualDelegate = methodInheritance == MethodInheritance.Virtual;
 }
Exemple #5
0
 /// <summary>An annotation that specifies a method, property or constructor to patch</summary>
 /// <param name="declaringType">The declaring class/type</param>
 /// <param name="methodInheritance">The <see cref="MethodInheritance"/></param>
 ///
 public HarmonyDelegate(Type declaringType, MethodInheritance methodInheritance)
     : base(declaringType, MethodType.Normal)
 {
     info.virtualDelegate = methodInheritance == MethodInheritance.Virtual;
 }