1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 12:57:36 +08:00

Add hold end samples.

This commit is contained in:
smoogipooo 2017-05-18 18:19:29 +09:00
parent 53a2f34f8b
commit a30e49d21b
2 changed files with 9 additions and 2 deletions

View File

@ -480,7 +480,7 @@ namespace osu.Game.Rulesets.Mania.Beatmaps.Patterns.Legacy
newObject = new Note newObject = new Note
{ {
StartTime = startTime, StartTime = startTime,
Samples = originalObject.Samples, Samples = sampleInfoListAt(startTime),
Column = column, Column = column,
Siblings = siblings Siblings = siblings
}; };
@ -490,7 +490,8 @@ namespace osu.Game.Rulesets.Mania.Beatmaps.Patterns.Legacy
newObject = new HoldNote newObject = new HoldNote
{ {
StartTime = startTime, StartTime = startTime,
Samples = originalObject.Samples, Samples = sampleInfoListAt(startTime),
EndSamples = sampleInfoListAt(endTime),
Column = column, Column = column,
Duration = endTime - startTime, Duration = endTime - startTime,
Siblings = siblings Siblings = siblings

View File

@ -1,6 +1,7 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Game.Audio;
using osu.Game.Beatmaps.Timing; using osu.Game.Beatmaps.Timing;
using osu.Game.Database; using osu.Game.Database;
using osu.Game.Rulesets.Mania.Judgements; using osu.Game.Rulesets.Mania.Judgements;
@ -22,6 +23,11 @@ namespace osu.Game.Rulesets.Mania.Objects
public double Duration { get; set; } public double Duration { get; set; }
public double EndTime => StartTime + Duration; public double EndTime => StartTime + Duration;
/// <summary>
/// The samples to be played when this hold note is released.
/// </summary>
public SampleInfoList EndSamples = new SampleInfoList();
/// <summary> /// <summary>
/// The key-release hit windows for this hold note. /// The key-release hit windows for this hold note.
/// </summary> /// </summary>