Add a comment explaining some of the sequence parsing code

This commit is contained in:
Taryn Hill
2015-11-09 19:26:37 -06:00
parent 496f8d7ddf
commit 2fc391c5b8

View File

@@ -37,6 +37,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;
}