Table of Contents
A wrapper around WeaponModels for making them easier to create
public class WeaponHelper : BTD_Mod_Helper.Api.Helpers.ModelHelper<WeaponModel>
Inheritance System.Object ModelHelper BTD_Mod_Helper.Api.Helpers.ModelHelper<Il2CppAssets.Scripts.Models.Towers.Weapons.WeaponModel> WeaponHelper
Begins construction of a new WeaponModel with sensible default values
public WeaponHelper(string name="");
name
System.String
The model name (don't need the WeaponModel_ part)
public bool AnimateOnMainAttack { get; set; }
public int Animation { get; set; }
public float AnimationOffset { get; set; }
public WeaponBehaviorModel[] Behaviors { get; set; }
Il2CppAssets.Scripts.Models.Towers.Weapons.WeaponBehaviorModel[]
public float CustomStartCooldown { get; set; }
public Vector3 Eject { get; set; }
Il2CppAssets.Scripts.Simulation.SMath.Vector3
public EmissionModel Emission { get; set; }
Il2CppAssets.Scripts.Models.Towers.Behaviors.Emissions.EmissionModel
public bool FireBetweenRounds { get; set; }
public bool FireWithoutTarget { get; set; }
public ProjectileModel Projectile { get; set; }
Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel
public float Rate { get; set; }
public bool StartInCooldown { get; set; }
public bool UseAttackPosition { get; set; }
Wraps a model
public static BTD_Mod_Helper.Api.Helpers.WeaponHelper implicit operator WeaponHelper(WeaponModel model);
model
Il2CppAssets.Scripts.Models.Towers.Weapons.WeaponModel
Unwraps the model
public static WeaponModel implicit operator WeaponModel(BTD_Mod_Helper.Api.Helpers.WeaponHelper helper);
helper
WeaponHelper