Example #1
0
 /// <summary>An annotation that specifies a method, property or constructor to patch</summary>
 /// <param name="methodDispatchType">The <see cref="MethodDispatchType"/></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(MethodDispatchType methodDispatchType, Type[] argumentTypes, ArgumentType[] argumentVariations)
     : base(MethodType.Normal, argumentTypes, argumentVariations)
 {
     info.nonVirtualDelegate = methodDispatchType == MethodDispatchType.Call;
 }
Example #2
0
 /// <summary>An annotation that specifies a method, property or constructor to patch</summary>
 /// <param name="methodDispatchType">The <see cref="MethodDispatchType"/></param>
 /// <param name="argumentTypes">An array of argument types to target overloads</param>
 ///
 public HarmonyDelegate(MethodDispatchType methodDispatchType, params Type[] argumentTypes)
     : base(MethodType.Normal, argumentTypes)
 {
     info.nonVirtualDelegate = methodDispatchType == MethodDispatchType.Call;
 }
Example #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="methodDispatchType">The <see cref="MethodDispatchType"/></param>
 ///
 public HarmonyDelegate(string methodName, MethodDispatchType methodDispatchType)
     : base(methodName, MethodType.Normal)
 {
     info.nonVirtualDelegate = methodDispatchType == MethodDispatchType.Call;
 }
Example #4
0
 /// <summary>An annotation that specifies call dispatching mechanics for the delegate</summary>
 /// <param name="methodDispatchType">The <see cref="MethodDispatchType"/></param>
 ///
 public HarmonyDelegate(MethodDispatchType methodDispatchType)
 {
     info.nonVirtualDelegate = methodDispatchType == MethodDispatchType.Call;
 }
Example #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="methodDispatchType">The <see cref="MethodDispatchType"/></param>
 ///
 public HarmonyDelegate(Type declaringType, MethodDispatchType methodDispatchType)
     : base(declaringType, MethodType.Normal)
 {
     info.nonVirtualDelegate = methodDispatchType == MethodDispatchType.Call;
 }