From f19fbb1794d9276bd9b916aaef3d87bac87ef6a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 20 Apr 2014 15:26:33 +0200 Subject: [PATCH] StyleCop --- OpenRA.Game/GameRules/SoundInfo.cs | 8 ++++---- OpenRA.Mods.RA/ActorLostNotification.cs | 11 +++++------ 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/OpenRA.Game/GameRules/SoundInfo.cs b/OpenRA.Game/GameRules/SoundInfo.cs index d7e923ec1d..6f88c6f114 100644 --- a/OpenRA.Game/GameRules/SoundInfo.cs +++ b/OpenRA.Game/GameRules/SoundInfo.cs @@ -26,12 +26,12 @@ namespace OpenRA.GameRules public readonly string[] DisableVariants = { }; public readonly string[] DisablePrefixes = { }; - static Dictionary Load( MiniYaml y, string name ) + static Dictionary Load(MiniYaml y, string name) { - return y.NodesDict.ContainsKey( name ) - ? y.NodesDict[ name ].NodesDict.ToDictionary( + return y.NodesDict.ContainsKey(name) + ? y.NodesDict[name].NodesDict.ToDictionary( a => a.Key, - a => FieldLoader.GetValue( "(value)", a.Value.Value ) ) + a => FieldLoader.GetValue("(value)", a.Value.Value)) : new Dictionary(); } diff --git a/OpenRA.Mods.RA/ActorLostNotification.cs b/OpenRA.Mods.RA/ActorLostNotification.cs index d053e79288..ea4e52d0e9 100644 --- a/OpenRA.Mods.RA/ActorLostNotification.cs +++ b/OpenRA.Mods.RA/ActorLostNotification.cs @@ -1,6 +1,6 @@ #region Copyright & License Information /* - * Copyright 2007-2011 The OpenRA Developers (see AUTHORS) + * Copyright 2007-2014 The OpenRA Developers (see AUTHORS) * This file is part of OpenRA, which is free software. It is made * available to you under the terms of the GNU General Public License * as published by the Free Software Foundation. For more information, @@ -22,17 +22,16 @@ namespace OpenRA.Mods.RA class ActorLostNotification : INotifyKilled { - ActorLostNotificationInfo Info; + ActorLostNotificationInfo info; public ActorLostNotification(ActorLostNotificationInfo info) { - Info = info; + this.info = info; } public void Killed(Actor self, AttackInfo e) { - var player = (Info.NotifyAll) ? self.World.LocalPlayer : self.Owner; - Sound.PlayNotification(player, "Speech", Info.Notification, self.Owner.Country.Race); + var player = (info.NotifyAll) ? self.World.LocalPlayer : self.Owner; + Sound.PlayNotification(player, "Speech", info.Notification, self.Owner.Country.Race); } } } -