Table of Contents
Extensions for TowerDetailsModels
public static class TowerDetailsModelExt
Inheritance System.Object TowerDetailsModelExt
Gets the index of this TowerDetailsModel within the GameModel
public static int GetIndex(this TowerDetailsModel towerDetailsModel);
towerDetailsModel
Il2CppAssets.Scripts.Models.TowerSets.TowerDetailsModel
Get the ShopTowerDetails for this TowerDetailModel
public static ShopTowerDetailsModel GetShopTowerDetails(this TowerDetailsModel towerDetailsModel);
towerDetailsModel
Il2CppAssets.Scripts.Models.TowerSets.TowerDetailsModel
Il2CppAssets.Scripts.Models.TowerSets.ShopTowerDetailsModel
Gets the TowerModel for this TowerDetailsModel
public static TowerModel GetTower(this TowerDetailsModel towerDetailsModel);
towerDetailsModel
Il2CppAssets.Scripts.Models.TowerSets.TowerDetailsModel
Il2CppAssets.Scripts.Models.Towers.TowerModel
Get the TowerPurchaseButton that is used to buy this specific TowerDetailModel
public static TowerPurchaseButton GetTowerPurchaseButton(this TowerDetailsModel towerDetailsModel);
towerDetailsModel
Il2CppAssets.Scripts.Models.TowerSets.TowerDetailsModel
Il2CppAssets.Scripts.Unity.UI_New.InGame.StoreMenu.TowerPurchaseButton
Returns if this TowerDetailModel is actually for a Hero
public static bool IsHero(this TowerDetailsModel towerDetailsModel);
towerDetailsModel
Il2CppAssets.Scripts.Models.TowerSets.TowerDetailsModel
Makes a copy of this TowerDetailsModel with a new name
public static TowerDetailsModel MakeCopy(this TowerDetailsModel towerDetailsModel, string newName, bool addToGame=false);
towerDetailsModel
Il2CppAssets.Scripts.Models.TowerSets.TowerDetailsModel
newName
System.String
addToGame
System.Boolean
Il2CppAssets.Scripts.Models.TowerSets.TowerDetailsModel
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);
towerDetailsModel
Il2CppAssets.Scripts.Models.TowerSets.TowerDetailsModel
newName
System.String
newTowerIndex
System.Int32
addToGame
System.Boolean
Il2CppAssets.Scripts.Models.TowerSets.TowerDetailsModel
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);
towerDetailsModel
Il2CppAssets.Scripts.Models.TowerSets.TowerDetailsModel
newName
System.String