mirror of
https://github.com/ppy/osu
synced 2024-12-29 02:12:43 +00: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.Graphics;
|
||||
using osu.Game.Rulesets.Objects;
|
||||
using osu.Game.Rulesets.Objects.Types;
|
||||
using osu.Game.Rulesets.Osu.Objects;
|
||||
|
||||
namespace osu.Game.Rulesets.Osu.Beatmaps
|
||||
@ -15,9 +14,9 @@ namespace osu.Game.Rulesets.Osu.Beatmaps
|
||||
{
|
||||
public override IEnumerable<BeatmapStatistic> GetStatistics()
|
||||
{
|
||||
IEnumerable<HitObject> circles = HitObjects.Where(c => !(c is IHasEndTime));
|
||||
IEnumerable<HitObject> sliders = HitObjects.Where(s => s is IHasCurve);
|
||||
IEnumerable<HitObject> spinners = HitObjects.Where(s => s is IHasEndTime && !(s is IHasCurve));
|
||||
IEnumerable<HitObject> circles = HitObjects.Where(c => c is HitCircle);
|
||||
IEnumerable<HitObject> sliders = HitObjects.Where(s => s is Slider);
|
||||
IEnumerable<HitObject> spinners = HitObjects.Where(s => s is Spinner);
|
||||
|
||||
return new[]
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user