Expose as JudgementResult instead of "passing" state

This commit is contained in:
Dean Herbert
2020-05-03 23:55:44 +09:00
parent ff1d63060d
commit cea6be5e52
4 changed files with 14 additions and 13 deletions

View File

@ -9,7 +9,6 @@ using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Beatmaps.Timing;
using osu.Game.Rulesets.Judgements;
using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.Scoring;
namespace osu.Game.Screens.Play
{
@ -42,13 +41,10 @@ namespace osu.Game.Screens.Play
public IBeatmap Clone() => PlayableBeatmap.Clone();
public IBindable<bool> Passing => passing;
private readonly Bindable<JudgementResult> lastJudgementResult = new Bindable<JudgementResult>();
private readonly BindableBool passing = new BindableBool(true);
public IBindable<JudgementResult> LastJudgementResult => lastJudgementResult;
public void OnNewResult(JudgementResult result)
{
passing.Value = result.Type > HitResult.Miss;
}
public void ApplyResult(JudgementResult result) => lastJudgementResult.Value = result;
}
}