mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Move common interface implementations to extension methods
This commit is contained in:
@ -7,7 +7,6 @@ using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using Newtonsoft.Json;
|
||||
using osu.Framework.Localisation;
|
||||
using osu.Framework.Testing;
|
||||
using osu.Game.Database;
|
||||
using osu.Game.Rulesets;
|
||||
@ -152,11 +151,7 @@ namespace osu.Game.Beatmaps
|
||||
[JsonIgnore]
|
||||
public DifficultyRating DifficultyRating => BeatmapDifficultyCache.GetDifficultyRating(StarDifficulty);
|
||||
|
||||
public IEnumerable<string> SearchableTerms => ((IBeatmapInfo)this).SearchableTerms;
|
||||
|
||||
public override string ToString() => ((IBeatmapInfo)this).DisplayTitle;
|
||||
|
||||
public RomanisableString ToRomanisableString() => ((IBeatmapInfo)this).DisplayTitleRomanisable;
|
||||
public override string ToString() => this.GetDisplayTitle();
|
||||
|
||||
public bool Equals(BeatmapInfo other)
|
||||
{
|
||||
|
Reference in New Issue
Block a user