1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 22:07:25 +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
{
StartTime = startTime,
Samples = originalObject.Samples,
Samples = sampleInfoListAt(startTime),
Column = column,
Siblings = siblings
};
@ -490,7 +490,8 @@ namespace osu.Game.Rulesets.Mania.Beatmaps.Patterns.Legacy
newObject = new HoldNote
{
StartTime = startTime,
Samples = originalObject.Samples,
Samples = sampleInfoListAt(startTime),
EndSamples = sampleInfoListAt(endTime),
Column = column,
Duration = endTime - startTime,
Siblings = siblings

View File

@ -1,6 +1,7 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// 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.Database;
using osu.Game.Rulesets.Mania.Judgements;
@ -22,6 +23,11 @@ namespace osu.Game.Rulesets.Mania.Objects
public double Duration { get; set; }
public double EndTime => StartTime + Duration;
/// <summary>
/// The samples to be played when this hold note is released.
/// </summary>
public SampleInfoList EndSamples = new SampleInfoList();
/// <summary>
/// The key-release hit windows for this hold note.
/// </summary>