2017-02-07 13:59:30 +09: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 20:30:27 +09:00
|
|
|
|
|
2017-03-10 15:08:53 +09:00
|
|
|
|
using osu.Game.Beatmaps;
|
2017-03-12 14:32:50 +09:00
|
|
|
|
using osu.Game.Modes.Mania.Beatmaps;
|
2017-03-15 18:55:38 +09:00
|
|
|
|
using osu.Game.Modes.Mania.Judgements;
|
2016-11-14 18:54:24 +09:00
|
|
|
|
using osu.Game.Modes.Mania.Objects;
|
2016-11-14 19:49:29 +09:00
|
|
|
|
using osu.Game.Modes.Objects.Drawables;
|
2016-11-14 18:54:24 +09:00
|
|
|
|
using osu.Game.Modes.UI;
|
2016-09-02 20:30:27 +09:00
|
|
|
|
|
2016-11-14 18:54:24 +09:00
|
|
|
|
namespace osu.Game.Modes.Mania.UI
|
2016-09-02 20:30:27 +09:00
|
|
|
|
{
|
2017-03-15 18:55:38 +09:00
|
|
|
|
public class ManiaHitRenderer : HitRenderer<ManiaBaseHit, ManiaJudgementInfo>
|
2016-09-02 20:30:27 +09:00
|
|
|
|
{
|
|
|
|
|
private readonly int columns;
|
|
|
|
|
|
2017-03-12 18:03:13 +09:00
|
|
|
|
public ManiaHitRenderer(WorkingBeatmap beatmap, int columns = 5)
|
2017-03-10 15:08:53 +09:00
|
|
|
|
: base(beatmap)
|
2016-09-02 20:30:27 +09:00
|
|
|
|
{
|
|
|
|
|
this.columns = columns;
|
|
|
|
|
}
|
|
|
|
|
|
2017-03-16 12:40:35 +09:00
|
|
|
|
public override ScoreProcessor CreateScoreProcessor() => new ManiaScoreProcessor(this);
|
|
|
|
|
|
2017-03-12 14:32:50 +09:00
|
|
|
|
protected override IBeatmapConverter<ManiaBaseHit> CreateBeatmapConverter() => new ManiaBeatmapConverter();
|
2017-03-12 02:26:10 +09:00
|
|
|
|
|
2017-03-14 17:01:21 +09:00
|
|
|
|
protected override IBeatmapProcessor<ManiaBaseHit> CreateBeatmapProcessor() => new ManiaBeatmapProcessor();
|
2016-09-02 20:30:27 +09:00
|
|
|
|
|
2017-03-16 12:40:35 +09:00
|
|
|
|
protected override Playfield<ManiaBaseHit, ManiaJudgementInfo> CreatePlayfield() => new ManiaPlayfield(columns);
|
2016-09-02 20:30:27 +09:00
|
|
|
|
|
2017-03-15 21:53:01 +09:00
|
|
|
|
protected override DrawableHitObject<ManiaBaseHit, ManiaJudgementInfo> GetVisualRepresentation(ManiaBaseHit h) => null;
|
2016-09-02 20:30:27 +09:00
|
|
|
|
}
|
|
|
|
|
}
|