This commit is contained in:
Matthias Mailänder
2014-04-20 15:26:33 +02:00
parent a8a3036bc4
commit f19fbb1794
2 changed files with 9 additions and 10 deletions

View File

@@ -26,12 +26,12 @@ namespace OpenRA.GameRules
public readonly string[] DisableVariants = { };
public readonly string[] DisablePrefixes = { };
static Dictionary<string, string[]> Load( MiniYaml y, string name )
static Dictionary<string, string[]> 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<string[]>( "(value)", a.Value.Value ) )
a => FieldLoader.GetValue<string[]>("(value)", a.Value.Value))
: new Dictionary<string, string[]>();
}