Rework score processor to provide more generic events

This commit is contained in:
smoogipoo
2020-06-18 22:11:03 +09:00
parent 6c8a24260b
commit 20db5b33ab
8 changed files with 126 additions and 132 deletions

View File

@ -29,6 +29,7 @@ using osu.Game.Rulesets.Scoring;
using osu.Game.Scoring;
using osu.Game.Skinning;
using System;
using System.Linq;
using osu.Framework.Graphics.Containers;
using osu.Game.Rulesets.Osu.Statistics;
using osu.Game.Screens.Ranking.Statistics;
@ -200,7 +201,7 @@ namespace osu.Game.Rulesets.Osu
{
RelativeSizeAxes = Axes.X,
Height = 130,
Child = new TimingDistributionGraph((TimingDistribution)score.ExtraStatistics.GetValueOrDefault("timing_distribution"))
Child = new TimingDistributionGraph(score.HitEvents.Cast<HitEvent>().ToList())
{
RelativeSizeAxes = Axes.Both
}
@ -208,7 +209,7 @@ namespace osu.Game.Rulesets.Osu
new StatisticContainer("Accuracy Heatmap")
{
RelativeSizeAxes = Axes.Both,
Child = new Heatmap((List<HitOffset>)score.ExtraStatistics.GetValueOrDefault("hit_offsets"))
Child = new Heatmap(score.Beatmap, score.HitEvents.Cast<HitEvent>().ToList())
{
RelativeSizeAxes = Axes.Both
}