Expose searchable terms from beatmap info instead

This commit is contained in:
smoogipoo
2020-05-07 13:04:08 +09:00
parent 5186da8412
commit 401c516503
2 changed files with 7 additions and 6 deletions

View File

@ -149,6 +149,11 @@ namespace osu.Game.Beatmaps
}
}
public string[] SearchableTerms => new[]
{
Version
}.Concat(Metadata?.SearchableTerms ?? Enumerable.Empty<string>()).Where(s => !string.IsNullOrEmpty(s)).ToArray();
public override string ToString()
{
string version = string.IsNullOrEmpty(Version) ? string.Empty : $"[{Version}]";