Skip to Main Content

BTD_Mod_Helper​.Extensions​.ProjectileModelBehaviorExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

ProjectileModelBehaviorExt Class

Behavior Extensions for ProjectileModels

public static class ProjectileModelBehaviorExt

Inheritance System.Object  ProjectileModelBehaviorExt

Methods

ProjectileModelBehaviorExt.AddBehavior(this ProjectileModel, T) Method

Add a Behavior to this

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

Type parameters

T

The Behavior you want to add

Parameters

model Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel

behavior T

ProjectileModelBehaviorExt.GetBehavior(this ProjectileModel) Method

Return the first Behavior of type T

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

Type parameters

T

The Behavior you want

Parameters

model Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel

Returns

T

ProjectileModelBehaviorExt.GetBehaviors(this ProjectileModel) Method

Return all Behaviors of type T

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

Type parameters

T

The Behavior you want

Parameters

model Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel

Returns

System.Collections.Generic.List<T>

ProjectileModelBehaviorExt.HasBehavior(this ProjectileModel, T) Method

Check if this has a specific Behavior

public static bool HasBehavior<T>(this ProjectileModel model, out T behavior)
    where T : Model;

Type parameters

T

The Behavior you're checking for

Parameters

model Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel

behavior T

Returns

System.Boolean

ProjectileModelBehaviorExt.HasBehavior(this ProjectileModel) Method

Check if this has a specific Behavior

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

Type parameters

T

The Behavior you're checking for

Parameters

model Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel

Returns

System.Boolean

ProjectileModelBehaviorExt.RemoveBehavior(this ProjectileModel, T) Method

Remove the first Behavior of type T

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

Type parameters

T

The Behavior you want to remove

Parameters

model Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel

behavior T

ProjectileModelBehaviorExt.RemoveBehavior(this ProjectileModel) Method

Remove the first Behavior of Type T

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

Type parameters

T

The Behavior you want to remove

Parameters

model Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel

ProjectileModelBehaviorExt.RemoveBehaviors(this ProjectileModel) Method

Remove all Behaviors of type T

public static void RemoveBehaviors(this ProjectileModel model);

Parameters

model Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel

ProjectileModelBehaviorExt.RemoveBehaviors(this ProjectileModel) Method

Remove all Behaviors of type T

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

Type parameters

T

The Behavior you want to remove

Parameters

model Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel

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