mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Promote SharedFeature
This commit is contained in:
@@ -86,11 +86,6 @@ namespace SabreTools.Library.Filtering
|
||||
|
||||
public FilterItem<Supported> Machine_Supported { get; private set; } = new FilterItem<Supported>() { Positive = Supported.NULL, Negative = Supported.NULL };
|
||||
|
||||
// SharedFeatures
|
||||
public FilterItem<bool?> Machine_SharedFeatures { get; private set; } = new FilterItem<bool?>() { Neutral = null };
|
||||
public FilterItem<string> Machine_SharedFeature_Name { get; private set; } = new FilterItem<string>();
|
||||
public FilterItem<string> Machine_SharedFeature_Value { get; private set; } = new FilterItem<string>();
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion // Machine Filters
|
||||
@@ -290,6 +285,9 @@ namespace SabreTools.Library.Filtering
|
||||
// Release
|
||||
public FilterItem<string> DatItem_Language { get; private set; } = new FilterItem<string>();
|
||||
|
||||
// SharedFeature
|
||||
public FilterItem<string> DatItem_SharedFeatureValue { get; private set; } = new FilterItem<string>();
|
||||
|
||||
// Slots.SlotOptions
|
||||
public FilterItem<bool?> DatItem_SlotOptions { get; private set; } = new FilterItem<bool?>() { Neutral = null };
|
||||
public FilterItem<string> DatItem_SlotOption_Name { get; private set; } = new FilterItem<string>();
|
||||
@@ -651,28 +649,6 @@ namespace SabreTools.Library.Filtering
|
||||
Machine_Supported.Positive |= value.AsSupported();
|
||||
break;
|
||||
|
||||
// SharedFeatures
|
||||
case Field.Machine_SharedFeatures:
|
||||
if (negate || value.Equals("false", StringComparison.OrdinalIgnoreCase))
|
||||
Machine_SharedFeatures.Neutral = false;
|
||||
else
|
||||
Machine_SharedFeatures.Neutral = true;
|
||||
break;
|
||||
|
||||
case Field.Machine_SharedFeature_Name:
|
||||
if (negate)
|
||||
Machine_SharedFeature_Name.NegativeSet.Add(value);
|
||||
else
|
||||
Machine_SharedFeature_Name.PositiveSet.Add(value);
|
||||
break;
|
||||
|
||||
case Field.Machine_SharedFeature_Value:
|
||||
if (negate)
|
||||
Machine_SharedFeature_Value.NegativeSet.Add(value);
|
||||
else
|
||||
Machine_SharedFeature_Value.PositiveSet.Add(value);
|
||||
break;
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion // Machine Filters
|
||||
@@ -1627,6 +1603,14 @@ namespace SabreTools.Library.Filtering
|
||||
DatItem_Language.PositiveSet.Add(value);
|
||||
break;
|
||||
|
||||
// SharedFeature
|
||||
case Field.DatItem_SharedFeatureValue:
|
||||
if (negate)
|
||||
DatItem_SharedFeatureValue.NegativeSet.Add(value);
|
||||
else
|
||||
DatItem_SharedFeatureValue.PositiveSet.Add(value);
|
||||
break;
|
||||
|
||||
// Slots.SlotOptions
|
||||
case Field.DatItem_SlotOptions:
|
||||
if (negate || value.Equals("false", StringComparison.OrdinalIgnoreCase))
|
||||
|
||||
Reference in New Issue
Block a user