Skip to Main Content

BTD_Mod_Helper​.Extensions​.BloonModelBehaviorExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

BloonModelBehaviorExt Class

Behavior extensions for BloonModels

public static class BloonModelBehaviorExt

Inheritance System.Object  BloonModelBehaviorExt

Methods

BloonModelBehaviorExt.AddBehavior(this BloonModel, T) Method

Add a Behavior to this

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

Type parameters

T

The Behavior you want to add

Parameters

model Il2CppAssets.Scripts.Models.Bloons.BloonModel

behavior T

BloonModelBehaviorExt.GetBehavior(this BloonModel) Method

Return the first Behavior of type T

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

Type parameters

T

The Behavior you want

Parameters

model Il2CppAssets.Scripts.Models.Bloons.BloonModel

Returns

T

BloonModelBehaviorExt.GetBehaviors(this BloonModel) Method

Return all Behaviors of type T

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

Type parameters

T

The Behavior you want

Parameters

model Il2CppAssets.Scripts.Models.Bloons.BloonModel

Returns

System.Collections.Generic.List<T>

BloonModelBehaviorExt.HasBehavior(this BloonModel) Method

Check if this has a specific Behavior

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

Type parameters

T

The Behavior you're checking for

Parameters

model Il2CppAssets.Scripts.Models.Bloons.BloonModel

Returns

System.Boolean

BloonModelBehaviorExt.RemoveBehavior(this BloonModel, T) Method

Remove the first Behavior of type T

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

Type parameters

T

The Behavior you want to remove

Parameters

model Il2CppAssets.Scripts.Models.Bloons.BloonModel

behavior T

BloonModelBehaviorExt.RemoveBehavior(this BloonModel) Method

Remove the first Behavior of Type T

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

Type parameters

T

The Behavior you want to remove

Parameters

model Il2CppAssets.Scripts.Models.Bloons.BloonModel

BloonModelBehaviorExt.RemoveBehaviors(this BloonModel) Method

Remove all Behaviors of type T

public static void RemoveBehaviors(this BloonModel model);

Parameters

model Il2CppAssets.Scripts.Models.Bloons.BloonModel

BloonModelBehaviorExt.RemoveBehaviors(this BloonModel) Method

Remove all Behaviors of type T

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

Type parameters

T

The Behavior you want to remove

Parameters

model Il2CppAssets.Scripts.Models.Bloons.BloonModel

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