Table of Contents
Behavior extensions for ItemArtifactModels and BoostArtifactModels
public static class ArtifactModelBehaviorExt
Inheritance System.Object ArtifactModelBehaviorExt
Add a Behavior to this model
public static void AddBehavior<T>(this BoostArtifactModel model, T behavior)
where T : BoostArtifactBehaviorModel;
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 : ItemArtifactBehaviorModel;
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 : MapArtifactBehaviorModel;
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 : BoostArtifactBehaviorModel;
T
The Behavior you want
model
Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel
Return the first Behavior of type T, or null if there isn't one
public static T GetBehavior<T>(this ItemArtifactModel model)
where T : ItemArtifactBehaviorModel;
T
The Behavior you want
model
Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel
Return the first Behavior of type T, or null if there isn't one
public static T GetBehavior<T>(this MapArtifactModel model)
where T : MapArtifactBehaviorModel;
T
The Behavior you want
model
Il2CppAssets.Scripts.Models.Artifacts.MapArtifactModel
Return all Behaviors of type T
public static System.Collections.Generic.List<T> GetBehaviors<T>(this BoostArtifactModel model)
where T : BoostArtifactBehaviorModel;
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 : ItemArtifactBehaviorModel;
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 : MapArtifactBehaviorModel;
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 : BoostArtifactBehaviorModel;
T
The Behavior you're checking for
model
Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel
Check if this has a specific Behavior
public static bool HasBehavior<T>(this ItemArtifactModel model)
where T : ItemArtifactBehaviorModel;
T
The Behavior you're checking for
model
Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel
Check if this has a specific Behavior
public static bool HasBehavior<T>(this MapArtifactModel model)
where T : MapArtifactBehaviorModel;
T
The Behavior you're checking for
model
Il2CppAssets.Scripts.Models.Artifacts.MapArtifactModel
Removes a specific behavior from a tower
public static void RemoveBehavior<T>(this BoostArtifactModel model, T behavior)
where T : BoostArtifactBehaviorModel;
T
model
Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel
behavior
T
Remove the first Behavior of Type T
public static void RemoveBehavior<T>(this BoostArtifactModel model)
where T : BoostArtifactBehaviorModel;
T
The Behavior you want to remove
model
Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel
Removes a specific behavior from a tower
public static void RemoveBehavior<T>(this ItemArtifactModel model, T behavior)
where T : ItemArtifactBehaviorModel;
T
model
Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel
behavior
T
Remove the first Behavior of Type T
public static void RemoveBehavior<T>(this ItemArtifactModel model)
where T : ItemArtifactBehaviorModel;
T
The Behavior you want to remove
model
Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel
Removes a specific behavior from a tower
public static void RemoveBehavior<T>(this MapArtifactModel model, T behavior)
where T : MapArtifactBehaviorModel;
T
model
Il2CppAssets.Scripts.Models.Artifacts.MapArtifactModel
behavior
T
Remove the first Behavior of Type T
public static void RemoveBehavior<T>(this MapArtifactModel model)
where T : MapArtifactBehaviorModel;
T
The Behavior you want to remove
model
Il2CppAssets.Scripts.Models.Artifacts.MapArtifactModel
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 : BoostArtifactBehaviorModel;
T
model
Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel
Remove all Behaviors of type T
public static void RemoveBehaviors<T>(this ItemArtifactModel model)
where T : ItemArtifactBehaviorModel;
T
model
Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel
Remove all Behaviors of type T
public static void RemoveBehaviors<T>(this MapArtifactModel model)
where T : MapArtifactBehaviorModel;
T
model
Il2CppAssets.Scripts.Models.Artifacts.MapArtifactModel