Make EndTime and RepeatCount settable

This commit is contained in:
Dean Herbert
2020-02-05 17:12:26 +09:00
parent dffc58c5fa
commit cd6902a312
9 changed files with 43 additions and 10 deletions

View File

@ -15,7 +15,11 @@ namespace osu.Game.Rulesets.Mania.Objects
/// </summary>
public class HoldNote : ManiaHitObject, IHasEndTime
{
public double EndTime => StartTime + Duration;
public double EndTime
{
get => StartTime + Duration;
set => Duration = value - StartTime;
}
private double duration;