Skip to Main Content

BTD_Mod_Helper​.Extensions​.AddBehaviorToBloonModelExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

AddBehaviorToBloonModelExt Class

Extensions for AddBehaviorToBloonModels

public static class AddBehaviorToBloonModelExt

Inheritance System.Object  AddBehaviorToBloonModelExt

Methods

AddBehaviorToBloonModelExt.AddBehavior(this AddBehaviorToBloonModel, T) Method

Add a Behavior to this model

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

Type parameters

T

Parameters

model Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.AddBehaviorToBloonModel

behavior T

AddBehaviorToBloonModelExt.GetBehavior(this AddBehaviorToBloonModel) Method

Return the first Behavior of type T, or null if there isn't one

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

Type parameters

T

The Behavior you want

Parameters

model Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.AddBehaviorToBloonModel

Returns

T

AddBehaviorToBloonModelExt.GetBehaviors(this AddBehaviorToBloonModel) Method

Return all Behaviors of type T

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

Type parameters

T

The Behavior you want

Parameters

model Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.AddBehaviorToBloonModel

Returns

System.Collections.Generic.List<T>

AddBehaviorToBloonModelExt.HasBehavior(this AddBehaviorToBloonModel) Method

Check if this has a specific Behavior

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

Type parameters

T

The Behavior you're checking for

Parameters

model Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.AddBehaviorToBloonModel

Returns

System.Boolean

AddBehaviorToBloonModelExt.RemoveBehavior(this AddBehaviorToBloonModel, T) Method

Removes a specific behavior from a tower

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

Type parameters

T

Parameters

model Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.AddBehaviorToBloonModel

behavior T

AddBehaviorToBloonModelExt.RemoveBehavior(this AddBehaviorToBloonModel) Method

Remove the first Behavior of Type T

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

Type parameters

T

The Behavior you want to remove

Parameters

model Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.AddBehaviorToBloonModel

AddBehaviorToBloonModelExt.RemoveBehaviors(this AddBehaviorToBloonModel) Method

Remove all Behaviors of type T

public static void RemoveBehaviors(this AddBehaviorToBloonModel model);

Parameters

model Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.AddBehaviorToBloonModel

AddBehaviorToBloonModelExt.RemoveBehaviors(this AddBehaviorToBloonModel) Method

Remove all Behaviors of type T

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

Type parameters

T

Parameters

model Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.AddBehaviorToBloonModel

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