Extensions for ProjectileFilterModels
public static class ProjectileFilterModelExt
Inheritance System.Object ProjectileFilterModelExt
Adds a wrapped behavior from a ModelHelper to this tower
public static void AddFilter(this ProjectileFilterModel model, BTD_Mod_Helper.Api.Helpers.ModelHelper behavior);
model Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.ProjectileFilterModel
behavior ModelHelper
Add a Behavior to this model
public static void AddFilter<T>(this ProjectileFilterModel model, T behavior)
where T : Model;
T
model Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.ProjectileFilterModel
behavior T
Return the index'th Behavior of type T, or null
public static T GetFilter<T>(this ProjectileFilterModel model, int index)
where T : Model;
T
The Behavior you want
model Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.ProjectileFilterModel
index System.Int32
Return the first Behavior of type T whose name contains the given string, or null
public static T GetFilter<T>(this ProjectileFilterModel model, string nameContains)
where T : Model;
T
The Behavior you want
model Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.ProjectileFilterModel
nameContains System.String
Return the first Behavior of type T, or null if there isn't one
public static T GetFilter<T>(this ProjectileFilterModel model)
where T : Model;
T
The Behavior you want
model Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.ProjectileFilterModel
Return all Behaviors of type T
public static System.Collections.Generic.List<T> GetFilters<T>(this ProjectileFilterModel model)
where T : Model;
T
The Behavior you want
model Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.ProjectileFilterModel
System.Collections.Generic.List<T>
Check if this has a specific named Behavior and return it
public static bool HasFilter<T>(this ProjectileFilterModel model, string nameContains, out T behavior)
where T : Model;
T
The Behavior you're checking for
model Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.ProjectileFilterModel
nameContains System.String
behavior T
Check if this has a specific named Behavior and return it
public static bool HasFilter<T>(this ProjectileFilterModel model, string nameContains)
where T : Model;
T
The Behavior you're checking for
model Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.ProjectileFilterModel
nameContains System.String
Check if this has a specific Behavior and return it
public static bool HasFilter<T>(this ProjectileFilterModel model, out T behavior)
where T : Model;
T
The Behavior you're checking for
model Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.ProjectileFilterModel
behavior T
Check if this has a specific Behavior
public static bool HasFilter<T>(this ProjectileFilterModel model)
where T : Model;
T
The Behavior you're checking for
model Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.ProjectileFilterModel
Remove all Behaviors of type T
public static void RemoveFilter(this ProjectileFilterModel model);
model Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.ProjectileFilterModel
Remove the index'th Behavior of Type T
public static void RemoveFilter<T>(this ProjectileFilterModel model, int index)
where T : Model;
T
The Behavior you want to remove
model Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.ProjectileFilterModel
index System.Int32
Remove the first Behavior of Type T whose name contains a certain string
public static void RemoveFilter<T>(this ProjectileFilterModel model, string nameContains)
where T : Model;
T
The Behavior you want to remove
model Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.ProjectileFilterModel
nameContains System.String
Removes a specific behavior from a tower
public static void RemoveFilter<T>(this ProjectileFilterModel model, T behavior)
where T : Model;
T
model Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.ProjectileFilterModel
behavior T
Remove the first Behavior of Type T
public static void RemoveFilter<T>(this ProjectileFilterModel model)
where T : Model;
T
The Behavior you want to remove
model Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.ProjectileFilterModel
Remove all Behaviors of type T
public static void RemoveFilters<T>(this ProjectileFilterModel model)
where T : Model;
T
model Il2CppAssets.Scripts.Models.Towers.Projectiles.Behaviors.ProjectileFilterModel