Skip to Main Content

BTD_Mod_Helper​.Extensions​.AirUnitModelBehaviorExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

AirUnitModelBehaviorExt Class

Behavior extensions for AirUnitModels

public static class AirUnitModelBehaviorExt

Inheritance System.Object  AirUnitModelBehaviorExt

Methods

AirUnitModelBehaviorExt.AddBehavior(this AirUnitModel, T) Method

Add a Behavior to this

public static void AddBehavior<T>(this AirUnitModel model, T behavior)
    where T : Model;

Type parameters

T

The Behavior you want to add

Parameters

model Il2CppAssets.Scripts.Models.Towers.Behaviors.AirUnitModel

behavior T

AirUnitModelBehaviorExt.GetBehavior(this AirUnitModel) Method

Return the first Behavior of type T

public static T GetBehavior<T>(this AirUnitModel model)
    where T : Model;

Type parameters

T

The Behavior you want

Parameters

model Il2CppAssets.Scripts.Models.Towers.Behaviors.AirUnitModel

Returns

T

AirUnitModelBehaviorExt.GetBehaviors(this AirUnitModel) Method

Return all Behaviors of type T

public static System.Collections.Generic.List<T> GetBehaviors<T>(this AirUnitModel model)
    where T : Model;

Type parameters

T

The Behavior you want

Parameters

model Il2CppAssets.Scripts.Models.Towers.Behaviors.AirUnitModel

Returns

System.Collections.Generic.List<T>

AirUnitModelBehaviorExt.HasBehavior(this AirUnitModel, T) Method

Check if this has a specific Behavior

public static bool HasBehavior<T>(this AirUnitModel model, out T behavior)
    where T : Model;

Type parameters

T

The Behavior you're checking for

Parameters

model Il2CppAssets.Scripts.Models.Towers.Behaviors.AirUnitModel

behavior T

Returns

System.Boolean

AirUnitModelBehaviorExt.HasBehavior(this AirUnitModel) Method

Check if this has a specific Behavior

public static bool HasBehavior<T>(this AirUnitModel model)
    where T : Model;

Type parameters

T

The Behavior you're checking for

Parameters

model Il2CppAssets.Scripts.Models.Towers.Behaviors.AirUnitModel

Returns

System.Boolean

AirUnitModelBehaviorExt.RemoveBehavior(this AirUnitModel, T) Method

Removes a specific behavior from a tower

public static void RemoveBehavior<T>(this AirUnitModel model, T behavior)
    where T : Model;

Type parameters

T

The Behavior you want to remove

Parameters

model Il2CppAssets.Scripts.Models.Towers.Behaviors.AirUnitModel

behavior T

AirUnitModelBehaviorExt.RemoveBehavior(this AirUnitModel) Method

Remove the first Behavior of Type T

public static void RemoveBehavior<T>(this AirUnitModel model)
    where T : Model;

Type parameters

T

The Behavior you want to remove

Parameters

model Il2CppAssets.Scripts.Models.Towers.Behaviors.AirUnitModel

AirUnitModelBehaviorExt.RemoveBehaviors(this AirUnitModel) Method

Remove all Behaviors of type T

public static void RemoveBehaviors(this AirUnitModel model);

Parameters

model Il2CppAssets.Scripts.Models.Towers.Behaviors.AirUnitModel

AirUnitModelBehaviorExt.RemoveBehaviors(this AirUnitModel) Method

Remove all Behaviors of type T

public static void RemoveBehaviors<T>(this AirUnitModel model)
    where T : Model;

Type parameters

T

The Behavior you want to remove

Parameters

model Il2CppAssets.Scripts.Models.Towers.Behaviors.AirUnitModel

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