mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Make all DatItems handle being a sub item gracefully
This commit is contained in:
@@ -182,11 +182,12 @@ namespace SabreTools.Library.DatItems
|
|||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public override bool PassesFilter(Filter filter)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Filter on item name
|
// Filter on item name
|
||||||
|
|||||||
@@ -92,31 +92,17 @@ namespace SabreTools.Library.DatItems
|
|||||||
|
|
||||||
#region Filtering
|
#region Filtering
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Check to see if a DatItem passes the filter
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="filter">Filter to check against</param>
|
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
|
||||||
public override bool PassesFilter(Filter filter)
|
|
||||||
{
|
|
||||||
return PassesFilter(filter, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public bool PassesFilter(Filter filter, bool sub)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
|
||||||
// If we're a top-level item, check common fields
|
|
||||||
if (!sub)
|
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
|
|
||||||
// Filter on mask
|
// Filter on mask
|
||||||
if (!filter.PassStringFilter(filter.DatItem_Analog_Mask, Mask))
|
if (!filter.PassStringFilter(filter.DatItem_Analog_Mask, Mask))
|
||||||
|
|||||||
@@ -135,11 +135,12 @@ namespace SabreTools.Library.DatItems
|
|||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public override bool PassesFilter(Filter filter)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Filter on item name
|
// Filter on item name
|
||||||
|
|||||||
@@ -162,11 +162,12 @@ namespace SabreTools.Library.DatItems
|
|||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public override bool PassesFilter(Filter filter)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Filter on item name
|
// Filter on item name
|
||||||
|
|||||||
@@ -180,11 +180,12 @@ namespace SabreTools.Library.DatItems
|
|||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public override bool PassesFilter(Filter filter)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Filter on item name
|
// Filter on item name
|
||||||
|
|||||||
@@ -161,24 +161,18 @@ namespace SabreTools.Library.DatItems
|
|||||||
|
|
||||||
#region Filtering
|
#region Filtering
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Check to see if a DatItem passes the filter
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="filter">Filter to check against</param>
|
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
|
||||||
public override bool PassesFilter(Filter filter)
|
|
||||||
{
|
|
||||||
return PassesFilter(filter, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public bool PassesFilter(Filter filter, bool sub)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
{
|
||||||
|
// Check common fields first
|
||||||
|
if (!base.PassesFilter(filter, sub))
|
||||||
|
return false;
|
||||||
|
|
||||||
if (sub)
|
if (sub)
|
||||||
{
|
{
|
||||||
// Filter on tag
|
// Filter on tag
|
||||||
@@ -201,10 +195,6 @@ namespace SabreTools.Library.DatItems
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Check common fields first
|
|
||||||
if (!base.PassesFilter(filter))
|
|
||||||
return false;
|
|
||||||
|
|
||||||
// Filter on tag
|
// Filter on tag
|
||||||
if (!filter.PassStringFilter(filter.DatItem_Tag, Tag))
|
if (!filter.PassStringFilter(filter.DatItem_Tag, Tag))
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -247,11 +247,12 @@ namespace SabreTools.Library.DatItems
|
|||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public override bool PassesFilter(Filter filter)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Filter on item name
|
// Filter on item name
|
||||||
|
|||||||
@@ -255,31 +255,17 @@ namespace SabreTools.Library.DatItems
|
|||||||
|
|
||||||
#region Filtering
|
#region Filtering
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Check to see if a DatItem passes the filter
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="filter">Filter to check against</param>
|
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
|
||||||
public override bool PassesFilter(Filter filter)
|
|
||||||
{
|
|
||||||
return PassesFilter(filter, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public bool PassesFilter(Filter filter, bool sub)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
|
||||||
// If we're a top-level item, check common fields
|
|
||||||
if (!sub)
|
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
|
|
||||||
// Filter on control type
|
// Filter on control type
|
||||||
if (filter.DatItem_Control_Type.MatchesPositive(ControlType.NULL, ControlType) == false)
|
if (filter.DatItem_Control_Type.MatchesPositive(ControlType.NULL, ControlType) == false)
|
||||||
|
|||||||
@@ -721,16 +721,21 @@ namespace SabreTools.Library.DatItems
|
|||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public virtual bool PassesFilter(Filter filter)
|
public virtual bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
{
|
||||||
// Filter on machine fields
|
// Filter on machine fields
|
||||||
if (!Machine.PassesFilter(filter))
|
if (!Machine.PassesFilter(filter))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
// Filters for if we're a top-level item
|
||||||
|
if (!sub)
|
||||||
|
{
|
||||||
// Filter on item type
|
// Filter on item type
|
||||||
if (!filter.PassStringFilter(filter.DatItem_Type, ItemType.ToString()))
|
if (!filter.PassStringFilter(filter.DatItem_Type, ItemType.ToString()))
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -178,31 +178,17 @@ namespace SabreTools.Library.DatItems
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Check to see if a DatItem passes the filter
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="filter">Filter to check against</param>
|
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
|
||||||
public override bool PassesFilter(Filter filter)
|
|
||||||
{
|
|
||||||
return PassesFilter(filter, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public bool PassesFilter(Filter filter, bool sub)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
|
||||||
// If we're a top-level item, check common fields
|
|
||||||
if (!sub)
|
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
|
|
||||||
// Filter on area name
|
// Filter on area name
|
||||||
if (!filter.PassStringFilter(filter.DatItem_AreaName, Name))
|
if (!filter.PassStringFilter(filter.DatItem_AreaName, Name))
|
||||||
|
|||||||
@@ -214,11 +214,12 @@ namespace SabreTools.Library.DatItems
|
|||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public override bool PassesFilter(Filter filter)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Filter on device type
|
// Filter on device type
|
||||||
|
|||||||
@@ -135,11 +135,12 @@ namespace SabreTools.Library.DatItems
|
|||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public override bool PassesFilter(Filter filter)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Filter on item name
|
// Filter on item name
|
||||||
|
|||||||
@@ -294,11 +294,12 @@ namespace SabreTools.Library.DatItems
|
|||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public override bool PassesFilter(Filter filter)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
#region Common
|
#region Common
|
||||||
|
|||||||
@@ -439,11 +439,12 @@ namespace SabreTools.Library.DatItems
|
|||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public override bool PassesFilter(Filter filter)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
#region Common
|
#region Common
|
||||||
|
|||||||
@@ -133,31 +133,17 @@ namespace SabreTools.Library.DatItems
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Check to see if a DatItem passes the filter
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="filter">Filter to check against</param>
|
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
|
||||||
public override bool PassesFilter(Filter filter)
|
|
||||||
{
|
|
||||||
return PassesFilter(filter, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public bool PassesFilter(Filter filter, bool sub)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
|
||||||
// If we're a top-level item, check common fields
|
|
||||||
if (!sub)
|
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
|
|
||||||
// Filter on area name
|
// Filter on area name
|
||||||
if (!filter.PassStringFilter(filter.DatItem_AreaName, Name))
|
if (!filter.PassStringFilter(filter.DatItem_AreaName, Name))
|
||||||
|
|||||||
@@ -298,11 +298,12 @@ namespace SabreTools.Library.DatItems
|
|||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public override bool PassesFilter(Filter filter)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Filter on tag
|
// Filter on tag
|
||||||
|
|||||||
@@ -150,11 +150,12 @@ namespace SabreTools.Library.DatItems
|
|||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public override bool PassesFilter(Filter filter)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Filter on status
|
// Filter on status
|
||||||
|
|||||||
@@ -131,31 +131,17 @@ namespace SabreTools.Library.DatItems
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Check to see if a DatItem passes the filter
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="filter">Filter to check against</param>
|
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
|
||||||
public override bool PassesFilter(Filter filter)
|
|
||||||
{
|
|
||||||
return PassesFilter(filter, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public bool PassesFilter(Filter filter, bool sub)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
|
||||||
// If we're a top-level item, check common fields
|
|
||||||
if (!sub)
|
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
|
|
||||||
// Filter on item name
|
// Filter on item name
|
||||||
if (!filter.PassStringFilter(filter.DatItem_Extension_Name, Name))
|
if (!filter.PassStringFilter(filter.DatItem_Extension_Name, Name))
|
||||||
|
|||||||
@@ -132,11 +132,12 @@ namespace SabreTools.Library.DatItems
|
|||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public override bool PassesFilter(Filter filter)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Filter on type
|
// Filter on type
|
||||||
|
|||||||
@@ -146,11 +146,12 @@ namespace SabreTools.Library.DatItems
|
|||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public override bool PassesFilter(Filter filter)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Filter on item name
|
// Filter on item name
|
||||||
|
|||||||
@@ -178,11 +178,12 @@ namespace SabreTools.Library.DatItems
|
|||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public override bool PassesFilter(Filter filter)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Filter on service
|
// Filter on service
|
||||||
|
|||||||
@@ -142,31 +142,17 @@ namespace SabreTools.Library.DatItems
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Check to see if a DatItem passes the filter
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="filter">Filter to check against</param>
|
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
|
||||||
public override bool PassesFilter(Filter filter)
|
|
||||||
{
|
|
||||||
return PassesFilter(filter, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public bool PassesFilter(Filter filter, bool sub)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
|
||||||
// If we're a top-level item, check common fields
|
|
||||||
if (!sub)
|
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
|
|
||||||
// Filter on item name
|
// Filter on item name
|
||||||
if (!filter.PassStringFilter(filter.DatItem_Instance_Name, Name))
|
if (!filter.PassStringFilter(filter.DatItem_Instance_Name, Name))
|
||||||
|
|||||||
@@ -161,31 +161,17 @@ namespace SabreTools.Library.DatItems
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Check to see if a DatItem passes the filter
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="filter">Filter to check against</param>
|
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
|
||||||
public override bool PassesFilter(Filter filter)
|
|
||||||
{
|
|
||||||
return PassesFilter(filter, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public bool PassesFilter(Filter filter, bool sub)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
|
||||||
// If we're a top-level item, check common fields
|
|
||||||
if (!sub)
|
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
|
|
||||||
// Filter on item name
|
// Filter on item name
|
||||||
if (!filter.PassStringFilter(filter.DatItem_Location_Name, Name))
|
if (!filter.PassStringFilter(filter.DatItem_Location_Name, Name))
|
||||||
|
|||||||
@@ -336,11 +336,12 @@ namespace SabreTools.Library.DatItems
|
|||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public override bool PassesFilter(Filter filter)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Filter on item name
|
// Filter on item name
|
||||||
|
|||||||
@@ -169,31 +169,17 @@ namespace SabreTools.Library.DatItems
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Check to see if a DatItem passes the filter
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="filter">Filter to check against</param>
|
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
|
||||||
public override bool PassesFilter(Filter filter)
|
|
||||||
{
|
|
||||||
return PassesFilter(filter, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public bool PassesFilter(Filter filter, bool sub)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
|
||||||
// If we're a top-level item, check common fields
|
|
||||||
if (!sub)
|
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
|
|
||||||
// Filter on part name
|
// Filter on part name
|
||||||
if (!filter.PassStringFilter(filter.DatItem_Part_Name, Name))
|
if (!filter.PassStringFilter(filter.DatItem_Part_Name, Name))
|
||||||
|
|||||||
@@ -142,31 +142,17 @@ namespace SabreTools.Library.DatItems
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Check to see if a DatItem passes the filter
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="filter">Filter to check against</param>
|
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
|
||||||
public override bool PassesFilter(Filter filter)
|
|
||||||
{
|
|
||||||
return PassesFilter(filter, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public bool PassesFilter(Filter filter, bool sub)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
|
||||||
// If we're a top-level item, check common fields
|
|
||||||
if (!sub)
|
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
|
|
||||||
// Filter on name
|
// Filter on name
|
||||||
if (!filter.PassStringFilter(filter.DatItem_Part_Feature_Name, Name))
|
if (!filter.PassStringFilter(filter.DatItem_Part_Feature_Name, Name))
|
||||||
|
|||||||
@@ -128,11 +128,12 @@ namespace SabreTools.Library.DatItems
|
|||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public override bool PassesFilter(Filter filter)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Filter on tag
|
// Filter on tag
|
||||||
|
|||||||
@@ -160,11 +160,12 @@ namespace SabreTools.Library.DatItems
|
|||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public override bool PassesFilter(Filter filter)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Filter on item name
|
// Filter on item name
|
||||||
|
|||||||
@@ -190,11 +190,12 @@ namespace SabreTools.Library.DatItems
|
|||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public override bool PassesFilter(Filter filter)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Filter on item name
|
// Filter on item name
|
||||||
|
|||||||
@@ -803,11 +803,12 @@ namespace SabreTools.Library.DatItems
|
|||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public override bool PassesFilter(Filter filter)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
#region Common
|
#region Common
|
||||||
|
|||||||
@@ -135,11 +135,12 @@ namespace SabreTools.Library.DatItems
|
|||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public override bool PassesFilter(Filter filter)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Filter on item name
|
// Filter on item name
|
||||||
|
|||||||
@@ -190,31 +190,17 @@ namespace SabreTools.Library.DatItems
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Check to see if a DatItem passes the filter
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="filter">Filter to check against</param>
|
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
|
||||||
public override bool PassesFilter(Filter filter)
|
|
||||||
{
|
|
||||||
return PassesFilter(filter, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public bool PassesFilter(Filter filter, bool sub)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
|
||||||
// If we're a top-level item, check common fields
|
|
||||||
if (!sub)
|
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
|
|
||||||
// Filter on item name
|
// Filter on item name
|
||||||
if (!filter.PassStringFilter(filter.DatItem_Setting_Name, Name))
|
if (!filter.PassStringFilter(filter.DatItem_Setting_Name, Name))
|
||||||
|
|||||||
@@ -146,11 +146,12 @@ namespace SabreTools.Library.DatItems
|
|||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public override bool PassesFilter(Filter filter)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Filter on item name
|
// Filter on item name
|
||||||
|
|||||||
@@ -167,11 +167,12 @@ namespace SabreTools.Library.DatItems
|
|||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public override bool PassesFilter(Filter filter)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Filter on item name
|
// Filter on item name
|
||||||
|
|||||||
@@ -158,31 +158,17 @@ namespace SabreTools.Library.DatItems
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Check to see if a DatItem passes the filter
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="filter">Filter to check against</param>
|
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
|
||||||
public override bool PassesFilter(Filter filter)
|
|
||||||
{
|
|
||||||
return PassesFilter(filter, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public bool PassesFilter(Filter filter, bool sub)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
|
||||||
// If we're a top-level item, check common fields
|
|
||||||
if (!sub)
|
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
|
|
||||||
// Filter on item name
|
// Filter on item name
|
||||||
if (!filter.PassStringFilter(filter.DatItem_SlotOption_Name, Name))
|
if (!filter.PassStringFilter(filter.DatItem_SlotOption_Name, Name))
|
||||||
|
|||||||
@@ -164,11 +164,12 @@ namespace SabreTools.Library.DatItems
|
|||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public override bool PassesFilter(Filter filter)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Filter on item name
|
// Filter on item name
|
||||||
|
|||||||
@@ -101,11 +101,12 @@ namespace SabreTools.Library.DatItems
|
|||||||
/// Check to see if a DatItem passes the filter
|
/// Check to see if a DatItem passes the filter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="filter">Filter to check against</param>
|
/// <param name="filter">Filter to check against</param>
|
||||||
|
/// <param name="sub">True if this is a subitem, false otherwise</param>
|
||||||
/// <returns>True if the item passed the filter, false otherwise</returns>
|
/// <returns>True if the item passed the filter, false otherwise</returns>
|
||||||
public override bool PassesFilter(Filter filter)
|
public override bool PassesFilter(Filter filter, bool sub = false)
|
||||||
{
|
{
|
||||||
// Check common fields first
|
// Check common fields first
|
||||||
if (!base.PassesFilter(filter))
|
if (!base.PassesFilter(filter, sub))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Filter on channels
|
// Filter on channels
|
||||||
|
|||||||
Reference in New Issue
Block a user