Skip to Main Content

BTD_Mod_Helper​.Extensions​.TowerDetailsModelExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

TowerDetailsModelExt Class

Extensions for TowerDetailsModels

public static class TowerDetailsModelExt

Inheritance System.Object  TowerDetailsModelExt

Methods

TowerDetailsModelExt.GetIndex(this TowerDetailsModel) Method

Gets the index of this TowerDetailsModel within the GameModel

public static int GetIndex(this TowerDetailsModel towerDetailsModel);

Parameters

towerDetailsModel Il2CppAssets.Scripts.Models.TowerSets.TowerDetailsModel

Returns

System.Int32

TowerDetailsModelExt.GetShopTowerDetails(this TowerDetailsModel) Method

Get the ShopTowerDetails for this TowerDetailModel

public static ShopTowerDetailsModel GetShopTowerDetails(this TowerDetailsModel towerDetailsModel);

Parameters

towerDetailsModel Il2CppAssets.Scripts.Models.TowerSets.TowerDetailsModel

Returns

Il2CppAssets.Scripts.Models.TowerSets.ShopTowerDetailsModel

TowerDetailsModelExt.GetTower(this TowerDetailsModel) Method

Gets the TowerModel for this TowerDetailsModel

public static TowerModel GetTower(this TowerDetailsModel towerDetailsModel);

Parameters

towerDetailsModel Il2CppAssets.Scripts.Models.TowerSets.TowerDetailsModel

Returns

Il2CppAssets.Scripts.Models.Towers.TowerModel

TowerDetailsModelExt.GetTowerPurchaseButton(this TowerDetailsModel) Method

Get the TowerPurchaseButton that is used to buy this specific TowerDetailModel

public static TowerPurchaseButton GetTowerPurchaseButton(this TowerDetailsModel towerDetailsModel);

Parameters

towerDetailsModel Il2CppAssets.Scripts.Models.TowerSets.TowerDetailsModel

Returns

Il2CppAssets.Scripts.Unity.UI_New.InGame.StoreMenu.TowerPurchaseButton

TowerDetailsModelExt.IsHero(this TowerDetailsModel) Method

Returns if this TowerDetailModel is actually for a Hero

public static bool IsHero(this TowerDetailsModel towerDetailsModel);

Parameters

towerDetailsModel Il2CppAssets.Scripts.Models.TowerSets.TowerDetailsModel

Returns

System.Boolean

TowerDetailsModelExt.MakeCopy(this TowerDetailsModel, string, bool) Method

Makes a copy of this TowerDetailsModel with a new name

public static TowerDetailsModel MakeCopy(this TowerDetailsModel towerDetailsModel, string newName, bool addToGame=false);

Parameters

towerDetailsModel Il2CppAssets.Scripts.Models.TowerSets.TowerDetailsModel

newName System.String

addToGame System.Boolean

Returns

Il2CppAssets.Scripts.Models.TowerSets.TowerDetailsModel

TowerDetailsModelExt.MakeCopy(this TowerDetailsModel, string, int, bool) Method

Makes a copy of this TowerDetailsModel with a new name and index

public static TowerDetailsModel MakeCopy(this TowerDetailsModel towerDetailsModel, string newName, int newTowerIndex, bool addToGame=false);

Parameters

towerDetailsModel Il2CppAssets.Scripts.Models.TowerSets.TowerDetailsModel

newName System.String

newTowerIndex System.Int32

addToGame System.Boolean

Returns

Il2CppAssets.Scripts.Models.TowerSets.TowerDetailsModel

TowerDetailsModelExt.SetName(this TowerDetailsModel, string) Method

Sets the name of this TowerDetailsModel, following the naming convention of other TowerDetailModels.
Example, using "NewMonkey" will set the name to "TowerDetailsModel_NewMonkey"

public static void SetName(this TowerDetailsModel towerDetailsModel, string newName);

Parameters

towerDetailsModel Il2CppAssets.Scripts.Models.TowerSets.TowerDetailsModel

newName System.String

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