Skip to Main Content

BTD_Mod_Helper​.Extensions​.MiscModelExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

MiscModelExt Class

Other miscellaneous extensions for various Model classes

public static class MiscModelExt

Inheritance System.Object  MiscModelExt

Methods

MiscModelExt.ApplyDisplay(this AssetPathModel) Method

Applies the given ModDisplay to this asset path

public static void ApplyDisplay<T>(this AssetPathModel effectModel)
    where T : BTD_Mod_Helper.Api.Display.ModDisplay;

Type parameters

T

Parameters

effectModel Il2CppAssets.Scripts.Models.Effects.AssetPathModel

MiscModelExt.ApplyDisplay(this EffectModel) Method

Applies the given ModDisplay to this effect

public static void ApplyDisplay<T>(this EffectModel effectModel)
    where T : BTD_Mod_Helper.Api.Display.ModDisplay;

Type parameters

T

Parameters

effectModel Il2CppAssets.Scripts.Models.Effects.EffectModel

MiscModelExt.ApplyOverlay(this ProjectileBehaviorWithOverlayModel) Method

Applies the given ModBloonOverlay to this behavior

public static void ApplyOverlay<T>(this ProjectileBehaviorWithOverlayModel projectileBehaviorWithOverlayModel)
    where T : BTD_Mod_Helper.Api.Display.ModBloonOverlay;

Type parameters

T

Parameters

projectileBehaviorWithOverlayModel Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileBehaviorWithOverlayModel

MiscModelExt.GetDamageMult(this DamageModifierModel, Bloon) Method

Gets the damageMultiplier field for a DamageModifierModel

public static float GetDamageMult(this DamageModifierModel model, Bloon bloon);

Parameters

model Il2CppAssets.Scripts.Models.Towers.Projectiles.DamageModifierModel

bloon Il2CppAssets.Scripts.Simulation.Bloons.Bloon

Returns

System.Single

MiscModelExt.UpdateOffset(this ParallelEmissionModel) Method

Updates the Il2CppAssets.Scripts.Models.Towers.Behaviors.Emissions.ParallelEmissionModel.offsetStart to be consistent with the
Il2CppAssets.Scripts.Models.Towers.Behaviors.Emissions.ParallelEmissionModel.count and Il2CppAssets.Scripts.Models.Towers.Behaviors.Emissions.ParallelEmissionModel.spreadLength

public static void UpdateOffset(this ParallelEmissionModel parallelEmissionModel);

Parameters

parallelEmissionModel Il2CppAssets.Scripts.Models.Towers.Behaviors.Emissions.ParallelEmissionModel

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