ActorInfoTest fixup with new ActorInfo ctor

This commit is contained in:
atlimit8
2015-09-19 14:48:49 -05:00
parent 9acf121eb1
commit b889675c83
2 changed files with 23 additions and 26 deletions

View File

@@ -67,6 +67,13 @@ namespace OpenRA
}
}
public ActorInfo(string name, params ITraitInfo[] traitInfos)
{
Name = name;
foreach (var t in traitInfos)
Traits.Add(t);
}
static Dictionary<string, MiniYaml> GetParents(MiniYaml node, Dictionary<string, MiniYaml> allUnits)
{
return node.Nodes.Where(n => n.Key == "Inherits" || n.Key.StartsWith("Inherits@"))