Skip to Main Content

BTD_Mod_Helper​.Extensions​.AttackModelBehaviorExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

AttackModelBehaviorExt Class

Behavior Extensions for AttackModel

public static class AttackModelBehaviorExt

Inheritance System.Object  AttackModelBehaviorExt

Methods

AttackModelBehaviorExt.AddBehavior(this AttackModel, T) Method

Add a Behavior to this

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

Type parameters

T

The Behavior you want to add

Parameters

model Il2CppAssets.Scripts.Models.Towers.Behaviors.Attack.AttackModel

behavior T

AttackModelBehaviorExt.GetBehavior(this AttackModel) Method

Return the first Behavior of type T

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

Type parameters

T

The Behavior you want

Parameters

model Il2CppAssets.Scripts.Models.Towers.Behaviors.Attack.AttackModel

Returns

T

AttackModelBehaviorExt.GetBehaviors(this AttackModel) Method

Return all Behaviors of type T

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

Type parameters

T

The Behavior you want

Parameters

model Il2CppAssets.Scripts.Models.Towers.Behaviors.Attack.AttackModel

Returns

System.Collections.Generic.List<T>

AttackModelBehaviorExt.HasBehavior(this AttackModel, T) Method

Check if this has a specific Behavior

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

Type parameters

T

The Behavior you're checking for

Parameters

model Il2CppAssets.Scripts.Models.Towers.Behaviors.Attack.AttackModel

behavior T

Returns

System.Boolean

AttackModelBehaviorExt.HasBehavior(this AttackModel) Method

Check if this has a specific Behavior

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

Type parameters

T

The Behavior you're checking for

Parameters

model Il2CppAssets.Scripts.Models.Towers.Behaviors.Attack.AttackModel

Returns

System.Boolean

AttackModelBehaviorExt.RemoveBehavior(this AttackModel, T) Method

Remove the first Behavior of type T

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

Type parameters

T

The Behavior you want to remove

Parameters

model Il2CppAssets.Scripts.Models.Towers.Behaviors.Attack.AttackModel

behavior T

AttackModelBehaviorExt.RemoveBehavior(this AttackModel) Method

Remove the first Behavior of Type T

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

Type parameters

T

The Behavior you want to remove

Parameters

model Il2CppAssets.Scripts.Models.Towers.Behaviors.Attack.AttackModel

AttackModelBehaviorExt.RemoveBehaviors(this AttackModel) Method

Remove all Behaviors of type T

public static void RemoveBehaviors(this AttackModel model);

Parameters

model Il2CppAssets.Scripts.Models.Towers.Behaviors.Attack.AttackModel

AttackModelBehaviorExt.RemoveBehaviors(this AttackModel) Method

Remove all Behaviors of type T

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

Type parameters

T

The Behavior you want to remove

Parameters

model Il2CppAssets.Scripts.Models.Towers.Behaviors.Attack.AttackModel

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