Table of Contents
Behavior extensions for TowerModels
public static class TowerModelBehaviorExt
Inheritance System.Object TowerModelBehaviorExt
Adds a wrapped behavior from a ModelHelper to this tower
public static void AddBehavior(this TowerModel model, BTD_Mod_Helper.Api.Helpers.ModelHelper behavior);
model
Il2CppAssets.Scripts.Models.Towers.TowerModel
behavior
ModelHelper
Add a Behavior to this
public static void AddBehavior<T>(this TowerModel model, T behavior)
where T : Model;
T
The Behavior you want to add
model
Il2CppAssets.Scripts.Models.Towers.TowerModel
behavior
T
Return the first Behavior of type T
public static T GetBehavior<T>(this TowerModel model)
where T : Model;
T
The Behavior you want
model
Il2CppAssets.Scripts.Models.Towers.TowerModel
Return all Behaviors of type T
public static System.Collections.Generic.List<T> GetBehaviors<T>(this TowerModel model)
where T : Model;
T
The Behavior you want
model
Il2CppAssets.Scripts.Models.Towers.TowerModel
System.Collections.Generic.List<T>
Check if this has a specific Behavior
public static bool HasBehavior<T>(this TowerModel model, out T behavior)
where T : Model;
T
The Behavior you're checking for
model
Il2CppAssets.Scripts.Models.Towers.TowerModel
behavior
T
Check if this has a specific Behavior
public static bool HasBehavior<T>(this TowerModel model)
where T : Model;
T
The Behavior you're checking for
model
Il2CppAssets.Scripts.Models.Towers.TowerModel
Removes a specific behavior from a tower
public static void RemoveBehavior<T>(this TowerModel model, T behavior)
where T : Model;
T
The Behavior you want to remove
model
Il2CppAssets.Scripts.Models.Towers.TowerModel
behavior
T
Remove the first Behavior of Type T
public static void RemoveBehavior<T>(this TowerModel model)
where T : Model;
T
The Behavior you want to remove
model
Il2CppAssets.Scripts.Models.Towers.TowerModel
Remove all Behaviors
public static void RemoveBehaviors(this TowerModel model);
model
Il2CppAssets.Scripts.Models.Towers.TowerModel
Remove all Behaviors of type T
public static void RemoveBehaviors<T>(this TowerModel model)
where T : Model;
T
The Behavior you want to remove