Add a Name field to Armament for other traits to reference.

This commit is contained in:
Paul Chote
2013-05-30 20:11:26 +12:00
parent 8c9fb382e3
commit eff46cf40d

View File

@@ -27,12 +27,12 @@ namespace OpenRA.Mods.RA
[Desc("Allows you to attach weapons to the unit (use @IdentifierSuffix for > 1)")]
public class ArmamentInfo : ITraitInfo, Requires<AttackBaseInfo>
{
public readonly string Name = "primary";
[WeaponReference]
[Desc("Has to be defined here and in weapons.yaml.")]
public readonly string Weapon = null;
public readonly string Turret = "primary";
[Desc("Move the turret backwards when firing.")]
public readonly int LegacyRecoil = 0;
[Desc("Time (in frames) until the weapon can fire again.")]
public readonly int FireDelay = 0;