Changed most references of trait Mobile -> IMove.
In Mobile.cs IsMoving now has a public set as opposed to the initial internal. Added IMoveInfo interface to go with *Info classes that require IMove. WithRotor now uses IMove.IsMoving instead of (self.CenterPosition.Z > 0) as part of a check.
This commit is contained in:
@@ -15,7 +15,7 @@ using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.RA.Air
|
||||
{
|
||||
class HelicopterInfo : AircraftInfo
|
||||
class HelicopterInfo : AircraftInfo, IMoveInfo
|
||||
{
|
||||
public readonly WRange IdealSeparation = new WRange(1706);
|
||||
public readonly bool LandWhenIdle = true;
|
||||
@@ -30,6 +30,7 @@ namespace OpenRA.Mods.RA.Air
|
||||
public HelicopterInfo Info;
|
||||
Actor self;
|
||||
bool firstTick = true;
|
||||
public bool IsMoving { get { return self.CenterPosition.Z > 0; } set { } }
|
||||
|
||||
public Helicopter(ActorInitializer init, HelicopterInfo info)
|
||||
: base(init, info)
|
||||
|
||||
Reference in New Issue
Block a user