mirror of
https://github.com/osukey/osukey.git
synced 2025-05-05 05:37:18 +09:00
Conflicts: osu.Desktop.VisualTests/Tests/TestCaseHitObjects.cs osu.Game.Modes.Catch/UI/CatchHitRenderer.cs osu.Game.Modes.Mania/UI/ManiaHitRenderer.cs osu.Game.Modes.Mania/osu.Game.Modes.Mania.csproj osu.Game.Modes.Osu/Objects/Drawables/DrawableSlider.cs osu.Game.Modes.Osu/Objects/Drawables/DrawableSpinner.cs osu.Game.Modes.Osu/UI/OsuHitRenderer.cs osu.Game.Modes.Taiko/UI/TaikoHitRenderer.cs osu.Game.Modes.Taiko/osu.Game.Modes.Taiko.csproj osu.Game/Modes/Objects/Drawables/DrawableHitObject.cs osu.Game/Modes/UI/HitRenderer.cs osu.Game/osu.Game.csproj
40 lines
1.4 KiB
C#
40 lines
1.4 KiB
C#
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using osu.Game.Beatmaps;
|
|
using osu.Game.Modes.Mania.Beatmaps;
|
|
using osu.Game.Modes.Mania.Judgements;
|
|
using osu.Game.Modes.Mania.Objects;
|
|
using osu.Game.Modes.Objects.Drawables;
|
|
using osu.Game.Modes.UI;
|
|
|
|
namespace osu.Game.Modes.Mania.UI
|
|
{
|
|
public class ManiaHitRenderer : HitRenderer<ManiaBaseHit, ManiaJudgementInfo>
|
|
{
|
|
private readonly int columns;
|
|
|
|
public ManiaHitRenderer(WorkingBeatmap beatmap, int columns = 5)
|
|
: base(beatmap)
|
|
{
|
|
this.columns = columns;
|
|
}
|
|
|
|
protected override IBeatmapConverter<ManiaBaseHit> CreateBeatmapConverter() => new ManiaBeatmapConverter();
|
|
|
|
protected override IBeatmapProcessor<ManiaBaseHit> CreateBeatmapProcessor() => new ManiaBeatmapProcessor();
|
|
protected override Playfield<ManiaBaseHit, ManiaJudgementInfo> CreatePlayfield() => new ManiaPlayfield(columns);
|
|
|
|
|
|
protected override DrawableHitObject<ManiaBaseHit, ManiaJudgementInfo> GetVisualRepresentation(ManiaBaseHit h)
|
|
{
|
|
return null;
|
|
//return new DrawableNote(h)
|
|
//{
|
|
// Position = new Vector2((float)(h.Column + 0.5) / columns, -0.1f),
|
|
// RelativePositionAxes = Axes.Both
|
|
//};
|
|
}
|
|
}
|
|
}
|