mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add a remaining ListXML-specific objects
Also fixes the usage of some other objects, adds proper objects for certain cases, and adds a bunch of TODOs around the new objects. There will be a lot of overhauls needed to properly support things like Devices and Slots
This commit is contained in:
@@ -121,7 +121,7 @@ namespace SabreTools.Library.Filtering
|
||||
/// <summary>
|
||||
/// Include or exclude items with the "Runnable" tag
|
||||
/// </summary>
|
||||
public FilterItem<bool?> Runnable { get; private set; } = new FilterItem<bool?>() { Neutral = null };
|
||||
public FilterItem<Runnable> Runnables { get; private set; } = new FilterItem<Runnable>() { Positive = Runnable.NULL, Negative = Runnable.NULL };
|
||||
|
||||
/// <summary>
|
||||
/// Include or exclude machine devices
|
||||
@@ -703,10 +703,10 @@ namespace SabreTools.Library.Filtering
|
||||
break;
|
||||
|
||||
case Field.Runnable:
|
||||
if (negate || value.Equals("false", StringComparison.OrdinalIgnoreCase))
|
||||
Runnable.Neutral = false;
|
||||
if (negate)
|
||||
Runnables.Negative |= value.AsRunnable();
|
||||
else
|
||||
Runnable.Neutral = true;
|
||||
Runnables.Positive |= value.AsRunnable();
|
||||
break;
|
||||
|
||||
case Field.Devices:
|
||||
|
||||
Reference in New Issue
Block a user