Skip to Main Content

BTD_Mod_Helper​.Extensions​.TowerExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

TowerExt Class

Extensions for Towers

public static class TowerExt

Inheritance System.Object  TowerExt

Methods

TowerExt.GetDisplayNode(this Tower) Method

Return the DisplayNode for this Tower

public static DisplayNode GetDisplayNode(this Tower tower);

Parameters

tower Il2CppAssets.Scripts.Simulation.Towers.Tower

Returns

Il2CppAssets.Scripts.Simulation.Display.DisplayNode

TowerExt.GetFactory(this Tower) Method

Return the Factory that creates Towers

public static Factory<Tower> GetFactory(this Tower tower);

Parameters

tower Il2CppAssets.Scripts.Simulation.Towers.Tower

Returns

Il2CppAssets.Scripts.Simulation.Factory.Factory

TowerExt.GetMonkeyAnimController(this Tower) Method

Get the MonkeyAnimationController for this Tower. Needed to modify 3D models

public static MonkeyAnimationController GetMonkeyAnimController(this Tower tower);

Parameters

tower Il2CppAssets.Scripts.Simulation.Towers.Tower

Returns

Il2CppAssets.Scripts.Unity.Display.Animation.MonkeyAnimationController

TowerExt.GetTowersInRange(this Tower) Method

Gets all other towers that are in range of this tower not including itself

public static System.Collections.Generic.IEnumerable<Tower> GetTowersInRange(this Tower tower);

Parameters

tower Il2CppAssets.Scripts.Simulation.Towers.Tower

Returns

System.Collections.Generic.IEnumerable<Il2CppAssets.Scripts.Simulation.Towers.Tower>

TowerExt.GetTowerToSim(this Tower) Method

Return the TowerToSimulation for this specific Tower

public static TowerToSimulation GetTowerToSim(this Tower tower);

Parameters

tower Il2CppAssets.Scripts.Simulation.Towers.Tower

Returns

Il2CppAssets.Scripts.Unity.Bridge.TowerToSimulation

TowerExt.GetUnityDisplayNode(this Tower) Method

Return the UnityDisplayNode for this Tower. Is apart of DisplayNode. Needed to modify sprites

public static UnityDisplayNode GetUnityDisplayNode(this Tower tower);

Parameters

tower Il2CppAssets.Scripts.Simulation.Towers.Tower

Returns

Il2CppAssets.Scripts.Unity.Display.UnityDisplayNode

TowerExt.SellTower(this Tower) Method

Sell this tower

public static void SellTower(this Tower tower);

Parameters

tower Il2CppAssets.Scripts.Simulation.Towers.Tower

TowerExt.SetTowerModel(this Tower, TowerModel) Method

Change TowerModel to a different one. Will update display

public static void SetTowerModel(this Tower tower, TowerModel towerModel);

Parameters

tower Il2CppAssets.Scripts.Simulation.Towers.Tower

The Simulation Tower

towerModel Il2CppAssets.Scripts.Models.Towers.TowerModel

TowerModel to change to

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