// 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.Modes.Objects; using osu.Game.Modes.Osu.Objects; using osu.Game.Beatmaps; namespace osu.Game.Modes.Taiko.Objects { internal class TaikoConverter : HitObjectConverter { public override List Convert(Beatmap beatmap) { List output = new List(); foreach (HitObject i in beatmap.HitObjects) { TaikoBaseHit h = i as TaikoBaseHit; if (h == null) { OsuHitObject o = i as OsuHitObject; if (o == null) throw new HitObjectConvertException(@"Taiko", i); h = new TaikoBaseHit { StartTime = o.StartTime, }; } output.Add(h); } return output; } } }