// Copyright (c) 2007-2017 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System.Collections.Generic; using osu.Game.Beatmaps; using osu.Game.Rulesets.Catch.Objects; namespace osu.Game.Rulesets.Catch.Beatmaps { internal class CatchBeatmapProcessor : BeatmapProcessor { public override void PostProcess(Beatmap beatmap) { if (beatmap.ComboColors.Count == 0) return; int comboIndex = 0; int colourIndex = 0; CatchHitObject lastObj = null; convertHyperDash(beatmap.HitObjects); foreach (var obj in beatmap.HitObjects) { if (obj.NewCombo) { if (lastObj != null) lastObj.LastInCombo = true; comboIndex = 0; colourIndex = (colourIndex + 1) % beatmap.ComboColors.Count; } obj.ComboIndex = comboIndex++; obj.ComboColour = beatmap.ComboColors[colourIndex]; lastObj = obj; } } private void convertHyperDash(List objects) { } } }