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(AddBehaviorToBloonModel, ModelHelper) Method

Adds a wrapped behavior from a ModelHelper to this tower

public static void AddBehavior(AddBehaviorToBloonModel model, BTD_Mod_Helper.Api.Helpers.ModelHelper behavior);

Parameters

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

behavior ModelHelper

AddBehaviorToBloonModelExt.AddBehavior(AddBehaviorToBloonModel, T) Method

Add a Behavior to this model

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

Type parameters

T

Parameters

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

behavior T

AddBehaviorToBloonModelExt.GetBehavior(AddBehaviorToBloonModel) Method

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

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

Type parameters

T

The Behavior you want

Parameters

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

Returns

T

AddBehaviorToBloonModelExt.GetBehavior(AddBehaviorToBloonModel, int) Method

Return the index'th Behavior of type T, or null

public static T GetBehavior<T>(AddBehaviorToBloonModel model, int index)
    where T : Model;

Type parameters

T

The Behavior you want

Parameters

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

index System.Int32

Returns

T

AddBehaviorToBloonModelExt.GetBehavior(AddBehaviorToBloonModel, string) Method

Return the first Behavior of type T whose name contains the given string, or null

public static T GetBehavior<T>(AddBehaviorToBloonModel model, string nameContains)
    where T : Model;

Type parameters

T

The Behavior you want

Parameters

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

nameContains System.String

Returns

T

AddBehaviorToBloonModelExt.GetBehaviors(AddBehaviorToBloonModel) Method

Return all Behaviors of type T

public static System.Collections.Generic.List<T> GetBehaviors<T>(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(AddBehaviorToBloonModel) Method

Check if this has a specific Behavior

public static bool HasBehavior<T>(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(AddBehaviorToBloonModel) Method

Remove the first Behavior of Type T

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

Type parameters

T

The Behavior you want to remove

Parameters

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

AddBehaviorToBloonModelExt.RemoveBehavior(AddBehaviorToBloonModel, T) Method

Removes a specific behavior from a tower

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

Type parameters

T

Parameters

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

behavior T

AddBehaviorToBloonModelExt.RemoveBehaviors(AddBehaviorToBloonModel) Method

Remove all Behaviors of type T

public static void RemoveBehaviors(AddBehaviorToBloonModel model);

Parameters

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

AddBehaviorToBloonModelExt.RemoveBehaviors(AddBehaviorToBloonModel) Method

Remove all Behaviors of type T

public static void RemoveBehaviors<T>(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