Skip to Main Content
Table of Contents

BTD_Mod_Helper​.Extensions​.HarmonyExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

HarmonyExt Class

Extensions for Harmony stuff

public static class HarmonyExt

Inheritance System.Object  HarmonyExt

Methods

HarmonyExt.PatchPostfix(this Harmony, MethodInfo, MethodInfo) Method

Add a postfix patch

public static void PatchPostfix(this Harmony harmonyInstance, System.Reflection.MethodInfo methodToPatch, System.Reflection.MethodInfo myPatchMethod);

Parameters

harmonyInstance HarmonyLib.Harmony

methodToPatch System.Reflection.MethodInfo

myPatchMethod System.Reflection.MethodInfo

HarmonyExt.PatchPostfix(this Harmony, MethodInfo, Type, string) Method

Add a postfix patch

public static void PatchPostfix(this Harmony harmonyInstance, System.Reflection.MethodInfo methodToPatch, System.Type myPatchClass, string myPatchMethod);

Parameters

harmonyInstance HarmonyLib.Harmony

methodToPatch System.Reflection.MethodInfo

myPatchClass System.Type

myPatchMethod System.String

HarmonyExt.PatchPostfix(this Harmony, Type, int, Type, string) Method

Add a postfix patch

public static void PatchPostfix(this Harmony harmonyInstance, System.Type classToPatch, int constructorIndex, System.Type myPatchClass, string myPatchMethod);

Parameters

harmonyInstance HarmonyLib.Harmony

classToPatch System.Type

constructorIndex System.Int32

myPatchClass System.Type

myPatchMethod System.String

HarmonyExt.PatchPostfix(this Harmony, Type, string, int, Type, string) Method

Add a postfix patch

public static void PatchPostfix(this Harmony harmonyInstance, System.Type classToPatch, string methodToPatch, int methodOverloadIndex, System.Type myPatchClass, string myPatchMethod);

Parameters

harmonyInstance HarmonyLib.Harmony

classToPatch System.Type

methodToPatch System.String

methodOverloadIndex System.Int32

myPatchClass System.Type

myPatchMethod System.String

HarmonyExt.PatchPostfix(this Harmony, Type, string, Type, string) Method

Add a postfix patch

public static void PatchPostfix(this Harmony harmonyInstance, System.Type classToPatch, string methodToPatch, System.Type myPatchClass, string myPatchMethod);

Parameters

harmonyInstance HarmonyLib.Harmony

classToPatch System.Type

methodToPatch System.String

myPatchClass System.Type

myPatchMethod System.String

HarmonyExt.PatchPostfix<TClassToPatch,TMyPatchClass>(this Harmony, int, string) Method

Add a postfix patch

public static void PatchPostfix<TClassToPatch,TMyPatchClass>(this Harmony harmonyInstance, int constructorIndex, string myPatchMethod);

Type parameters

TClassToPatch

TMyPatchClass

Parameters

harmonyInstance HarmonyLib.Harmony

constructorIndex System.Int32

myPatchMethod System.String

HarmonyExt.PatchPostfix<TClassToPatch,TMyPatchClass>(this Harmony, string, int, string) Method

Add a postfix patch

public static void PatchPostfix<TClassToPatch,TMyPatchClass>(this Harmony harmonyInstance, string methodToPatch, int methodOverloadIndex, string myPatchMethod);

Type parameters

TClassToPatch

TMyPatchClass

Parameters

harmonyInstance HarmonyLib.Harmony

methodToPatch System.String

methodOverloadIndex System.Int32

myPatchMethod System.String

HarmonyExt.PatchPostfix<TClassToPatch,TMyPatchClass>(this Harmony, string, string) Method

Add a postfix patch

public static void PatchPostfix<TClassToPatch,TMyPatchClass>(this Harmony harmonyInstance, string methodToPatch, string myPatchMethod);

Type parameters

TClassToPatch

TMyPatchClass

Parameters

