From 7482907c80d8fb58cb667326be961208c3009d56 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sun, 9 May 2010 13:03:34 +1200 Subject: [PATCH] kill dead overload of LoadRules --- OpenRA.Game/GameRules/Rules.cs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/OpenRA.Game/GameRules/Rules.cs b/OpenRA.Game/GameRules/Rules.cs index b358893e41..e12168233b 100755 --- a/OpenRA.Game/GameRules/Rules.cs +++ b/OpenRA.Game/GameRules/Rules.cs @@ -36,21 +36,6 @@ namespace OpenRA public static Dictionary Music; public static Dictionary TerrainTypes; - public static void LoadRules(Manifest m) - { - Log.Write("Using rules files: "); - foreach (var y in m.Rules) - Log.Write(" -- {0}", y); - - Info = LoadYamlRules(m.Rules, (k, y) => new ActorInfo(k.Key.ToLowerInvariant(), k.Value, y)); - Weapons = LoadYamlRules(m.Weapons, (k, _) => new WeaponInfo(k.Key.ToLowerInvariant(), k.Value)); - Voices = LoadYamlRules(m.Voices, (k, _) => new VoiceInfo(k.Value)); - Music = LoadYamlRules(m.Music, (k, _) => new MusicInfo(k.Value)); - TerrainTypes = LoadYamlRules(m.Terrain, (k, _) => new TerrainCost(k.Value)) - .ToDictionary(kv => (TerrainType)Enum.Parse(typeof(TerrainType), kv.Key, true), kv => kv.Value); - - TechTree = new TechTree(); - } static Dictionary LoadYamlRules(string[] files, Func, Dictionary, T> f) { var y = files.Select(a => MiniYaml.FromFile(a)).Aggregate(MiniYaml.Merge);