2021-10-28 17:57:17 +09:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
using osu.Game.Beatmaps;
|
|
|
|
|
using osu.Game.Database;
|
2021-10-28 18:23:52 +09:00
|
|
|
|
using osu.Game.Rulesets;
|
2021-11-11 23:18:31 +09:00
|
|
|
|
using osu.Game.Users;
|
2021-10-28 17:57:17 +09:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Scoring
|
|
|
|
|
{
|
2023-10-26 14:46:24 +02:00
|
|
|
|
public interface IScoreInfo : IHasOnlineID<long>
|
2021-10-28 17:57:17 +09:00
|
|
|
|
{
|
2021-11-11 23:18:31 +09:00
|
|
|
|
IUser User { get; }
|
2021-10-28 17:57:17 +09:00
|
|
|
|
|
2023-05-18 17:27:47 +09:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The standardised total score.
|
|
|
|
|
/// </summary>
|
2021-10-28 18:23:52 +09:00
|
|
|
|
long TotalScore { get; }
|
2021-10-28 17:57:17 +09:00
|
|
|
|
|
2021-10-28 18:23:52 +09:00
|
|
|
|
int MaxCombo { get; }
|
2021-10-28 17:57:17 +09:00
|
|
|
|
|
2021-10-28 18:23:52 +09:00
|
|
|
|
double Accuracy { get; }
|
2021-10-28 17:57:17 +09:00
|
|
|
|
|
2023-09-04 12:21:23 +02:00
|
|
|
|
long LegacyOnlineID { get; }
|
|
|
|
|
|
2021-10-28 18:23:52 +09:00
|
|
|
|
DateTimeOffset Date { get; }
|
2021-10-28 17:57:17 +09:00
|
|
|
|
|
2021-10-28 18:23:52 +09:00
|
|
|
|
double? PP { get; }
|
2021-10-28 17:57:17 +09:00
|
|
|
|
|
2023-07-04 14:50:34 +09:00
|
|
|
|
IBeatmapInfo? Beatmap { get; }
|
2021-10-28 17:57:17 +09:00
|
|
|
|
|
2021-10-28 18:23:52 +09:00
|
|
|
|
IRulesetInfo Ruleset { get; }
|
2021-10-28 17:57:17 +09:00
|
|
|
|
|
2021-10-31 23:49:26 +09:00
|
|
|
|
ScoreRank Rank { get; }
|
2021-10-28 17:57:17 +09:00
|
|
|
|
|
2021-10-28 18:23:52 +09:00
|
|
|
|
// Mods is currently missing from this interface as the `IMod` class has properties which can't be fulfilled by `APIMod`,
|
|
|
|
|
// but also doesn't expose `Settings`. We can consider how to implement this in the future if required.
|
2021-10-29 14:18:10 +09:00
|
|
|
|
|
|
|
|
|
// Statistics is also missing. This can be reconsidered once changes in serialisation have been completed.
|
2021-10-28 17:57:17 +09:00
|
|
|
|
}
|
|
|
|
|
}
|