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:
parent
dbb69419e6
commit
526ee6e140
@ -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.
|
||||||
|
@ -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; }
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user