From d6f1debe228ad29fb3307536f284d22f830ccc22 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Fri, 15 Nov 2013 09:20:53 +1300 Subject: [PATCH] Stylecop clean Manifest. --- OpenRA.FileFormats/Manifest.cs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/OpenRA.FileFormats/Manifest.cs b/OpenRA.FileFormats/Manifest.cs index 2fefa43439..fbc8c0c9d1 100644 --- a/OpenRA.FileFormats/Manifest.cs +++ b/OpenRA.FileFormats/Manifest.cs @@ -1,6 +1,6 @@ #region Copyright & License Information /* - * Copyright 2007-2011 The OpenRA Developers (see AUTHORS) + * Copyright 2007-2013 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, @@ -14,8 +14,7 @@ using System.Linq; namespace OpenRA.FileFormats { - /* describes what is to be loaded in order to run a set of mods */ - + // Describes what is to be loaded in order to run a mod public class Manifest { public readonly Mod Mod; @@ -28,13 +27,13 @@ namespace OpenRA.FileFormats public readonly Dictionary Packages; public readonly MiniYaml LoadScreen; public readonly MiniYaml LobbyDefaults; - public readonly Dictionary> Fonts; + public readonly Dictionary> Fonts; public readonly int TileSize = 24; public Manifest(string mod) { - var path = new [] { "mods", mod, "mod.yaml" }.Aggregate(Path.Combine); - var yaml = new MiniYaml(null, MiniYaml.FromFile(path)).NodesDict; + var path = new[] { "mods", mod, "mod.yaml" }.Aggregate(Path.Combine); + var yaml = new MiniYaml(null, MiniYaml.FromFile(path)).NodesDict; Mod = FieldLoader.Load(yaml["Metadata"]); Mod.Id = mod; @@ -74,7 +73,7 @@ namespace OpenRA.FileFormats static string[] YamlList(Dictionary yaml, string key) { if (!yaml.ContainsKey(key)) - return new string[] {}; + return new string[] { }; return yaml[key].NodesDict.Keys.ToArray(); }