Skip to Main Content

BTD_Mod_Helper​.Extensions​.ProjectileModelExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

ProjectileModelExt Class

Extensions for ProjectileModels

public static class ProjectileModelExt

Inheritance System.Object  ProjectileModelExt

Methods

ProjectileModelExt.AddFilter(this ProjectileModel, FilterModel) Method

Adds a new filter to this projectile model

public static void AddFilter(this ProjectileModel projectile, FilterModel filter);

Parameters

projectile Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel

filter Il2CppAssets.Scripts.Models.Towers.Filters.FilterModel

ProjectileModelExt.ApplyDisplay(this ProjectileModel) Method

Applies a given ModDisplay to this ProjectileModel

public static void ApplyDisplay<T>(this ProjectileModel projectileModel)
    where T : BTD_Mod_Helper.Api.Display.ModDisplay;

Type parameters

T

The type of ModDisplay

Parameters

projectileModel Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel

ProjectileModelExt.CanHitCamo(this ProjectileModel) Method

Returns whether a projectile is able to hit Camo bloons

public static bool CanHitCamo(this ProjectileModel projectileModel);

Parameters

projectileModel Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel

Returns

System.Boolean

ProjectileModelExt.GetDamageModel(this ProjectileModel) Method

Get the DamageModel behavior from the list of behaviors

public static DamageModel GetDamageModel(this ProjectileModel projectileModel);

Parameters

projectileModel Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel

Returns

Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.DamageModel

ProjectileModelExt.GetProjectileSims(this ProjectileModel) Method

Get all Projectile Simulations that have this ProjectileModel

public static System.Collections.Generic.List<Projectile> GetProjectileSims(this ProjectileModel projectileModel);

Parameters

projectileModel Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel

Returns

System.Collections.Generic.List<Il2CppAssets.Scripts.Simulation.Towers.Projectiles.Projectile>

ProjectileModelExt.RemoveFilter(this ProjectileModel, FilterModel) Method

Removes a specific filter from this projectile model

public static void RemoveFilter(this ProjectileModel projectile, FilterModel filter);

Parameters

projectile Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel

filter Il2CppAssets.Scripts.Models.Towers.Filters.FilterModel

ProjectileModelExt.RemoveFilter(this ProjectileModel) Method

Removes the first filter of the given type from this projectile model

public static void RemoveFilter<T>(this ProjectileModel projectile)
    where T : FilterModel;

Type parameters

T

Parameters

projectile Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel

ProjectileModelExt.SetDisplay(this ProjectileModel, PrefabReference) Method

Sets the display for this projectile

public static void SetDisplay(this ProjectileModel projectileModel, PrefabReference display);

Parameters

projectileModel Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel

display Il2CppNinjaKiwi.Common.ResourceUtils.PrefabReference

ProjectileModelExt.SetDisplay(this ProjectileModel, string) Method

Sets the display for this projectile

public static void SetDisplay(this ProjectileModel projectileModel, string display);

Parameters

projectileModel Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel

display System.String

ProjectileModelExt.SetHitCamo(this ProjectileModel, bool) Method

Makes a projectile model able to see Camo or not

public static void SetHitCamo(this ProjectileModel projectileModel, bool canHitCamo);

Parameters

projectileModel Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel

canHitCamo System.Boolean

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