Map saving

This commit is contained in:
Paul Chote
2010-04-01 17:37:46 +13:00
committed by Bob
parent 585f15d4ca
commit 382efbcdfb
7 changed files with 38 additions and 10 deletions

View File

@@ -39,7 +39,12 @@ namespace OpenRA.FileFormats
Value = value;
Nodes = nodes;
}
public static MiniYaml FromDictionary<K,V>(Dictionary<K,V>dict)
{
return new MiniYaml( null, dict.ToDictionary( x=>x.Key.ToString(), x=>new MiniYaml(x.Value.ToString())));
}
static Dictionary<string, MiniYaml> FromLines(string[] lines)
{
var levels = new List<Dictionary<string, MiniYaml>>();