Generalize WormManager into ActorSpawnManager.

Added support of multiple actors, conditions and types.
This commit is contained in:
Voidwalker
2017-12-28 12:18:29 +00:00
committed by reaperrr
parent e69cf4fd5c
commit 711bad91a3
15 changed files with 178 additions and 144 deletions

View File

@@ -1635,6 +1635,21 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
}
if (engineVersion < 20180225)
{
if (node.Key == "WormSpawner")
RenameNodeKey(node, "ActorSpawner");
if (node.Key == "WormManager")
{
RenameNodeKey(node, "ActorSpawnManager");
var wormSignature = node.Value.Nodes.FirstOrDefault(n => n.Key == "WormSignature");
if (wormSignature != null)
wormSignature.Key = "Actors";
}
}
UpgradeActorRules(modData, engineVersion, ref node.Value.Nodes, node, depth + 1);
}