Make yaml node resolving optional

This commit is contained in:
Gustas
2023-05-15 09:32:23 +03:00
committed by Matthias Mailänder
parent d4e6815f64
commit 462a3ef3c0
7 changed files with 65 additions and 28 deletions

View File

@@ -15,7 +15,7 @@ using System.Linq;
namespace OpenRA.Mods.Common.UpdateRules.Rules
{
public class RemoveNegativeSequenceLength : UpdateRule
public class RemoveNegativeSequenceLength : UpdateRule, IBeforeUpdateSequences
{
public override string Name => "Negative sequence length is no longer allowed.";
@@ -23,7 +23,7 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
List<MiniYamlNode> resolvedImagesNodes;
public override IEnumerable<string> BeforeUpdateSequences(ModData modData, List<MiniYamlNode> resolvedImagesNodes)
public IEnumerable<string> BeforeUpdateSequences(ModData modData, List<MiniYamlNode> resolvedImagesNodes)
{
this.resolvedImagesNodes = resolvedImagesNodes;
yield break;