Update map inits in RA/TD/D2k.

This commit is contained in:
Paul Chote
2020-07-07 20:06:26 +01:00
committed by abcdefg30
parent a2269e7ee7
commit 6d6822ca15
123 changed files with 2389 additions and 2424 deletions

View File

@@ -101,6 +101,18 @@ namespace OpenRA.Mods.Common.UpdateRules
manualSteps.AddRange(rule.BeforeUpdate(modData));
var mapActorsNode = yaml.Nodes.FirstOrDefault(n => n.Key == "Actors");
if (mapActorsNode != null)
{
var mapActors = new YamlFileSet()
{
Tuple.Create<IReadWritePackage, string, List<MiniYamlNode>>(null, "map.yaml", mapActorsNode.Value.Nodes)
};
manualSteps.AddRange(ApplyTopLevelTransform(modData, mapActors, rule.UpdateMapActorNode));
files.AddRange(mapActors);
}
var mapRulesNode = yaml.Nodes.FirstOrDefault(n => n.Key == "Rules");
if (mapRulesNode != null)
{