Table of Contents
Extensions for ProjectileModels
public static class ProjectileModelExt
Inheritance System.Object ProjectileModelExt
Adds a new filter to this projectile model
public static void AddFilter(this ProjectileModel projectile, FilterModel filter);
projectile
Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel
filter
Il2CppAssets.Scripts.Models.Towers.Filters.FilterModel
Applies a given ModDisplay to this ProjectileModel
public static void ApplyDisplay<T>(this ProjectileModel projectileModel)
where T : BTD_Mod_Helper.Api.Display.ModDisplay;
T
The type of ModDisplay
projectileModel
Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel
Returns whether a projectile is able to hit Camo bloons
public static bool CanHitCamo(this ProjectileModel projectileModel);
projectileModel
Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel
Get the DamageModel behavior from the list of behaviors
public static DamageModel GetDamageModel(this ProjectileModel projectileModel);
projectileModel
Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel
Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.DamageModel
Get all Projectile Simulations that have this ProjectileModel
public static System.Collections.Generic.List<Projectile> GetProjectileSims(this ProjectileModel projectileModel);
projectileModel
Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel
System.Collections.Generic.List<Il2CppAssets.Scripts.Simulation.Towers.Projectiles.Projectile>
Removes a specific filter from this projectile model
public static void RemoveFilter(this ProjectileModel projectile, FilterModel filter);
projectile
Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel
filter
Il2CppAssets.Scripts.Models.Towers.Filters.FilterModel
Removes the first filter of the given type from this projectile model
public static void RemoveFilter<T>(this ProjectileModel projectile)
where T : FilterModel;
T
projectile
Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel
Sets the display for this projectile
public static void SetDisplay(this ProjectileModel projectileModel, PrefabReference display);
projectileModel
Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel
display
Il2CppNinjaKiwi.Common.ResourceUtils.PrefabReference
Sets the display for this projectile
public static void SetDisplay(this ProjectileModel projectileModel, string display);
projectileModel
Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel
display
System.String
Makes a projectile model able to see Camo or not
public static void SetHitCamo(this ProjectileModel projectileModel, bool canHitCamo);
projectileModel
Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel
canHitCamo
System.Boolean