Merge pull request #9951 from Phrohdoh/explain-node-merge

Add a comment explaining some of the sequence parsing code.
This commit is contained in:
Oliver Brakmann
2015-11-16 20:02:22 +01:00

View File

@@ -38,6 +38,15 @@ namespace OpenRA.Mods.Common.Graphics
nodes.Remove("Defaults");
nodes = nodes.ToDictionary(kv => kv.Key, kv => MiniYaml.MergeStrict(kv.Value, defaults));
// Merge 'Defaults' animation image value. An example follows.
//
// - Before -
// stand:
// Facings: 8
//
// - After -
// stand: e1
// Facings: 8
foreach (var n in nodes)
n.Value.Value = n.Value.Value ?? defaults.Value;
}