Extensions for UpgradeModels
public static class UpgradeModelExt
Inheritance System.Object UpgradeModelExt
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);
upgradeModel
Il2CppAssets.Scripts.Models.Towers.Upgrades.UpgradeModel
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);
upgradePathModel
Il2CppAssets.Scripts.Models.Towers.Upgrades.UpgradePathModel
Gets the UpgradeModel that this UpgradePathModel uses
public static UpgradeModel GetUpgrade(this UpgradePathModel upgradePathModel);
upgradePathModel
Il2CppAssets.Scripts.Models.Towers.Upgrades.UpgradePathModel
Il2CppAssets.Scripts.Models.Towers.Upgrades.UpgradeModel
Return whether or not this upgrade has been unlocked by the player
public static bool IsUpgradeUnlocked(this UpgradeModel upgradeModel);
upgradeModel
Il2CppAssets.Scripts.Models.Towers.Upgrades.UpgradeModel