2017-02-07 04:59:30 +00: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 11:30:27 +00:00
|
|
|
|
|
2017-03-10 06:08:53 +00:00
|
|
|
|
using osu.Game.Beatmaps;
|
2017-04-18 07:05:58 +00:00
|
|
|
|
using osu.Game.Rulesets.Beatmaps;
|
|
|
|
|
using osu.Game.Rulesets.Mania.Beatmaps;
|
|
|
|
|
using osu.Game.Rulesets.Mania.Judgements;
|
|
|
|
|
using osu.Game.Rulesets.Mania.Objects;
|
|
|
|
|
using osu.Game.Rulesets.Mania.Scoring;
|
|
|
|
|
using osu.Game.Rulesets.Objects.Drawables;
|
|
|
|
|
using osu.Game.Rulesets.Scoring;
|
|
|
|
|
using osu.Game.Rulesets.UI;
|
2016-09-02 11:30:27 +00:00
|
|
|
|
|
2017-04-18 07:05:58 +00:00
|
|
|
|
namespace osu.Game.Rulesets.Mania.UI
|
2016-09-02 11:30:27 +00:00
|
|
|
|
{
|
2017-03-23 10:00:18 +00:00
|
|
|
|
public class ManiaHitRenderer : HitRenderer<ManiaBaseHit, ManiaJudgement>
|
2016-09-02 11:30:27 +00:00
|
|
|
|
{
|
|
|
|
|
private readonly int columns;
|
|
|
|
|
|
2017-03-12 09:03:13 +00:00
|
|
|
|
public ManiaHitRenderer(WorkingBeatmap beatmap, int columns = 5)
|
2017-03-10 06:08:53 +00:00
|
|
|
|
: base(beatmap)
|
2016-09-02 11:30:27 +00:00
|
|
|
|
{
|
|
|
|
|
this.columns = columns;
|
|
|
|
|
}
|
|
|
|
|
|
2017-03-16 03:40:35 +00:00
|
|
|
|
public override ScoreProcessor CreateScoreProcessor() => new ManiaScoreProcessor(this);
|
|
|
|
|
|
2017-04-18 00:38:52 +00:00
|
|
|
|
protected override BeatmapConverter<ManiaBaseHit> CreateBeatmapConverter() => new ManiaBeatmapConverter();
|
2017-03-11 17:26:10 +00:00
|
|
|
|
|
2017-03-23 10:00:18 +00:00
|
|
|
|
protected override Playfield<ManiaBaseHit, ManiaJudgement> CreatePlayfield() => new ManiaPlayfield(columns);
|
2016-09-02 11:30:27 +00:00
|
|
|
|
|
2017-03-23 10:00:18 +00:00
|
|
|
|
protected override DrawableHitObject<ManiaBaseHit, ManiaJudgement> GetVisualRepresentation(ManiaBaseHit h) => null;
|
2016-09-02 11:30:27 +00:00
|
|
|
|
}
|
|
|
|
|
}
|