Reduce DatItem boilerplate

This commit is contained in:
Matt Nadareski
2020-09-08 10:56:37 -07:00
parent f0afe33dd7
commit d8835920a7
35 changed files with 202 additions and 426 deletions

View File

@@ -109,11 +109,7 @@ namespace SabreTools.Library.DatItems
return false;
// Filter on channels
if (filter.DatItem_Channels.MatchesNeutral(null, Channels) == false)
return false;
else if (filter.DatItem_Channels.MatchesPositive(null, Channels) == false)
return false;
else if (filter.DatItem_Channels.MatchesNegative(null, Channels) == false)
if (!PassLongFilter(filter.DatItem_Channels, Channels))
return false;
return true;