mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 20:07:29 +08:00
21 lines
754 B
C#
21 lines
754 B
C#
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
|
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using osu.Framework.Graphics;
|
|
using osu.Game.Beatmaps.Objects;
|
|
using osu.Game.Beatmaps.Objects.Osu;
|
|
using osu.Game.Beatmaps.Objects.Osu.Drawable;
|
|
|
|
namespace osu.Game.GameModes.Play.Osu
|
|
{
|
|
public class OsuHitRenderer : HitRenderer<OsuBaseHit>
|
|
{
|
|
protected override HitObjectConverter<OsuBaseHit> Converter => new OsuConverter();
|
|
|
|
protected override Playfield CreatePlayfield() => new OsuPlayfield();
|
|
|
|
protected override DrawableHitObject GetVisualRepresentation(OsuBaseHit h)
|
|
=> h is Circle ? new DrawableCircle(h as Circle) : null;
|
|
}
|
|
}
|