StyleCop clean Map

move non-map specific functions to FileFormats
This commit is contained in:
Matthias Mailänder
2013-08-04 09:10:54 +02:00
parent 452342f289
commit 05f165357d
3 changed files with 57 additions and 58 deletions

View File

@@ -99,6 +99,11 @@ namespace OpenRA.FileFormats
return new MiniYaml( null, list.Select( x => new MiniYamlNode( x.ToString(), new MiniYaml( null ) ) ).ToList() );
}
public static List<MiniYamlNode> NodesOrEmpty(MiniYaml y, string s)
{
return y.NodesDict.ContainsKey(s) ? y.NodesDict[s].Nodes : new List<MiniYamlNode>();
}
static List<MiniYamlNode> FromLines(string[] lines, string filename)
{
var levels = new List<List<MiniYamlNode>>();