Skip to Main Content

BTD_Mod_Helper​.Extensions​.TowerBehaviorExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

TowerBehaviorExt Class

Behavior extensions for Towers

public static class TowerBehaviorExt

Inheritance System.Object  TowerBehaviorExt

Methods

TowerBehaviorExt.AddTowerBehavior(this Tower, T) Method

Add a Behavior to this

public static void AddTowerBehavior<T>(this Tower tower, T behavior)
    where T : TowerBehavior;

Type parameters

T

Parameters

tower Il2CppAssets.Scripts.Simulation.Towers.Tower

behavior T

TowerBehaviorExt.GetTowerBehavior(this Tower) Method

Return the first Behavior of type T

public static T GetTowerBehavior<T>(this Tower tower)
    where T : TowerBehavior;

Type parameters

T

Parameters

tower Il2CppAssets.Scripts.Simulation.Towers.Tower

Returns

T

TowerBehaviorExt.GetTowerBehaviors(this Tower) Method

Return all Behaviors of type T

public static System.Collections.Generic.List<T> GetTowerBehaviors<T>(this Tower tower)
    where T : TowerBehavior;

Type parameters

T

Parameters

tower Il2CppAssets.Scripts.Simulation.Towers.Tower

Returns

System.Collections.Generic.List<T>

TowerBehaviorExt.HasTowerBehavior(this Tower, T) Method

Check if this has a specific Behavior

public static bool HasTowerBehavior<T>(this Tower tower, out T item)
    where T : TowerBehavior;

Type parameters

T

Parameters

tower Il2CppAssets.Scripts.Simulation.Towers.Tower

item T

Returns

System.Boolean

TowerBehaviorExt.HasTowerBehavior(this Tower) Method

Check if this has a specific Behavior

public static bool HasTowerBehavior<T>(this Tower tower)
    where T : TowerBehavior;

Type parameters

T

Parameters

tower Il2CppAssets.Scripts.Simulation.Towers.Tower

Returns

System.Boolean

TowerBehaviorExt.RemoveTowerBehavior(this Tower, T) Method

Remove the first Behavior of type T

public static void RemoveTowerBehavior<T>(this Tower tower, T behavior)
    where T : TowerBehavior;

Type parameters

T

Parameters

tower Il2CppAssets.Scripts.Simulation.Towers.Tower

behavior T

TowerBehaviorExt.RemoveTowerBehavior(this Tower) Method

Remove the first Behavior of Type T

public static void RemoveTowerBehavior<T>(this Tower tower)
    where T : TowerBehavior;

Type parameters

T

Parameters

tower Il2CppAssets.Scripts.Simulation.Towers.Tower

TowerBehaviorExt.RemoveTowerBehaviors(this Tower) Method

Remove all Behaviors of type T

public static void RemoveTowerBehaviors<T>(this Tower tower)
    where T : TowerBehavior;

Type parameters

T

Parameters

tower Il2CppAssets.Scripts.Simulation.Towers.Tower

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