Table of Contents
A wrapper around AbilityModels for making them easier to create
public class AbilityHelper : BTD_Mod_Helper.Api.Helpers.ModelHelper<AbilityModel>
Inheritance System.Object ModelHelper BTD_Mod_Helper.Api.Helpers.ModelHelper<Il2CppAssets.Scripts.Models.Towers.Behaviors.Abilities.AbilityModel> AbilityHelper
Begins construction of a new AttackModel with sensible default values
The model name (don't need the AbilityModel_ part)public AbilityHelper(string name="");
name
System.String
public bool ActivateOnLeak { get; set; }
public bool ActivateOnLivesLost { get; set; }
public bool ActivateOnPreLeak { get; set; }
public string AddedViaUpgrade { get; set; }
public bool AnimateOnMainAttackDisplay { get; set; }
public int Animation { get; set; }
public float AnimationOffset { get; set; }
public Model[] Behaviors { get; set; }
Il2CppAssets.Scripts.Models.Model[]
public bool CanActivateBetweenRounds { get; set; }
public float Cooldown { get; set; }
public float CooldownSpeedScale { get; set; }
public string Description { get; set; }
public string DisplayName { get; set; }
public bool DontShowStacked { get; set; }
public bool Enabled { get; set; }
public string Icon { get; set; }
public SpriteReference IconReference { get; set; }
Il2CppNinjaKiwi.Common.ResourceUtils.SpriteReference
public int LivesCost { get; set; }
public int MaxActivationsPerRound { get; set; }
public bool ResetCooldownOnTierUpgrade { get; set; }
public bool RestrictAbilityAfterMaxRoundTimer { get; set; }
public bool SharedCooldown { get; set; }
Unwraps the model
public static AbilityModel implicit operator AbilityModel(BTD_Mod_Helper.Api.Helpers.AbilityHelper helper);
helper
AbilityHelper
Il2CppAssets.Scripts.Models.Towers.Behaviors.Abilities.AbilityModel
Wraps a model
public static BTD_Mod_Helper.Api.Helpers.AbilityHelper implicit operator AbilityHelper(AbilityModel model);
model
Il2CppAssets.Scripts.Models.Towers.Behaviors.Abilities.AbilityModel