Allow binding to ControlPointGroup's ControlPoints

This commit is contained in:
Dean Herbert 2019-10-28 11:39:17 +09:00
parent 4290a71f44
commit 10033239c7

View File

@ -2,8 +2,8 @@
// See the LICENCE file in the repository root for full licence text. // See the LICENCE file in the repository root for full licence text.
using System; using System;
using System.Collections.Generic;
using System.Linq; using System.Linq;
using osu.Framework.Bindables;
namespace osu.Game.Beatmaps.ControlPoints namespace osu.Game.Beatmaps.ControlPoints
{ {
@ -17,9 +17,9 @@ namespace osu.Game.Beatmaps.ControlPoints
/// </summary> /// </summary>
public double Time { get; } public double Time { get; }
public IReadOnlyList<ControlPoint> ControlPoints => controlPoints; public IBindableList<ControlPoint> ControlPoints => controlPoints;
private readonly List<ControlPoint> controlPoints = new List<ControlPoint>(); private readonly BindableList<ControlPoint> controlPoints = new BindableList<ControlPoint>();
public ControlPointGroup(double time) public ControlPointGroup(double time)
{ {