Skip to Main Content

BTD_Mod_Helper​.Extensions​.EmissionModelBehaviorExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

EmissionModelBehaviorExt Class

Extensions for EmissionModels

public static class EmissionModelBehaviorExt

Inheritance System.Object  EmissionModelBehaviorExt

Methods

EmissionModelBehaviorExt.AddBehavior(this EmissionModel, T) Method

Add a Behavior to this model

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

Type parameters

T

Parameters

model Il2CppAssets.Scripts.Models.Towers.Behaviors.Emissions.EmissionModel

behavior T

EmissionModelBehaviorExt.GetBehavior(this EmissionModel) Method

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

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

Type parameters

T

The Behavior you want

Parameters

model Il2CppAssets.Scripts.Models.Towers.Behaviors.Emissions.EmissionModel

Returns

T

EmissionModelBehaviorExt.GetBehaviors(this EmissionModel) Method

Return all Behaviors of type T

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

Type parameters

T

The Behavior you want

Parameters

model Il2CppAssets.Scripts.Models.Towers.Behaviors.Emissions.EmissionModel

Returns

System.Collections.Generic.List<T>

EmissionModelBehaviorExt.HasBehavior(this EmissionModel) Method

Check if this has a specific Behavior

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

Type parameters

T

The Behavior you're checking for

Parameters

model Il2CppAssets.Scripts.Models.Towers.Behaviors.Emissions.EmissionModel

Returns

System.Boolean

EmissionModelBehaviorExt.RemoveBehavior(this EmissionModel, T) Method

Removes a specific behavior from a tower

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

Type parameters

T

Parameters

model Il2CppAssets.Scripts.Models.Towers.Behaviors.Emissions.EmissionModel

behavior T

EmissionModelBehaviorExt.RemoveBehavior(this EmissionModel) Method

Remove the first Behavior of Type T

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

Type parameters

T

The Behavior you want to remove

Parameters

model Il2CppAssets.Scripts.Models.Towers.Behaviors.Emissions.EmissionModel

EmissionModelBehaviorExt.RemoveBehaviors(this EmissionModel) Method

Remove all Behaviors of type T

public static void RemoveBehaviors(this EmissionModel model);

Parameters

model Il2CppAssets.Scripts.Models.Towers.Behaviors.Emissions.EmissionModel

EmissionModelBehaviorExt.RemoveBehaviors(this EmissionModel) Method

Remove all Behaviors of type T

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

Type parameters

T

Parameters

model Il2CppAssets.Scripts.Models.Towers.Behaviors.Emissions.EmissionModel

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