Add a RemoveNode(MiniYamlNode) method to UpdateUtils

This commit is contained in:
abcdefg30
2018-05-03 15:46:34 +02:00
committed by reaperrr
parent ae9371f627
commit 9a8e50e82f

View File

@@ -264,6 +264,11 @@ namespace OpenRA.Mods.Common.UpdateRules
node.Value.Nodes.Add(toAdd);
}
public static void RemoveNode(this MiniYamlNode node, MiniYamlNode toRemove)
{
node.Value.Nodes.Remove(toRemove);
}
/// <summary>Removes children with keys equal to [match] or [match]@[arbitrary suffix]</summary>
public static int RemoveNodes(this MiniYamlNode node, string match)
{