Skip to Main Content
Table of Contents

BTD_Mod_Helper​.Extensions​.ArtifactModelBehaviorExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

ArtifactModelBehaviorExt Class

Behavior extensions for ItemArtifactModels and BoostArtifactModels

public static class ArtifactModelBehaviorExt

Inheritance System.Object  ArtifactModelBehaviorExt

Methods

ArtifactModelBehaviorExt.AddBehavior(this BoostArtifactModel, T) Method

Add a Behavior to this model

public static void AddBehavior<T>(this BoostArtifactModel model, T behavior)
    where T : BoostArtifactBehaviorModel;

Type parameters

T

Parameters

model Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel

behavior T

ArtifactModelBehaviorExt.AddBehavior(this ItemArtifactModel, T) Method

Add a Behavior to this model

public static void AddBehavior<T>(this ItemArtifactModel model, T behavior)
    where T : ItemArtifactBehaviorModel;

Type parameters

T

Parameters

model Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel

behavior T

ArtifactModelBehaviorExt.AddBehavior(this MapArtifactModel, T) Method

Add a Behavior to this model

public static void AddBehavior<T>(this MapArtifactModel model, T behavior)
    where T : MapArtifactBehaviorModel;

Type parameters

T

Parameters

model Il2CppAssets.Scripts.Models.Artifacts.MapArtifactModel

behavior T

ArtifactModelBehaviorExt.AddBoostBehavior(this ItemArtifactModel, BoostArtifactBehaviorModel, Action) Method

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);

Parameters

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

ArtifactModelBehaviorExt.AddBoostBehaviors(this ItemArtifactModel, IEnumerable, Action) Method

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);

Parameters

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

ArtifactModelBehaviorExt.AddProjectileBehavior(this ItemArtifactModel, ProjectileBehaviorModel, Action) Method

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);

Parameters

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

ArtifactModelBehaviorExt.AddProjectileBehaviors(this ItemArtifactModel, IEnumerable, Action) Method

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);

Parameters

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

ArtifactModelBehaviorExt.AddTowerBehavior(this ItemArtifactModel, TowerBehaviorModel, Action) Method

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);

Parameters

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

ArtifactModelBehaviorExt.AddTowerBehaviors(this ItemArtifactModel, IEnumerable, Action) Method

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);

Parameters

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

ArtifactModelBehaviorExt.GetBehavior(this BoostArtifactModel) Method

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;

Type parameters

T

The Behavior you want

Parameters

model Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel

Returns

T

ArtifactModelBehaviorExt.GetBehavior(this ItemArtifactModel) Method

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;

Type parameters

T

The Behavior you want

Parameters

model Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel

Returns

T

ArtifactModelBehaviorExt.GetBehavior(this MapArtifactModel) Method

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;

Type parameters

T

The Behavior you want

Parameters

model Il2CppAssets.Scripts.Models.Artifacts.MapArtifactModel

Returns

T

ArtifactModelBehaviorExt.GetBehaviors(this BoostArtifactModel) Method

Return all Behaviors of type T

public static System.Collections.Generic.List<T> GetBehaviors<T>(this BoostArtifactModel model)
    where T : BoostArtifactBehaviorModel;

Type parameters

T

The Behavior you want

Parameters

model Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel

Returns

System.Collections.Generic.List<T>

ArtifactModelBehaviorExt.GetBehaviors(this ItemArtifactModel) Method

Return all Behaviors of type T

public static System.Collections.Generic.List<T> GetBehaviors<T>(this ItemArtifactModel model)
    where T : ItemArtifactBehaviorModel;

Type parameters

T

The Behavior you want

Parameters

model Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel

Returns

System.Collections.Generic.List<T>

ArtifactModelBehaviorExt.GetBehaviors(this MapArtifactModel) Method

Return all Behaviors of type T

public static System.Collections.Generic.List<T> GetBehaviors<T>(this MapArtifactModel model)
    where T : MapArtifactBehaviorModel;

Type parameters

T

The Behavior you want

Parameters

model Il2CppAssets.Scripts.Models.Artifacts.MapArtifactModel

Returns

System.Collections.Generic.List<T>

ArtifactModelBehaviorExt.HasBehavior(this BoostArtifactModel) Method

Check if this has a specific Behavior

public static bool HasBehavior<T>(this BoostArtifactModel model)
    where T : BoostArtifactBehaviorModel;

Type parameters

T

The Behavior you're checking for

Parameters

model Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel

Returns

System.Boolean

ArtifactModelBehaviorExt.HasBehavior(this ItemArtifactModel) Method

Check if this has a specific Behavior

