Extensions for Towers
public static class TowerExt
Inheritance System.Object TowerExt
Calls Il2CppAssets.Scripts.Simulation.Towers.Tower.AddMutatorFromParent(Il2CppAssets.Scripts.Simulation.Objects.BehaviorMutator,System.Int32,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Int32) with a ModMutator
public static void AddMutatorFromParent<T>(this Tower tower, JToken data=null, int time=-1, bool updateDuration=true, bool applyMutation=true, bool onlyTimeoutWhenActive=false, bool useRoundTime=true, int roundsRemaining=-1)
where T : BTD_Mod_Helper.Api.Towers.ModMutator;
T
tower Il2CppAssets.Scripts.Simulation.Towers.Tower
data Newtonsoft.Json.Linq.JToken
time System.Int32
updateDuration System.Boolean
applyMutation System.Boolean
onlyTimeoutWhenActive System.Boolean
useRoundTime System.Boolean
roundsRemaining System.Int32
Calls Il2CppAssets.Scripts.Simulation.Towers.Tower.AddMutatorIncludeSubTowers(Il2CppAssets.Scripts.Simulation.Objects.BehaviorMutator,System.Int32,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Int32) with a ModMutator
public static void AddMutatorIncludeSubTowers<T>(this Tower tower, JToken data=null, int time=-1, bool updateDuration=true, bool applyMutation=true, bool onlyTimeoutWhenActive=false, bool useRoundTime=true, int roundsRemaining=-1)
where T : BTD_Mod_Helper.Api.Towers.ModMutator;
T
tower Il2CppAssets.Scripts.Simulation.Towers.Tower
data Newtonsoft.Json.Linq.JToken
time System.Int32
updateDuration System.Boolean
applyMutation System.Boolean
onlyTimeoutWhenActive System.Boolean
useRoundTime System.Boolean
roundsRemaining System.Int32
Return the DisplayNode for this Tower
public static DisplayNode GetDisplayNode(this Tower tower);
tower Il2CppAssets.Scripts.Simulation.Towers.Tower
Il2CppAssets.Scripts.Simulation.Display.DisplayNode
Return the Factory that creates Towers
public static Factory<Tower> GetFactory(this Tower tower);
tower Il2CppAssets.Scripts.Simulation.Towers.Tower
Il2CppAssets.Scripts.Simulation.Factory.Factory
Get the MonkeyAnimationController for this Tower. Needed to modify 3D models
public static MonkeyAnimationController GetMonkeyAnimController(this Tower tower);
tower Il2CppAssets.Scripts.Simulation.Towers.Tower
Il2CppAssets.Scripts.Unity.Display.Animation.MonkeyAnimationController
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);
tower Il2CppAssets.Scripts.Simulation.Towers.Tower
System.Collections.Generic.IEnumerable<Il2CppAssets.Scripts.Simulation.Towers.Tower>
Return the TowerToSimulation for this specific Tower
public static TowerToSimulation GetTowerToSim(this Tower tower);
tower Il2CppAssets.Scripts.Simulation.Towers.Tower
Il2CppAssets.Scripts.Unity.Bridge.TowerToSimulation
Return the UnityDisplayNode for this Tower. Is apart of DisplayNode. Needed to modify sprites
public static UnityDisplayNode GetUnityDisplayNode(this Tower tower);
tower Il2CppAssets.Scripts.Simulation.Towers.Tower
Il2CppAssets.Scripts.Unity.Display.UnityDisplayNode
Sell this tower
public static void SellTower(this Tower tower);
tower Il2CppAssets.Scripts.Simulation.Towers.Tower
Change TowerModel to a different one. Will update display
public static void SetTowerModel(this Tower tower, TowerModel towerModel);
tower Il2CppAssets.Scripts.Simulation.Towers.Tower
The Simulation Tower
towerModel Il2CppAssets.Scripts.Models.Towers.TowerModel
TowerModel to change to