Skip to Main Content

BTD_Mod_Helper​.Extensions​.UpgradeModelExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

UpgradeModelExt Class

Extensions for UpgradeModels

public static class UpgradeModelExt

Inheritance System.Object  UpgradeModelExt

Methods

UpgradeModelExt.GetModUpgrade(this UpgradeModel) Method

Gets the ModUpgrade associated with this UpgradeModel


If there is no associated ModUpgrade, returns null

public static BTD_Mod_Helper.Api.Towers.ModUpgrade GetModUpgrade(this UpgradeModel upgradeModel);

Parameters

upgradeModel Il2CppAssets.Scripts.Models.Towers.Upgrades.UpgradeModel

Returns

ModUpgrade

UpgradeModelExt.GetModUpgrade(this UpgradePathModel) Method

Gets the ModUpgrade that this UpgradePathModel is for, or null if it's vanilla

public static BTD_Mod_Helper.Api.Towers.ModUpgrade GetModUpgrade(this UpgradePathModel upgradePathModel);

Parameters

upgradePathModel Il2CppAssets.Scripts.Models.Towers.Upgrades.UpgradePathModel

Returns

ModUpgrade

UpgradeModelExt.GetUpgrade(this UpgradePathModel) Method

Gets the UpgradeModel that this UpgradePathModel uses

public static UpgradeModel GetUpgrade(this UpgradePathModel upgradePathModel);

Parameters

upgradePathModel Il2CppAssets.Scripts.Models.Towers.Upgrades.UpgradePathModel

Returns

Il2CppAssets.Scripts.Models.Towers.Upgrades.UpgradeModel

UpgradeModelExt.IsUpgradeUnlocked(this UpgradeModel) Method

Return whether or not this upgrade has been unlocked by the player

public static bool IsUpgradeUnlocked(this UpgradeModel upgradeModel);

Parameters

upgradeModel Il2CppAssets.Scripts.Models.Towers.Upgrades.UpgradeModel

Returns

System.Boolean

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