public static bool HasBehavior<T>(this ItemArtifactModel model)
    where T : ItemArtifactBehaviorModel;

Type parameters

T

The Behavior you're checking for

Parameters

model Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel

Returns

System.Boolean

ArtifactModelBehaviorExt.HasBehavior(this MapArtifactModel) Method

Check if this has a specific Behavior

public static bool HasBehavior<T>(this MapArtifactModel model)
    where T : MapArtifactBehaviorModel;

Type parameters

T

The Behavior you're checking for

Parameters

model Il2CppAssets.Scripts.Models.Artifacts.MapArtifactModel

Returns

System.Boolean

ArtifactModelBehaviorExt.RemoveBehavior(this BoostArtifactModel, T) Method

Removes a specific behavior from a tower

public static void RemoveBehavior<T>(this BoostArtifactModel model, T behavior)
    where T : BoostArtifactBehaviorModel;

Type parameters

T

Parameters

model Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel

behavior T

ArtifactModelBehaviorExt.RemoveBehavior(this BoostArtifactModel) Method

Remove the first Behavior of Type T

public static void RemoveBehavior<T>(this BoostArtifactModel model)
    where T : BoostArtifactBehaviorModel;

Type parameters

T

The Behavior you want to remove

Parameters

model Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel

ArtifactModelBehaviorExt.RemoveBehavior(this ItemArtifactModel, T) Method

Removes a specific behavior from a tower

public static void RemoveBehavior<T>(this ItemArtifactModel model, T behavior)
    where T : ItemArtifactBehaviorModel;

Type parameters

T

Parameters

model Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel

behavior T

ArtifactModelBehaviorExt.RemoveBehavior(this ItemArtifactModel) Method

Remove the first Behavior of Type T

public static void RemoveBehavior<T>(this ItemArtifactModel model)
    where T : ItemArtifactBehaviorModel;

Type parameters

T

The Behavior you want to remove

Parameters

model Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel

ArtifactModelBehaviorExt.RemoveBehavior(this MapArtifactModel, T) Method

Removes a specific behavior from a tower

public static void RemoveBehavior<T>(this MapArtifactModel model, T behavior)
    where T : MapArtifactBehaviorModel;

Type parameters

T

Parameters

model Il2CppAssets.Scripts.Models.Artifacts.MapArtifactModel

behavior T

ArtifactModelBehaviorExt.RemoveBehavior(this MapArtifactModel) Method

Remove the first Behavior of Type T

public static void RemoveBehavior<T>(this MapArtifactModel model)
    where T : MapArtifactBehaviorModel;

Type parameters

T

The Behavior you want to remove

Parameters

model Il2CppAssets.Scripts.Models.Artifacts.MapArtifactModel

ArtifactModelBehaviorExt.RemoveBehaviors(this BoostArtifactModel) Method

Remove all Behaviors of type T

public static void RemoveBehaviors(this BoostArtifactModel model);

Parameters

model Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel

ArtifactModelBehaviorExt.RemoveBehaviors(this ItemArtifactModel) Method

Remove all Behaviors of type T

public static void RemoveBehaviors(this ItemArtifactModel model);

Parameters

model Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel

ArtifactModelBehaviorExt.RemoveBehaviors(this MapArtifactModel) Method

Remove all Behaviors of type T

public static void RemoveBehaviors(this MapArtifactModel model);

Parameters

model Il2CppAssets.Scripts.Models.Artifacts.MapArtifactModel

ArtifactModelBehaviorExt.RemoveBehaviors(this BoostArtifactModel) Method

Remove all Behaviors of type T

public static void RemoveBehaviors<T>(this BoostArtifactModel model)
    where T : BoostArtifactBehaviorModel;

Type parameters

T

Parameters

model Il2CppAssets.Scripts.Models.Artifacts.BoostArtifactModel

ArtifactModelBehaviorExt.RemoveBehaviors(this ItemArtifactModel) Method

Remove all Behaviors of type T

public static void RemoveBehaviors<T>(this ItemArtifactModel model)
    where T : ItemArtifactBehaviorModel;

Type parameters

T

Parameters

model Il2CppAssets.Scripts.Models.Artifacts.ItemArtifactModel

ArtifactModelBehaviorExt.RemoveBehaviors(this MapArtifactModel) Method

Remove all Behaviors of type T

public static void RemoveBehaviors<T>(this MapArtifactModel model)
    where T : MapArtifactBehaviorModel;

Type parameters

T

Parameters

model Il2CppAssets.Scripts.Models.Artifacts.MapArtifactModel

To learn how to download BTD Mod Helper and install mods, click here