Table of Contents
Catch-all class for non-extension static methods
public static class ModHelper
Inheritance System.Object ModHelper
Directory for where disabled mods are stored
public static string DisabledModsDirectory { get; }
Gets whether the game is running as the Epic Store version
public static bool IsEpic { get; }
Gets whether this is running on net6 MelonLoader
public static bool IsNet6 { get; }
All active mods, whether they're Mod Helper or not
public static System.Collections.Generic.IEnumerable<MelonMod> Melons { get; }
System.Collections.Generic.IEnumerable<MelonLoader.MelonMod>
Directory where the Mod Helper stores most of its extra info
public static string ModHelperDirectory { get; }
Active mods that use ModHelper functionality
public static System.Collections.Generic.IEnumerable<BTD_Mod_Helper.BloonsMod> Mods { get; }
System.Collections.Generic.IEnumerable<BloonsMod>
The directory path on the user's system that's set as their Mod Sources folder
public static string ModSourcesDirectory { get; }
Logs an error from the specified Mod's LoggerInstance
public static void Error<T>(object obj)
where T : BTD_Mod_Helper.BloonsMod;
T
obj
System.Object
Gets a BloonsTD6Mod by its name, or returns null if none are loaded with that name
In this case a mod's name is its Assembly Name, which is almost always the same as the file name, but for the
Mod Helper due to compatibility reasons it is "BloonsTD6 Mod Helper" rather than "Btd6ModHelper"
public static BTD_Mod_Helper.BloonsMod GetMod(string name);
name
System.String
Gets the instance of a specific BloonsTD6Mod by its type
public static T GetMod<T>()
where T : BTD_Mod_Helper.BloonsMod;
T
Returns whether a mod with the given name is installed, and pass it to the out param if it is
public static bool HasMod(string name, out BTD_Mod_Helper.BloonsMod bloonsMod);
name
System.String
bloonsMod
BloonsMod
Returns whether a mod with the given name is installed
public static bool HasMod(string name);
name
System.String
Logs a message from the specified Mod's LoggerInstance
public static void Log<T>(object obj)
where T : BTD_Mod_Helper.BloonsMod;
T
obj
System.Object
Logs a message from the specified Mod's LoggerInstance
public static void Msg<T>(object obj)
where T : BTD_Mod_Helper.BloonsMod;
T
obj
System.Object
Logs a warning from the specified Mod's LoggerInstance
public static void Warning<T>(object obj)
where T : BTD_Mod_Helper.BloonsMod;
T
obj
System.Object