mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 20:22:55 +08:00
TODO: Get score from previous play session for further analysis
This commit is contained in:
parent
1847f69bf9
commit
350b0b488c
@ -136,7 +136,11 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
public readonly PlayerConfiguration Configuration;
|
||||
|
||||
protected Score Score { get; private set; }
|
||||
/// <summary>
|
||||
/// The score for the current play session.
|
||||
/// Available only after the player is loaded.
|
||||
/// </summary>
|
||||
public Score Score { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Create a new player instance.
|
||||
|
@ -23,6 +23,7 @@ using osu.Game.Graphics.Containers;
|
||||
using osu.Game.Input;
|
||||
using osu.Game.Overlays;
|
||||
using osu.Game.Overlays.Notifications;
|
||||
using osu.Game.Rulesets.Scoring;
|
||||
using osu.Game.Screens.Menu;
|
||||
using osu.Game.Screens.Play.PlayerSettings;
|
||||
using osu.Game.Users;
|
||||
@ -226,6 +227,14 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
base.OnResuming(last);
|
||||
|
||||
var lastScore = player.Score;
|
||||
|
||||
if (lastScore != null)
|
||||
{
|
||||
// TODO: use this
|
||||
double? lastPlayHitError = lastScore.ScoreInfo.HitEvents.CalculateAverageHitError();
|
||||
}
|
||||
|
||||
// prepare for a retry.
|
||||
player = null;
|
||||
playerConsumed = false;
|
||||
|
Loading…
Reference in New Issue
Block a user