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