1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 07:32:55 +08:00

Use ruleset criteria in parsing and filtering

This commit is contained in:
Bartłomiej Dach 2021-03-02 20:11:21 +01:00
parent c375be6b07
commit 42c3309d49
2 changed files with 4 additions and 1 deletions

View File

@ -73,6 +73,9 @@ namespace osu.Game.Screens.Select.Carousel
if (match)
match &= criteria.Collection?.Beatmaps.Contains(Beatmap) ?? true;
if (match && criteria.RulesetCriteria != null)
match &= criteria.RulesetCriteria.Matches(Beatmap);
Filtered.Value = !match;
}

View File

@ -67,7 +67,7 @@ namespace osu.Game.Screens.Select
return updateCriteriaText(ref criteria.Artist, op, value);
default:
return false;
return criteria.RulesetCriteria?.TryParseCustomKeywordCriteria(key, op, value) ?? false;
}
}