Skip to Main Content

BTD_Mod_Helper​.Extensions​.ProjectileBehaviorExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

ProjectileBehaviorExt Class

Behavior extensions for projectiles

public static class ProjectileBehaviorExt

Inheritance System.Object  ProjectileBehaviorExt

Methods

ProjectileBehaviorExt.AddProjectileBehavior(this Projectile, T) Method

Add a Behavior to this

public static void AddProjectileBehavior<T>(this Projectile projectile, T behavior)
    where T : ProjectileBehavior;

Type parameters

T

Parameters

projectile Il2CppAssets.Scripts.Simulation.Towers.Projectiles.Projectile

behavior T

ProjectileBehaviorExt.GetProjectileBehavior(this Projectile) Method

Return the first Behavior of type T

public static T GetProjectileBehavior<T>(this Projectile projectile)
    where T : ProjectileBehavior;

Type parameters

T

Parameters

projectile Il2CppAssets.Scripts.Simulation.Towers.Projectiles.Projectile

Returns

T

ProjectileBehaviorExt.GetProjectileBehaviors(this Projectile) Method

Return all Behaviors of type T

public static System.Collections.Generic.List<T> GetProjectileBehaviors<T>(this Projectile projectile)
    where T : ProjectileBehavior;

Type parameters

T

Parameters

projectile Il2CppAssets.Scripts.Simulation.Towers.Projectiles.Projectile

Returns

System.Collections.Generic.List<T>

ProjectileBehaviorExt.HasProjectileBehavior(this Projectile, T) Method

Check if this has a specific Behavior

public static bool HasProjectileBehavior<T>(this Projectile projectile, out T item)
    where T : ProjectileBehavior;

Type parameters

T

Parameters

projectile Il2CppAssets.Scripts.Simulation.Towers.Projectiles.Projectile

item T

Returns

System.Boolean

ProjectileBehaviorExt.HasProjectileBehavior(this Projectile) Method

Check if this has a specific Behavior

public static bool HasProjectileBehavior<T>(this Projectile projectile)
    where T : ProjectileBehavior;

Type parameters

T

Parameters

projectile Il2CppAssets.Scripts.Simulation.Towers.Projectiles.Projectile

Returns

System.Boolean

ProjectileBehaviorExt.RemoveProjectileBehavior(this Projectile, T) Method

Remove the first Behavior of type T

public static void RemoveProjectileBehavior<T>(this Projectile projectile, T behavior)
    where T : ProjectileBehavior;

Type parameters

T

Parameters

projectile Il2CppAssets.Scripts.Simulation.Towers.Projectiles.Projectile

behavior T

ProjectileBehaviorExt.RemoveProjectileBehavior(this Projectile) Method

Remove the first Behavior of Type T

public static void RemoveProjectileBehavior<T>(this Projectile projectile)
    where T : ProjectileBehavior;

Type parameters

T

Parameters

projectile Il2CppAssets.Scripts.Simulation.Towers.Projectiles.Projectile

ProjectileBehaviorExt.RemoveProjectileBehaviors(this Projectile) Method

Remove all Behaviors of type T

public static void RemoveProjectileBehaviors<T>(this Projectile projectile)
    where T : ProjectileBehavior;

Type parameters

T

Parameters

projectile Il2CppAssets.Scripts.Simulation.Towers.Projectiles.Projectile

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