mirror of
https://github.com/osukey/osukey.git
synced 2025-05-09 23:57:18 +09:00
Store maximum score results from simulated autoplay
This commit is contained in:
parent
7dfc18a0e3
commit
c4089b71bd
@ -126,6 +126,9 @@ namespace osu.Game.Rulesets.Scoring
|
|||||||
private bool beatmapApplied;
|
private bool beatmapApplied;
|
||||||
|
|
||||||
private readonly Dictionary<HitResult, int> scoreResultCounts = new Dictionary<HitResult, int>();
|
private readonly Dictionary<HitResult, int> scoreResultCounts = new Dictionary<HitResult, int>();
|
||||||
|
|
||||||
|
private Dictionary<HitResult, int>? maximumResultCounts;
|
||||||
|
|
||||||
private readonly List<HitEvent> hitEvents = new List<HitEvent>();
|
private readonly List<HitEvent> hitEvents = new List<HitEvent>();
|
||||||
private HitObject? lastHitObject;
|
private HitObject? lastHitObject;
|
||||||
|
|
||||||
@ -410,12 +413,16 @@ namespace osu.Game.Rulesets.Scoring
|
|||||||
{
|
{
|
||||||
base.Reset(storeResults);
|
base.Reset(storeResults);
|
||||||
|
|
||||||
scoreResultCounts.Clear();
|
|
||||||
hitEvents.Clear();
|
hitEvents.Clear();
|
||||||
lastHitObject = null;
|
lastHitObject = null;
|
||||||
|
|
||||||
if (storeResults)
|
if (storeResults)
|
||||||
|
{
|
||||||
maximumScoringValues = currentScoringValues;
|
maximumScoringValues = currentScoringValues;
|
||||||
|
maximumResultCounts = new Dictionary<HitResult, int>(scoreResultCounts);
|
||||||
|
}
|
||||||
|
|
||||||
|
scoreResultCounts.Clear();
|
||||||
|
|
||||||
currentScoringValues = default;
|
currentScoringValues = default;
|
||||||
currentMaximumScoringValues = default;
|
currentMaximumScoringValues = default;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user