Table of Contents
A wrapper around AttackModels for making them easier to create
public class AttackHelper : BTD_Mod_Helper.Api.Helpers.ModelHelper<AttackModel>
Inheritance System.Object ModelHelper BTD_Mod_Helper.Api.Helpers.ModelHelper<Il2CppAssets.Scripts.Models.Towers.Behaviors.Attack.AttackModel> AttackHelper
Begins construction of a new AttackModel with sensible default values
public AttackHelper(string name="", bool airUnit=false);
name
System.String
The model name (don't need the AttackModel_ part)
airUnit
System.Boolean
Create an AttackAirUnitModel instead of an AttackModel
public bool AddToSharedGrid { get; set; }
public bool AttackThroughWalls { get; set; }
public Model[] Behaviors { get; set; }
Il2CppAssets.Scripts.Models.Model[]
public bool CanSeeCamo { get; set; }
This AttackModel's AttackFilterModel
public AttackFilterModel Filter { get; }
Il2CppAssets.Scripts.Models.Towers.Behaviors.Attack.Behaviors.AttackFilterModel
public FilterModel[] Filters { get; set; }
Il2CppAssets.Scripts.Models.Towers.Filters.FilterModel[]
public bool FireWithoutTarget { get; set; }
public int FramesBeforeRetarget { get; set; }
public Vector3 Offset { get; set; }
Il2CppAssets.Scripts.Simulation.SMath.Vector3
public float Range { get; set; }
public float SharedGridRange { get; set; }
public TargetSupplierModel TargetProvider { get; set; }
Il2CppAssets.Scripts.Models.Towers.Behaviors.Attack.Behaviors.TargetSupplierModel
public WeaponModel Weapon { get; set; }
Il2CppAssets.Scripts.Models.Towers.Weapons.WeaponModel
public WeaponModel[] Weapons { get; set; }
Il2CppAssets.Scripts.Models.Towers.Weapons.WeaponModel[]
Unwraps the model
public static AttackModel implicit operator AttackModel(BTD_Mod_Helper.Api.Helpers.AttackHelper helper);
helper
AttackHelper
Il2CppAssets.Scripts.Models.Towers.Behaviors.Attack.AttackModel
Wraps a model
public static BTD_Mod_Helper.Api.Helpers.AttackHelper implicit operator AttackHelper(AttackModel model);
model
Il2CppAssets.Scripts.Models.Towers.Behaviors.Attack.AttackModel