mirror of
https://github.com/ppy/osu.git
synced 2024-12-27 19:42:54 +08:00
33 lines
941 B
C#
33 lines
941 B
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 osu.Framework.Allocation;
|
|
using osu.Framework.Configuration;
|
|
using osu.Game.Rulesets.Objects;
|
|
using osu.Game.Rulesets.Osu.Objects;
|
|
|
|
namespace osu.Game.Rulesets.Osu.Edit.Blueprints
|
|
{
|
|
/// <summary>
|
|
/// A piece of a blueprint which responds to changes in the state of a <see cref="Slider"/>.
|
|
/// </summary>
|
|
public abstract class SliderPiece : HitObjectPiece
|
|
{
|
|
protected readonly IBindable<SliderPath> PathBindable = new Bindable<SliderPath>();
|
|
|
|
private readonly Slider slider;
|
|
|
|
protected SliderPiece(Slider slider)
|
|
: base(slider)
|
|
{
|
|
this.slider = slider;
|
|
}
|
|
|
|
[BackgroundDependencyLoader]
|
|
private void load()
|
|
{
|
|
PathBindable.BindTo(slider.PathBindable);
|
|
}
|
|
}
|
|
}
|