Expose Plane turn-to-attack delay to yaml.

Require Plane in some ctors.
This commit is contained in:
Taryn Hill
2015-04-01 00:12:20 -05:00
parent c0c7ad1035
commit 02da41e5c5
13 changed files with 60 additions and 45 deletions

View File

@@ -22,14 +22,14 @@ namespace OpenRA.Mods.Common.Activities
readonly WRange maxRange;
readonly WRange minRange;
public Fly(Actor self, Target t)
public Fly(Actor self, Target t, Plane plane)
{
plane = self.Trait<Plane>();
target = t;
this.plane = plane;
}
public Fly(Actor self, Target t, WRange minRange, WRange maxRange)
: this(self, t)
public Fly(Actor self, Target t, Plane plane, WRange minRange, WRange maxRange)
: this(self, t, plane)
{
this.maxRange = maxRange;
this.minRange = minRange;