Move ProductionAirdrop to Mods.Common

This commit is contained in:
reaperrr
2019-11-25 22:22:41 +01:00
committed by Paul Chote
parent 948a9c9b19
commit fe1d3b3821

View File

@@ -14,11 +14,10 @@ using System.Linq;
using OpenRA.Activities; using OpenRA.Activities;
using OpenRA.Mods.Common; using OpenRA.Mods.Common;
using OpenRA.Mods.Common.Activities; using OpenRA.Mods.Common.Activities;
using OpenRA.Mods.Common.Traits;
using OpenRA.Primitives; using OpenRA.Primitives;
using OpenRA.Traits; using OpenRA.Traits;
namespace OpenRA.Mods.Cnc.Traits namespace OpenRA.Mods.Common.Traits
{ {
[Desc("Deliver the unit in production via skylift.")] [Desc("Deliver the unit in production via skylift.")]
public class ProductionAirdropInfo : ProductionInfo public class ProductionAirdropInfo : ProductionInfo
@@ -26,9 +25,10 @@ namespace OpenRA.Mods.Cnc.Traits
[NotificationReference("Speech")] [NotificationReference("Speech")]
public readonly string ReadyAudio = "Reinforce"; public readonly string ReadyAudio = "Reinforce";
[FieldLoader.Require]
[ActorReference(typeof(AircraftInfo))] [ActorReference(typeof(AircraftInfo))]
[Desc("Cargo aircraft used for delivery. Must have the `Aircraft` trait.")] [Desc("Cargo aircraft used for delivery. Must have the `Aircraft` trait.")]
public readonly string ActorType = "c17"; public readonly string ActorType = null;
[Desc("The cargo aircraft will spawn at the player baseline (map edge closest to the player spawn)")] [Desc("The cargo aircraft will spawn at the player baseline (map edge closest to the player spawn)")]
public readonly bool BaselineSpawn = false; public readonly bool BaselineSpawn = false;