//Copyright (c) 2007-2016 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.Osu; namespace osu.Game.Modes.Objects.Taiko { class TaikoConverter : HitObjectConverter { public override List Convert(List input) { List output = new List(); foreach (HitObject i in input) { TaikoBaseHit h = i as TaikoBaseHit; if (h == null) { OsuBaseHit o = i as OsuBaseHit; if (o == null) throw new HitObjectConvertException(@"Taiko", i); h = new TaikoBaseHit { StartTime = o.StartTime, }; } output.Add(h); } return output; } } }