diff --git a/OpenRA.Mods.RA/Cargo.cs b/OpenRA.Mods.RA/Cargo.cs index 24f90e7f7a..7a84d21b76 100644 --- a/OpenRA.Mods.RA/Cargo.cs +++ b/OpenRA.Mods.RA/Cargo.cs @@ -38,7 +38,7 @@ namespace OpenRA.Mods.RA List cargo = new List(); public IEnumerable Passengers { get { return cargo; } } - public Cargo( ActorInitializer init, CargoInfo info ) + public Cargo(ActorInitializer init, CargoInfo info) { this.self = init.self; this.info = info; @@ -46,7 +46,7 @@ namespace OpenRA.Mods.RA if (init.Contains()) { cargo = init.Get().ToList(); - totalWeight = cargo.Sum( c => GetWeight(c) ); + totalWeight = cargo.Sum(c => GetWeight(c)); } else { @@ -56,20 +56,20 @@ namespace OpenRA.Mods.RA new TypeDictionary { new OwnerInit(self.Owner) }); if (CanLoad(self, unit)) - Load(self,unit); + Load(self, unit); } } } public IEnumerable Orders { - get { yield return new DeployOrderTargeter( "Unload", 10, () => CanUnload( self ) ); } + get { yield return new DeployOrderTargeter("Unload", 10, () => CanUnload(self)); } } - public Order IssueOrder( Actor self, IOrderTargeter order, Target target, bool queued ) + public Order IssueOrder(Actor self, IOrderTargeter order, Target target, bool queued) { - if( order.OrderID == "Unload" ) - return new Order( order.OrderID, self, queued ); + if (order.OrderID == "Unload") + return new Order(order.OrderID, self, queued); return null; } @@ -135,8 +135,8 @@ namespace OpenRA.Mods.RA cargo.RemoveAt(0); totalWeight -= GetWeight(a); - foreach( var npe in self.TraitsImplementing() ) - npe.PassengerExited( self, a ); + foreach (var npe in self.TraitsImplementing()) + npe.PassengerExited(self, a); return a; } @@ -170,8 +170,8 @@ namespace OpenRA.Mods.RA cargo.Add(a); totalWeight += GetWeight(a); - foreach( var npe in self.TraitsImplementing() ) - npe.PassengerEntered( self, a ); + foreach (var npe in self.TraitsImplementing()) + npe.PassengerEntered(self, a); } public void Killed(Actor self, AttackInfo e) @@ -201,7 +201,7 @@ namespace OpenRA.Mods.RA { [FieldFromYamlKey] public readonly Actor[] value = {}; public CargoInit() { } - public CargoInit( Actor[] init ) { value = init; } - public Actor[] Value( World world ) { return value; } + public CargoInit(Actor[] init) { value = init; } + public Actor[] Value(World world) { return value; } } }