Table of Contents
Behavior extensions for ItemArtifactModels and BoostArtifactModels
public static class ArtifactModelBehaviorExt
Inheritance System.Object ArtifactModelBehaviorExt
Adds a wrapped behavior from a ModelHelper to this tower
public static void AddBehavior(this BoostArtifactModel model, BTD_Mod_Helper.Api.Helpers.ModelHelper behavior);
model
Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel
behavior
ModelHelper
Adds a wrapped behavior from a ModelHelper to this tower
public static void AddBehavior(this ItemArtifactModel model, BTD_Mod_Helper.Api.Helpers.ModelHelper behavior);
model
Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel
behavior
ModelHelper
Adds a wrapped behavior from a ModelHelper to this tower
public static void AddBehavior(this MapArtifactModel model, BTD_Mod_Helper.Api.Helpers.ModelHelper behavior);
model
Il2CppAssets.Scripts.Models.Artifacts.MapArtifactModel
behavior
ModelHelper
Add a Behavior to this model
public static void AddBehavior<T>(this BoostArtifactModel model, T behavior)
where T : Model;
T
model
Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel
behavior
T
Add a Behavior to this model
public static void AddBehavior<T>(this ItemArtifactModel model, T behavior)
where T : Model;
T
model
Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel
behavior
T
Add a Behavior to this model
public static void AddBehavior<T>(this MapArtifactModel model, T behavior)
where T : Model;
T
model
Il2CppAssets.Scripts.Models.Artifacts.MapArtifactModel
behavior
T
Helper method for ItemArtifacts to easily add BoostArtifactBehaviorModels via InvokeBoostBuffBehaviorModel like many vanilla items do
public static void AddBoostBehavior(this ItemArtifactModel artifact, BoostArtifactBehaviorModel boostBehavior, System.Action<BoostArtifactModel> modifyBoost=null);
artifact
Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel
this
boostBehavior
Il2CppAssets.Scripts.Models.Artifacts.Behaviors.BoostArtifactBehaviorModel
Boost behavior to add
modifyBoost
System.Action<Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel>
function for modifying the boost, like for filtering it to specific towers
Helper method for ItemArtifacts to easily add BoostArtifactBehaviorModels via InvokeBoostBuffBehaviorModel like many vanilla items do
public static void AddBoostBehaviors(this ItemArtifactModel artifact, System.Collections.Generic.IEnumerable<BoostArtifactBehaviorModel> boostBehaviors, System.Action<BoostArtifactModel> modifyBoost=null);
artifact
Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel
this
boostBehaviors
System.Collections.Generic.IEnumerable<Il2CppAssets.Scripts.Models.Artifacts.Behaviors.BoostArtifactBehaviorModel>
Boost behaviors to add
modifyBoost
System.Action<Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel>
function for modifying the boost, like for filtering it to specific towers
Helper method for ItemArtifacts to easily add ProjectileBehaviors to projectiles via AddProjectileBehaviorsArtifactModel like many vanilla items do
public static void AddProjectileBehavior(this ItemArtifactModel artifact, ProjectileBehaviorModel projectileBehavior, System.Action<AddProjectileBehaviorsArtifactModel> modifyBoost=null);
artifact
Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel
this
projectileBehavior
Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileBehaviorModel
Projectile behavior to add
modifyBoost
System.Action<Il2CppAssets.Scripts.Models.Artifacts.Behaviors.AddProjectileBehaviorsArtifactModel>
function for modifying the boost, like for filtering it to specific projectiles
Helper method for ItemArtifacts to easily add ProjectileBehaviors to projectiles via AddProjectileBehaviorsArtifactModel like many vanilla items do
public static void AddProjectileBehaviors(this ItemArtifactModel artifact, System.Collections.Generic.IEnumerable<ProjectileBehaviorModel> projectileBehaviors, System.Action<AddProjectileBehaviorsArtifactModel> modifyBoost=null);
artifact
Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel
this
projectileBehaviors
System.Collections.Generic.IEnumerable<Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileBehaviorModel>
Projectile behaviors to add
modifyBoost
System.Action<Il2CppAssets.Scripts.Models.Artifacts.Behaviors.AddProjectileBehaviorsArtifactModel>
function for modifying the boost, like for filtering it to specific projectiles
Helper method for ItemArtifacts to easily add TowerBehaviors to towers via AddTowerBehaviorsArtifactModel like many vanilla items do
public static void AddTowerBehavior(this ItemArtifactModel artifact, TowerBehaviorModel towerBehavior, System.Action<AddTowerBehaviorsArtifactModel> modifyBoost=null);
artifact
Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel
this
towerBehavior
Il2CppAssets.Scripts.Models.Towers.TowerBehaviorModel
Tower behavior to add
modifyBoost
System.Action<Il2CppAssets.Scripts.Models.Artifacts.Behaviors.AddTowerBehaviorsArtifactModel>
function for modifying the boost, like for filtering it to specific towers
Helper method for ItemArtifacts to easily add TowerBehaviors to towers via AddTowerBehaviorsArtifactModel like many vanilla items do
public static void AddTowerBehaviors(this ItemArtifactModel artifact, System.Collections.Generic.IEnumerable<TowerBehaviorModel> towerBehaviors, System.Action<AddTowerBehaviorsArtifactModel> modifyBoost=null);
artifact
Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel
this
towerBehaviors
System.Collections.Generic.IEnumerable<Il2CppAssets.Scripts.Models.Towers.TowerBehaviorModel>
Tower behaviors to add
modifyBoost
System.Action<Il2CppAssets.Scripts.Models.Artifacts.Behaviors.AddTowerBehaviorsArtifactModel>
function for modifying the boost, like for filtering it to specific towers
Return the first Behavior of type T, or null if there isn't one
public static T GetBehavior<T>(this BoostArtifactModel model)
where T : Model;
T
The Behavior you want
model
Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel
Return the index'th Behavior of type T, or null
public static T GetBehavior<T>(this BoostArtifactModel model, int index)
where T : Model;
T
The Behavior you want
model
Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel
index
System.Int32
Return the first Behavior of type T whose name contains the given string, or null
public static T GetBehavior<T>(this BoostArtifactModel model, string nameContains)
where T : Model;
T
The Behavior you want
model
Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel
nameContains
System.String
Return the first Behavior of type T, or null if there isn't one
public static T GetBehavior<T>(this ItemArtifactModel model)
where T : Model;
T
The Behavior you want
model
Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel
Return the index'th Behavior of type T, or null
public static T GetBehavior<T>(this ItemArtifactModel model, int index)
where T : Model;
T
The Behavior you want
model
Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel
index
System.Int32
Return the first Behavior of type T whose name contains the given string, or null
public static T GetBehavior<T>(this ItemArtifactModel model, string nameContains)
where T : Model;
T
The Behavior you want
model
Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel
nameContains
System.String
Return the first Behavior of type T, or null if there isn't one
public static T GetBehavior<T>(this MapArtifactModel model)
where T : Model;
T
The Behavior you want
model
Il2CppAssets.Scripts.Models.Artifacts.MapArtifactModel
Return the index'th Behavior of type T, or null
public static T GetBehavior<T>(this MapArtifactModel model, int index)
where T : Model;
T
The Behavior you want
model
Il2CppAssets.Scripts.Models.Artifacts.MapArtifactModel
index
System.Int32
Return the first Behavior of type T whose name contains the given string, or null
public static T GetBehavior<T>(this MapArtifactModel model, string nameContains)
where T : Model;
T
The Behavior you want
model
Il2CppAssets.Scripts.Models.Artifacts.MapArtifactModel
nameContains
System.String
Return all Behaviors of type T
public static System.Collections.Generic.List<T> GetBehaviors<T>(this BoostArtifactModel model)
where T : Model;
T
The Behavior you want
model
Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel
System.Collections.Generic.List<T>
Return all Behaviors of type T
public static System.Collections.Generic.List<T> GetBehaviors<T>(this ItemArtifactModel model)
where T : Model;
T
The Behavior you want
model
Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel
System.Collections.Generic.List<T>
Return all Behaviors of type T
public static System.Collections.Generic.List<T> GetBehaviors<T>(this MapArtifactModel model)
where T : Model;
T
The Behavior you want
model
Il2CppAssets.Scripts.Models.Artifacts.MapArtifactModel
System.Collections.Generic.List<T>
Check if this has a specific Behavior
public static bool HasBehavior<T>(this BoostArtifactModel model)
where T : Model;
T
The Behavior you're checking for
model
Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel
Check if this has a specific named Behavior and return it
public static bool HasBehavior<T>(this BoostArtifactModel model, string nameContains, out T behavior)
where T : Model;
T
The Behavior you're checking for
model
Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel
nameContains
System.String
behavior
T
Check if this has a specific Behavior and return it
public static bool HasBehavior<T>(this BoostArtifactModel model, out T behavior)
where T : Model;
T
The Behavior you're checking for
model
Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel
behavior
T
Check if this has a specific Behavior
public static bool HasBehavior<T>(this ItemArtifactModel model)
where T : Model;
T
The Behavior you're checking for
model
Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel
Check if this has a specific named Behavior and return it
public static bool HasBehavior<T>(this ItemArtifactModel model, string nameContains, out T behavior)
where T : Model;
T
The Behavior you're checking for
model
Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel
nameContains
System.String
behavior
T
Check if this has a specific Behavior and return it
public static bool HasBehavior<T>(this ItemArtifactModel model, out T behavior)
where T : Model;
T
The Behavior you're checking for
model
Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel
behavior
T
Check if this has a specific Behavior
public static bool HasBehavior<T>(this MapArtifactModel model)
where T : Model;
T
The Behavior you're checking for
model
Il2CppAssets.Scripts.Models.Artifacts.MapArtifactModel
Check if this has a specific named Behavior and return it
public static bool HasBehavior<T>(this MapArtifactModel model, string nameContains, out T behavior)
where T : Model;
T
The Behavior you're checking for
model
Il2CppAssets.Scripts.Models.Artifacts.MapArtifactModel
nameContains
System.String
behavior
T
Check if this has a specific Behavior and return it
public static bool HasBehavior<T>(this MapArtifactModel model, out T behavior)
where T : Model;
T
The Behavior you're checking for
model
Il2CppAssets.Scripts.Models.Artifacts.MapArtifactModel
behavior
T
Remove the first Behavior of Type T
public static void RemoveBehavior<T>(this BoostArtifactModel model)
where T : Model;
T
The Behavior you want to remove
model
Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel
Remove the index'th Behavior of Type T
public static void RemoveBehavior<T>(this BoostArtifactModel model, int index)
where T : Model;
T
The Behavior you want to remove
model
Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel
index
System.Int32
Remove the first Behavior of Type T whose name contains a certain string
public static void RemoveBehavior<T>(this BoostArtifactModel model, string nameContains)
where T : Model;
T
The Behavior you want to remove
model
Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel
nameContains
System.String
Removes a specific behavior from a tower
public static void RemoveBehavior<T>(this BoostArtifactModel model, T behavior)
where T : Model;
T
model
Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel
behavior
T
Remove the first Behavior of Type T
public static void RemoveBehavior<T>(this ItemArtifactModel model)
where T : Model;
T
The Behavior you want to remove
model
Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel
Remove the index'th Behavior of Type T
public static void RemoveBehavior<T>(this ItemArtifactModel model, int index)
where T : Model;
T
The Behavior you want to remove
model
Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel
index
System.Int32
Remove the first Behavior of Type T whose name contains a certain string
public static void RemoveBehavior<T>(this ItemArtifactModel model, string nameContains)
where T : Model;
T
The Behavior you want to remove
model
Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel
nameContains
System.String
Removes a specific behavior from a tower
public static void RemoveBehavior<T>(this ItemArtifactModel model, T behavior)
where T : Model;
T
model
Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel
behavior
T
Remove the first Behavior of Type T
public static void RemoveBehavior<T>(this MapArtifactModel model)
where T : Model;
T
The Behavior you want to remove
model
Il2CppAssets.Scripts.Models.Artifacts.MapArtifactModel
Remove the index'th Behavior of Type T
public static void RemoveBehavior<T>(this MapArtifactModel model, int index)
where T : Model;
T
The Behavior you want to remove
model
Il2CppAssets.Scripts.Models.Artifacts.MapArtifactModel
index
System.Int32
Remove the first Behavior of Type T whose name contains a certain string
public static void RemoveBehavior<T>(this MapArtifactModel model, string nameContains)
where T : Model;
T
The Behavior you want to remove
model
Il2CppAssets.Scripts.Models.Artifacts.MapArtifactModel
nameContains
System.String
Removes a specific behavior from a tower
public static void RemoveBehavior<T>(this MapArtifactModel model, T behavior)
where T : Model;
T
model
Il2CppAssets.Scripts.Models.Artifacts.MapArtifactModel
behavior
T
Remove all Behaviors of type T
public static void RemoveBehaviors(this BoostArtifactModel model);
model
Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel
Remove all Behaviors of type T
public static void RemoveBehaviors(this ItemArtifactModel model);
model
Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel
Remove all Behaviors of type T
public static void RemoveBehaviors(this MapArtifactModel model);
model
Il2CppAssets.Scripts.Models.Artifacts.MapArtifactModel
Remove all Behaviors of type T
public static void RemoveBehaviors<T>(this BoostArtifactModel model)
where T : Model;
T
model
Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel
Remove all Behaviors of type T
public static void RemoveBehaviors<T>(this ItemArtifactModel model)
where T : Model;
T
model
Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel
Remove all Behaviors of type T
public static void RemoveBehaviors<T>(this MapArtifactModel model)
where T : Model;
T
model
Il2CppAssets.Scripts.Models.Artifacts.MapArtifactModel