type inference is fine too

This commit is contained in:
Chris Forbes
2010-05-23 15:45:57 +12:00
parent 87d7fd163b
commit 4d7de9e790

View File

@@ -128,9 +128,9 @@ namespace OpenRA.FileFormats
root.Add(field, new MiniYaml(FieldSaver.FormatValue(this, f), null));
}
root.Add("Actors", MiniYaml.FromDictionary<string, ActorReference>(Actors));
root.Add("Waypoints", MiniYaml.FromDictionary<string, int2>(Waypoints));
root.Add("Smudges", MiniYaml.FromList<SmudgeReference>(Smudges));
root.Add("Actors", MiniYaml.FromDictionary(Actors));
root.Add("Waypoints", MiniYaml.FromDictionary(Waypoints));
root.Add("Smudges", MiniYaml.FromList(Smudges));
root.Add("Rules", new MiniYaml(null, Rules));
SaveBinaryData(Path.Combine(filepath, "map.bin"));
root.WriteToFile(Path.Combine(filepath, "map.yaml"));