mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Move BeatmapInfo
's SearchableTerms
implementation to interface
This commit is contained in:
@ -152,10 +152,7 @@ namespace osu.Game.Beatmaps
|
||||
[JsonIgnore]
|
||||
public DifficultyRating DifficultyRating => BeatmapDifficultyCache.GetDifficultyRating(StarDifficulty);
|
||||
|
||||
public string[] SearchableTerms => new[]
|
||||
{
|
||||
Version
|
||||
}.Concat(Metadata?.SearchableTerms ?? Enumerable.Empty<string>()).Where(s => !string.IsNullOrEmpty(s)).ToArray();
|
||||
public IEnumerable<string> SearchableTerms => ((IBeatmapInfo)this).SearchableTerms;
|
||||
|
||||
public override string ToString() => ((IBeatmapInfo)this).DisplayTitle;
|
||||
|
||||
|
Reference in New Issue
Block a user