harmonyInstance HarmonyLib.Harmony

methodToPatch System.String

myPatchMethod System.String

HarmonyExt.PatchPrefix(this Harmony, MethodInfo, MethodInfo) Method

Add a prefix patch

public static void PatchPrefix(this Harmony harmonyInstance, System.Reflection.MethodInfo methodToPatch, System.Reflection.MethodInfo myPatchMethod);

Parameters

harmonyInstance HarmonyLib.Harmony

methodToPatch System.Reflection.MethodInfo

myPatchMethod System.Reflection.MethodInfo

HarmonyExt.PatchPrefix(this Harmony, MethodInfo, Type, string) Method

Add a prefix patch

public static void PatchPrefix(this Harmony harmonyInstance, System.Reflection.MethodInfo methodToPatch, System.Type myPatchClass, string myPatchMethod);

Parameters

harmonyInstance HarmonyLib.Harmony

methodToPatch System.Reflection.MethodInfo

myPatchClass System.Type

myPatchMethod System.String

HarmonyExt.PatchPrefix(this Harmony, Type, int, Type, string) Method

Add a prefix patch

public static void PatchPrefix(this Harmony harmonyInstance, System.Type classToPatch, int constructorIndex, System.Type myPatchClass, string myPatchMethod);

Parameters

harmonyInstance HarmonyLib.Harmony

classToPatch System.Type

constructorIndex System.Int32

myPatchClass System.Type

myPatchMethod System.String

HarmonyExt.PatchPrefix(this Harmony, Type, string, int, Type, string) Method

Add a prefix patch

public static void PatchPrefix(this Harmony harmonyInstance, System.Type classToPatch, string methodToPatch, int methodOverloadIndex, System.Type myPatchClass, string myPatchMethod);

Parameters

harmonyInstance HarmonyLib.Harmony

classToPatch System.Type

methodToPatch System.String

methodOverloadIndex System.Int32

myPatchClass System.Type

myPatchMethod System.String

HarmonyExt.PatchPrefix(this Harmony, Type, string, Type, string) Method

Add a prefix patch

public static void PatchPrefix(this Harmony harmonyInstance, System.Type classToPatch, string methodToPatch, System.Type myPatchClass, string myPatchMethod);

Parameters

harmonyInstance HarmonyLib.Harmony

classToPatch System.Type

methodToPatch System.String

myPatchClass System.Type

myPatchMethod System.String

HarmonyExt.PatchPrefix<TClassToPatch,TMyPatchClass>(this Harmony, int, string) Method

Add a prefix patch

public static void PatchPrefix<TClassToPatch,TMyPatchClass>(this Harmony harmonyInstance, int constructorIndex, string myPatchMethod);

Type parameters

TClassToPatch

TMyPatchClass

Parameters

harmonyInstance HarmonyLib.Harmony

constructorIndex System.Int32

myPatchMethod System.String

HarmonyExt.PatchPrefix<TClassToPatch,TMyPatchClass>(this Harmony, string, int, string) Method

Add a prefix patch

public static void PatchPrefix<TClassToPatch,TMyPatchClass>(this Harmony harmonyInstance, string methodToPatch, int methodOverloadIndex, string myPatchMethod);

Type parameters

TClassToPatch

TMyPatchClass

Parameters

harmonyInstance HarmonyLib.Harmony

methodToPatch System.String

methodOverloadIndex System.Int32

myPatchMethod System.String

HarmonyExt.PatchPrefix<TClassToPatch,TMyPatchClass>(this Harmony, string, string) Method

Add a prefix patch

public static void PatchPrefix<TClassToPatch,TMyPatchClass>(this Harmony harmonyInstance, string methodToPatch, string myPatchMethod);

Type parameters

TClassToPatch

TMyPatchClass

Parameters

harmonyInstance HarmonyLib.Harmony

methodToPatch System.String

myPatchMethod System.String

To learn how to download BTD Mod Helper and install mods, click here