mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 18:03:11 +08:00
Introduce IDrawableScrollingRuleset
for editor consumption
This commit is contained in:
parent
60c424837b
commit
58296bd4f0
@ -28,7 +28,7 @@ namespace osu.Game.Rulesets.UI.Scrolling
|
||||
/// A type of <see cref="DrawableRuleset{TObject}"/> that supports a <see cref="ScrollingPlayfield"/>.
|
||||
/// <see cref="HitObject"/>s inside this <see cref="DrawableRuleset{TObject}"/> will scroll within the playfield.
|
||||
/// </summary>
|
||||
public abstract class DrawableScrollingRuleset<TObject> : DrawableRuleset<TObject>, IKeyBindingHandler<GlobalAction>
|
||||
public abstract class DrawableScrollingRuleset<TObject> : DrawableRuleset<TObject>, IDrawableScrollingRuleset, IKeyBindingHandler<GlobalAction>
|
||||
where TObject : HitObject
|
||||
{
|
||||
/// <summary>
|
||||
@ -66,6 +66,8 @@ namespace osu.Game.Rulesets.UI.Scrolling
|
||||
|
||||
protected virtual ScrollVisualisationMethod VisualisationMethod => ScrollVisualisationMethod.Sequential;
|
||||
|
||||
ScrollVisualisationMethod IDrawableScrollingRuleset.VisualisationMethod => VisualisationMethod;
|
||||
|
||||
/// <summary>
|
||||
/// Whether the player can change <see cref="TimeRange"/>.
|
||||
/// </summary>
|
||||
|
16
osu.Game/Rulesets/UI/Scrolling/IDrawableScrollingRuleset.cs
Normal file
16
osu.Game/Rulesets/UI/Scrolling/IDrawableScrollingRuleset.cs
Normal file
@ -0,0 +1,16 @@
|
||||
// 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.
|
||||
|
||||
#nullable disable
|
||||
using osu.Game.Configuration;
|
||||
|
||||
namespace osu.Game.Rulesets.UI.Scrolling
|
||||
{
|
||||
/// <summary>
|
||||
/// An interface for scrolling-based <see cref="DrawableRuleset{TObject}"/>s.
|
||||
/// </summary>
|
||||
public interface IDrawableScrollingRuleset
|
||||
{
|
||||
ScrollVisualisationMethod VisualisationMethod { get; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user