// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Game.Rulesets.Objects.Drawables; namespace osu.Game.Rulesets.UI.Scrolling { /// /// A type of specialized towards scrolling s. /// public abstract class ScrollingPlayfield : Playfield { protected readonly IBindable Direction = new Bindable(); [Resolved] private IScrollingInfo scrollingInfo { get; set; } [BackgroundDependencyLoader] private void load() { Direction.BindTo(scrollingInfo.Direction); } protected sealed override HitObjectContainer CreateHitObjectContainer() => new ScrollingHitObjectContainer(); } }