Moved speed from Mobile/Heli/Plane to Unit.
This commit is contained in:
@@ -7,8 +7,6 @@ namespace OpenRa.Game.Traits
|
||||
{
|
||||
class HelicopterInfo : ITraitInfo
|
||||
{
|
||||
public readonly int Speed = 0;
|
||||
|
||||
public object Create(Actor self) { return new Helicopter(self); }
|
||||
}
|
||||
|
||||
|
||||
@@ -7,9 +7,6 @@ namespace OpenRa.Game.Traits
|
||||
{
|
||||
class MobileInfo : ITraitInfo
|
||||
{
|
||||
public readonly int ROT = 0;
|
||||
public readonly int Speed = 0;
|
||||
|
||||
public object Create(Actor self) { return new Mobile(self); }
|
||||
}
|
||||
|
||||
|
||||
@@ -5,8 +5,6 @@ namespace OpenRa.Game.Traits
|
||||
{
|
||||
class PlaneInfo : ITraitInfo
|
||||
{
|
||||
public readonly int Speed = 0;
|
||||
|
||||
public object Create(Actor self) { return new Plane(self); }
|
||||
}
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ namespace OpenRa.Game.Traits
|
||||
class UnitInfo : OwnedActorInfo, ITraitInfo
|
||||
{
|
||||
public readonly int ROT = 0;
|
||||
public readonly int Speed = 0;
|
||||
|
||||
public object Create( Actor self ) { return new Unit( self ); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user