2016-09-02 19:30:27 +08:00
|
|
|
|
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Game.Beatmaps.Objects;
|
|
|
|
|
using osu.Game.Beatmaps.Objects.Catch;
|
2016-10-13 09:10:15 +08:00
|
|
|
|
using osu.Game.Beatmaps.Objects.Catch.Drawable;
|
2016-09-02 19:30:27 +08:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.GameModes.Play.Catch
|
|
|
|
|
{
|
2016-10-13 09:10:15 +08:00
|
|
|
|
public class CatchHitRenderer : HitRenderer<CatchBaseHit>
|
2016-09-02 19:30:27 +08:00
|
|
|
|
{
|
2016-10-13 09:10:15 +08:00
|
|
|
|
protected override Playfield CreatePlayfield() => new CatchPlayfield();
|
2016-09-02 19:30:27 +08:00
|
|
|
|
|
2016-10-13 09:10:15 +08:00
|
|
|
|
protected override List<CatchBaseHit> Convert(List<HitObject> objects) => new CatchConverter().Convert(objects);
|
2016-09-02 19:30:27 +08:00
|
|
|
|
|
2016-10-13 09:10:15 +08:00
|
|
|
|
protected override Drawable GetVisualRepresentation(CatchBaseHit h) => new DrawableFruit(h);
|
2016-09-02 19:30:27 +08:00
|
|
|
|
}
|
|
|
|
|
}
|