1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-07 21:38:00 +08:00
osu-lazer/osu.Game.Rulesets.Osu/Edit/Blueprints/SliderPiece.cs

33 lines
937 B
C#
Raw Normal View History

// 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.
2018-11-09 13:19:50 +08:00
using osu.Framework.Allocation;
2019-02-21 18:04:31 +08:00
using osu.Framework.Bindables;
2018-11-14 13:29:22 +08:00
using osu.Game.Rulesets.Objects;
2018-11-09 13:19:50 +08:00
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
{
2018-11-14 13:29:22 +08:00
protected readonly IBindable<SliderPath> PathBindable = new Bindable<SliderPath>();
2018-11-09 13:19:50 +08:00
private readonly Slider slider;
protected SliderPiece(Slider slider)
: base(slider)
{
this.slider = slider;
}
[BackgroundDependencyLoader]
private void load()
{
2018-11-14 13:29:22 +08:00
PathBindable.BindTo(slider.PathBindable);
2018-11-09 13:19:50 +08:00
}
}
}