Skip to Main Content

BTD_Mod_Helper​.Extensions​.EmissionBehaviorExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

EmissionBehaviorExt Class

Behavior extensions for Emissions

public static class EmissionBehaviorExt

Inheritance System.Object  EmissionBehaviorExt

Methods

EmissionBehaviorExt.AddEmissionBehavior(this Emission, T) Method

Add a Behavior to this

public static void AddEmissionBehavior<T>(this Emission emission, T behavior)
    where T : RootBehavior;

Type parameters

T

The Behavior you want to add

Parameters

emission Il2CppAssets.Scripts.Simulation.Towers.Emissions.Emission

behavior T

EmissionBehaviorExt.GetEmissionBehavior(this Emission) Method

Return the first Behavior of type T

public static T GetEmissionBehavior<T>(this Emission emission)
    where T : RootBehavior;

Type parameters

T

The Behavior you want

Parameters

emission Il2CppAssets.Scripts.Simulation.Towers.Emissions.Emission

Returns

T

EmissionBehaviorExt.GetEmissionBehaviors(this Emission) Method

Return all Behaviors of type T

public static List<T> GetEmissionBehaviors<T>(this Emission emission)
    where T : RootBehavior;

Type parameters

T

The Behavior you want

Parameters

emission Il2CppAssets.Scripts.Simulation.Towers.Emissions.Emission

Returns

Il2CppSystem.Collections.Generic.List

EmissionBehaviorExt.HasEmissionBehavior(this Emission, T) Method

Check if this has a specific Behavior

public static bool HasEmissionBehavior<T>(this Emission emission, out T item)
    where T : RootBehavior;

Type parameters

T

The Behavior you're checking for

Parameters

emission Il2CppAssets.Scripts.Simulation.Towers.Emissions.Emission

item T

The returned item, if it exists

Returns

System.Boolean

EmissionBehaviorExt.HasEmissionBehavior(this Emission) Method

Check if this has a specific Behavior

public static bool HasEmissionBehavior<T>(this Emission emission)
    where T : RootBehavior;

Type parameters

T

The Behavior you're checking for

Parameters

emission Il2CppAssets.Scripts.Simulation.Towers.Emissions.Emission

Returns

System.Boolean

EmissionBehaviorExt.RemoveEmissionBehavior(this Emission, T) Method

Remove the first Behavior of type T

public static void RemoveEmissionBehavior<T>(this Emission emission, T behavior)
    where T : RootBehavior;

Type parameters

T

The Behavior you want to remove

Parameters

emission Il2CppAssets.Scripts.Simulation.Towers.Emissions.Emission

behavior T

EmissionBehaviorExt.RemoveEmissionBehavior(this Emission) Method

Remove the first Behavior of Type T

public static void RemoveEmissionBehavior<T>(this Emission emission)
    where T : RootBehavior;

Type parameters

T

The Behavior you want to remove

Parameters

emission Il2CppAssets.Scripts.Simulation.Towers.Emissions.Emission

EmissionBehaviorExt.RemoveEmissionBehaviors(this Emission) Method

Remove all Behaviors of type T

public static void RemoveEmissionBehaviors<T>(this Emission emission)
    where T : RootBehavior;

Type parameters

T

The Behavior you want to remove

Parameters

emission Il2CppAssets.Scripts.Simulation.Towers.Emissions.Emission