mirror of
https://github.com/ppy/osu.git
synced 2025-01-07 20:42:54 +08:00
Simplify osu-ruleset statistics
This commit is contained in:
parent
b737644208
commit
5f74dc2c17
@ -6,7 +6,6 @@ using System.Linq;
|
|||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
using osu.Game.Rulesets.Objects;
|
using osu.Game.Rulesets.Objects;
|
||||||
using osu.Game.Rulesets.Objects.Types;
|
|
||||||
using osu.Game.Rulesets.Osu.Objects;
|
using osu.Game.Rulesets.Osu.Objects;
|
||||||
|
|
||||||
namespace osu.Game.Rulesets.Osu.Beatmaps
|
namespace osu.Game.Rulesets.Osu.Beatmaps
|
||||||
@ -15,9 +14,9 @@ namespace osu.Game.Rulesets.Osu.Beatmaps
|
|||||||
{
|
{
|
||||||
public override IEnumerable<BeatmapStatistic> GetStatistics()
|
public override IEnumerable<BeatmapStatistic> GetStatistics()
|
||||||
{
|
{
|
||||||
IEnumerable<HitObject> circles = HitObjects.Where(c => !(c is IHasEndTime));
|
IEnumerable<HitObject> circles = HitObjects.Where(c => c is HitCircle);
|
||||||
IEnumerable<HitObject> sliders = HitObjects.Where(s => s is IHasCurve);
|
IEnumerable<HitObject> sliders = HitObjects.Where(s => s is Slider);
|
||||||
IEnumerable<HitObject> spinners = HitObjects.Where(s => s is IHasEndTime && !(s is IHasCurve));
|
IEnumerable<HitObject> spinners = HitObjects.Where(s => s is Spinner);
|
||||||
|
|
||||||
return new[]
|
return new[]
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user