Table of Contents
Extensions for WeaponModels
public static class WeaponModelExt
Inheritance System.Object WeaponModelExt
Gets the eject position of the weapon as a vector
public static Vector3 GetEject(this WeaponModel weapon);
weapon
Il2CppAssets.Scripts.Models.Towers.Weapons.WeaponModel
Il2CppAssets.Scripts.Simulation.SMath.Vector3
Sets ejectX/ejectY/ejectZ all at once
public static void SetEject(this WeaponModel weapon, Vector3 eject, bool ignoreX=false, bool ignoreY=false, bool ignoreZ=false);
weapon
Il2CppAssets.Scripts.Models.Towers.Weapons.WeaponModel
eject
UnityEngine.Vector3
ignoreX
System.Boolean
ignoreY
System.Boolean
ignoreZ
System.Boolean
Sets ejectX/ejectY/ejectZ all at once
public static void SetEject(this WeaponModel weapon, Vector3 eject, bool ignoreX=false, bool ignoreY=false, bool ignoreZ=false);
weapon
Il2CppAssets.Scripts.Models.Towers.Weapons.WeaponModel
eject
Il2CppAssets.Scripts.Simulation.SMath.Vector3
ignoreX
System.Boolean
ignoreY
System.Boolean
ignoreZ
System.Boolean
Sets the emission for a WeaponModel, properly handling the child dependents
public static void SetEmission(this WeaponModel weapon, EmissionModel emission);
weapon
Il2CppAssets.Scripts.Models.Towers.Weapons.WeaponModel
emission
Il2CppAssets.Scripts.Models.Towers.Behaviors.Emissions.EmissionModel
Sets the emission for a WeaponModel, properly handling the child dependents
public static void SetProjectile(this WeaponModel weapon, ProjectileModel projectile);
weapon
Il2CppAssets.Scripts.Models.Towers.Weapons.WeaponModel
projectile
Il2CppAssets.Scripts.Models.Towers.Projectiles.ProjectileModel