mirror of
https://github.com/ppy/osu.git
synced 2024-12-27 11:42:58 +08:00
39 lines
1.6 KiB
C#
39 lines
1.6 KiB
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using System.Collections.Generic;
|
|
using osu.Framework.Allocation;
|
|
using osu.Framework.Input;
|
|
using osu.Game.Beatmaps;
|
|
using osu.Game.Input.Handlers;
|
|
using osu.Game.Replays;
|
|
using osu.Game.Rulesets.Mods;
|
|
using osu.Game.Rulesets.Objects.Drawables;
|
|
using osu.Game.Rulesets.EmptyScrolling.Objects;
|
|
using osu.Game.Rulesets.EmptyScrolling.Objects.Drawables;
|
|
using osu.Game.Rulesets.EmptyScrolling.Replays;
|
|
using osu.Game.Rulesets.UI;
|
|
using osu.Game.Rulesets.UI.Scrolling;
|
|
|
|
namespace osu.Game.Rulesets.EmptyScrolling.UI
|
|
{
|
|
[Cached]
|
|
public class DrawableEmptyScrollingRuleset : DrawableScrollingRuleset<EmptyScrollingHitObject>
|
|
{
|
|
public DrawableEmptyScrollingRuleset(EmptyScrollingRuleset ruleset, IBeatmap beatmap, IReadOnlyList<Mod> mods = null)
|
|
: base(ruleset, beatmap, mods)
|
|
{
|
|
Direction.Value = ScrollingDirection.Left;
|
|
TimeRange.Value = 6000;
|
|
}
|
|
|
|
protected override Playfield CreatePlayfield() => new EmptyScrollingPlayfield();
|
|
|
|
protected override ReplayInputHandler CreateReplayInputHandler(Replay replay) => new EmptyScrollingFramedReplayInputHandler(replay);
|
|
|
|
public override DrawableHitObject<EmptyScrollingHitObject> CreateDrawableRepresentation(EmptyScrollingHitObject h) => new DrawableEmptyScrollingHitObject(h);
|
|
|
|
protected override PassThroughInputManager CreateInputManager() => new EmptyScrollingInputManager(Ruleset?.RulesetInfo);
|
|
}
|
|
}
|