1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:33:30 +08:00

Remove IScoreInfo : IHasNamedFiles inheritance

This commit is contained in:
Bartłomiej Dach 2023-10-26 14:46:24 +02:00
parent dbb69419e6
commit 526ee6e140
No known key found for this signature in database
3 changed files with 5 additions and 4 deletions

View File

@ -10,13 +10,15 @@ namespace osu.Game.Database
/// <summary> /// <summary>
/// A model that contains a list of files it is responsible for. /// A model that contains a list of files it is responsible for.
/// </summary> /// </summary>
public interface IHasRealmFiles public interface IHasRealmFiles : IHasNamedFiles
{ {
/// <summary> /// <summary>
/// Available files in this model, with locally filenames. /// Available files in this model, with locally filenames.
/// When performing lookups, consider using <see cref="BeatmapSetInfoExtensions.GetFile"/> or <see cref="BeatmapSetInfoExtensions.GetPathForFile"/> to do case-insensitive lookups. /// When performing lookups, consider using <see cref="BeatmapSetInfoExtensions.GetFile"/> or <see cref="BeatmapSetInfoExtensions.GetPathForFile"/> to do case-insensitive lookups.
/// </summary> /// </summary>
IList<RealmNamedFileUsage> Files { get; } new IList<RealmNamedFileUsage> Files { get; }
IEnumerable<INamedFileUsage> IHasNamedFiles.Files => Files;
/// <summary> /// <summary>
/// A combined hash representing the model, based on the files it contains. /// A combined hash representing the model, based on the files it contains.

View File

@ -9,7 +9,7 @@ using osu.Game.Users;
namespace osu.Game.Scoring namespace osu.Game.Scoring
{ {
public interface IScoreInfo : IHasOnlineID<long>, IHasNamedFiles public interface IScoreInfo : IHasOnlineID<long>
{ {
IUser User { get; } IUser User { get; }

View File

@ -187,7 +187,6 @@ namespace osu.Game.Scoring
IRulesetInfo IScoreInfo.Ruleset => Ruleset; IRulesetInfo IScoreInfo.Ruleset => Ruleset;
IBeatmapInfo? IScoreInfo.Beatmap => BeatmapInfo; IBeatmapInfo? IScoreInfo.Beatmap => BeatmapInfo;
IUser IScoreInfo.User => User; IUser IScoreInfo.User => User;
IEnumerable<INamedFileUsage> IHasNamedFiles.Files => Files;
#region Properties required to make things work with existing usages #region Properties required to make things work with existing usages