mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Hook up ScoreProcessor to Scoreoverlay etc.
This commit is contained in:
@ -6,11 +6,35 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using osu.Framework.Configuration;
|
||||
using osu.Game.Modes.Objects.Drawables;
|
||||
|
||||
namespace osu.Game.Modes
|
||||
{
|
||||
public class ScoreProcessor
|
||||
{
|
||||
public virtual Score GetScore() => new Score();
|
||||
|
||||
public BindableDouble TotalScore = new BindableDouble { MinValue = 0 };
|
||||
|
||||
public BindableDouble Accuracy = new BindableDouble { MinValue = 0, MaxValue = 1 };
|
||||
|
||||
public BindableInt Combo = new BindableInt();
|
||||
|
||||
public List<JudgementInfo> Judgements = new List<JudgementInfo>();
|
||||
|
||||
public virtual void AddJudgement(JudgementInfo judgement)
|
||||
{
|
||||
Judgements.Add(judgement);
|
||||
UpdateCalculations();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Update any values that potentially need post-processing on a judgement change.
|
||||
/// </summary>
|
||||
protected virtual void UpdateCalculations()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user