Place constraints on ActorReferences in ParatroopersPower to improve linting

This commit is contained in:
Taryn Hill
2015-12-27 11:05:45 -06:00
parent 5542076a68
commit 5b5a45b0a4

View File

@@ -21,7 +21,7 @@ namespace OpenRA.Mods.RA.Traits
{
public class ParatroopersPowerInfo : SupportPowerInfo
{
[ActorReference]
[ActorReference(typeof(AircraftInfo))]
public readonly string UnitType = "badr";
public readonly int SquadSize = 1;
public readonly WVec SquadOffset = new WVec(-1536, 1536, 0);
@@ -32,7 +32,7 @@ namespace OpenRA.Mods.RA.Traits
[Desc("Spawn and remove the plane this far outside the map.")]
public readonly WDist Cordon = new WDist(5120);
[ActorReference]
[ActorReference(typeof(PassengerInfo))]
[Desc("Troops to be delivered. They will be distributed between the planes if SquadSize > 1.")]
public readonly string[] DropItems = { };