also check map.yaml Sequences:

closes #4765
This commit is contained in:
Matthias Mailänder
2014-03-03 13:55:25 +01:00
parent 9a8c9d1985
commit cb43581c91
7 changed files with 11 additions and 10 deletions

View File

@@ -17,10 +17,11 @@ namespace OpenRA.Mods.RA
{
class CheckSequences : ILintPass
{
public void Run(Action<string> emitError, Action<string> emitWarning)
public void Run(Action<string> emitError, Action<string> emitWarning, Map map)
{
var sequences = Game.modData.Manifest.Sequences
.Select(s => MiniYaml.FromFile(s)).Aggregate(MiniYaml.MergeLiberal);
var sequences = MiniYaml.MergeLiberal(map.Sequences,
Game.modData.Manifest.Sequences.Select(s => MiniYaml.FromFile(s))
.Aggregate(MiniYaml.MergeLiberal));
foreach (var actorInfo in Rules.Info)
foreach (var renderInfo in actorInfo.Value.Traits.WithInterface<RenderSimpleInfo>())