Skip to Main Content

BTD_Mod_Helper​.Extensions​.BloonBehaviorExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

BloonBehaviorExt Class

Extensions for getting bloon behaviors

public static class BloonBehaviorExt

Inheritance System.Object  BloonBehaviorExt

Methods

BloonBehaviorExt.AddBloonBehavior(this Bloon, T) Method

Add a Behavior to this

public static void AddBloonBehavior<T>(this Bloon bloon, T behavior)
    where T : BloonBehavior;

Type parameters

T

The Behavior you want to add

Parameters

bloon Il2CppAssets.Scripts.Simulation.Bloons.Bloon

behavior T

BloonBehaviorExt.GetBloonBehavior(this Bloon) Method

Return the first Behavior of type T

public static T GetBloonBehavior<T>(this Bloon bloon)
    where T : BloonBehavior;

Type parameters

T

The Behavior you want

Parameters

bloon Il2CppAssets.Scripts.Simulation.Bloons.Bloon

Returns

T

BloonBehaviorExt.GetBloonBehaviors(this Bloon) Method

Return all Behaviors of type T

public static System.Collections.Generic.List<T> GetBloonBehaviors<T>(this Bloon bloon)
    where T : BloonBehavior;

Type parameters

T

The Behavior you want

Parameters

bloon Il2CppAssets.Scripts.Simulation.Bloons.Bloon

Returns

System.Collections.Generic.List<T>

BloonBehaviorExt.HasBloonBehavior(this Bloon, T) Method

Check if this has a specific Behavior

public static bool HasBloonBehavior<T>(this Bloon bloon, out T item)
    where T : BloonBehavior;

Type parameters

T

The Behavior you're checking for

Parameters

bloon Il2CppAssets.Scripts.Simulation.Bloons.Bloon

item T

The found item, if any

Returns

System.Boolean

BloonBehaviorExt.HasBloonBehavior(this Bloon) Method

Check if this has a specific Behavior

public static bool HasBloonBehavior<T>(this Bloon bloon)
    where T : BloonBehavior;

Type parameters

T

The Behavior you're checking for

Parameters

bloon Il2CppAssets.Scripts.Simulation.Bloons.Bloon

Returns

System.Boolean

BloonBehaviorExt.RemoveBloonBehavior(this Bloon, T) Method

Remove the first Behavior of type T

public static void RemoveBloonBehavior<T>(this Bloon bloon, T behavior)
    where T : BloonBehavior;

Type parameters

T

The Behavior you want to remove

Parameters

bloon Il2CppAssets.Scripts.Simulation.Bloons.Bloon

behavior T

BloonBehaviorExt.RemoveBloonBehavior(this Bloon) Method

Remove the first Behavior of Type T

public static void RemoveBloonBehavior<T>(this Bloon bloon)
    where T : BloonBehavior;

Type parameters

T

The Behavior you want to remove

Parameters

bloon Il2CppAssets.Scripts.Simulation.Bloons.Bloon

BloonBehaviorExt.RemoveBloonBehaviors(this Bloon) Method

Remove all Behaviors of type T

public static void RemoveBloonBehaviors<T>(this Bloon bloon)
    where T : BloonBehavior;

Type parameters

T

The Behavior you want to remove

Parameters

bloon Il2CppAssets.Scripts.Simulation.Bloons.Bloon

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