Move samples to LegacyControlPointInfo

This commit is contained in:
Dean Herbert
2021-08-25 18:00:57 +09:00
parent 6b3cc81e19
commit 7257aae7f2
7 changed files with 110 additions and 63 deletions

View File

@ -1,6 +1,7 @@
// 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 System;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
@ -42,15 +43,6 @@ namespace osu.Game.Screens.Edit.Timing
}
}
protected override SampleControlPoint CreatePoint()
{
var reference = Beatmap.ControlPointInfo.SamplePointAt(SelectedGroup.Value.Time);
return new SampleControlPoint
{
SampleBank = reference.SampleBank,
SampleVolume = reference.SampleVolume,
};
}
protected override SampleControlPoint CreatePoint() => new SampleControlPoint(); // TODO: remove
}
}