// Copyright (c) 2007-2017 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Game.Modes.Objects; using osu.Game.Modes.Objects.Drawables; using osu.Game.Modes.Osu.Objects; using osu.Game.Modes.Osu.Objects.Drawables; using osu.Game.Modes.UI; namespace osu.Game.Modes.Osu.UI { public class OsuHitRenderer : HitRenderer { protected override HitObjectConverter Converter => new OsuHitObjectConverter(); protected override Playfield CreatePlayfield() => new OsuPlayfield(); protected override DrawableHitObject GetVisualRepresentation(OsuHitObject h) { var circle = h as HitCircle; if (circle != null) return new DrawableHitCircle(circle); var slider = h as Slider; if (slider != null) return new DrawableSlider(slider); var spinner = h as Spinner; if (spinner != null) return new DrawableSpinner(spinner); return null; } } }