2017-02-07 12:59:30 +08:00
|
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
2016-09-02 19:30:27 +08:00
|
|
|
|
|
2017-03-10 14:08:53 +08:00
|
|
|
|
using osu.Game.Beatmaps;
|
2017-03-12 13:32:50 +08:00
|
|
|
|
using osu.Game.Modes.Mania.Beatmaps;
|
2017-03-15 17:55:38 +08:00
|
|
|
|
using osu.Game.Modes.Mania.Judgements;
|
2016-11-14 17:54:24 +08:00
|
|
|
|
using osu.Game.Modes.Mania.Objects;
|
2016-11-14 18:49:29 +08:00
|
|
|
|
using osu.Game.Modes.Objects.Drawables;
|
2016-11-14 17:54:24 +08:00
|
|
|
|
using osu.Game.Modes.UI;
|
2016-09-02 19:30:27 +08:00
|
|
|
|
|
2016-11-14 17:54:24 +08:00
|
|
|
|
namespace osu.Game.Modes.Mania.UI
|
2016-09-02 19:30:27 +08:00
|
|
|
|
{
|
2017-03-15 17:55:38 +08:00
|
|
|
|
public class ManiaHitRenderer : HitRenderer<ManiaBaseHit, ManiaJudgementInfo>
|
2016-09-02 19:30:27 +08:00
|
|
|
|
{
|
|
|
|
|
private readonly int columns;
|
|
|
|
|
|
2017-03-12 17:03:13 +08:00
|
|
|
|
public ManiaHitRenderer(WorkingBeatmap beatmap, int columns = 5)
|
2017-03-10 14:08:53 +08:00
|
|
|
|
: base(beatmap)
|
2016-09-02 19:30:27 +08:00
|
|
|
|
{
|
|
|
|
|
this.columns = columns;
|
|
|
|
|
}
|
|
|
|
|
|
2017-03-16 11:40:35 +08:00
|
|
|
|
public override ScoreProcessor CreateScoreProcessor() => new ManiaScoreProcessor(this);
|
|
|
|
|
|
2017-03-12 13:32:50 +08:00
|
|
|
|
protected override IBeatmapConverter<ManiaBaseHit> CreateBeatmapConverter() => new ManiaBeatmapConverter();
|
2017-03-12 01:26:10 +08:00
|
|
|
|
|
2017-03-14 16:01:21 +08:00
|
|
|
|
protected override IBeatmapProcessor<ManiaBaseHit> CreateBeatmapProcessor() => new ManiaBeatmapProcessor();
|
2016-09-02 19:30:27 +08:00
|
|
|
|
|
2017-03-16 11:40:35 +08:00
|
|
|
|
protected override Playfield<ManiaBaseHit, ManiaJudgementInfo> CreatePlayfield() => new ManiaPlayfield(columns);
|
2016-09-02 19:30:27 +08:00
|
|
|
|
|
2017-03-15 20:53:01 +08:00
|
|
|
|
protected override DrawableHitObject<ManiaBaseHit, ManiaJudgementInfo> GetVisualRepresentation(ManiaBaseHit h) => null;
|
2016-09-02 19:30:27 +08:00
|
|
|
|
}
|
|
|
|
|
}
|