Move implementation to DrawableHit to avoid "breaking" legacy encoding

This commit is contained in:
Dean Herbert
2020-05-11 16:19:47 +09:00
parent b4d790c076
commit 77041bdbb5
2 changed files with 26 additions and 25 deletions

View File

@ -171,30 +171,6 @@ namespace osu.Game.Rulesets.Taiko.Beatmaps
bool isRim = samples.Any(isRimDefinition);
if (isRim)
{
// consume then remove the rim definition sample types.
var updatedSamples = samples.Where(s => !isRimDefinition(s)).ToList();
// strong + rim always maps to whistle.
if (strong)
{
for (var i = 0; i < updatedSamples.Count; i++)
{
var s = samples[i];
if (s.Name != HitSampleInfo.HIT_FINISH)
continue;
var sClone = s.Clone();
sClone.Name = HitSampleInfo.HIT_WHISTLE;
updatedSamples[i] = sClone;
}
}
samples = updatedSamples;
}
yield return new Hit
{
StartTime = obj.StartTime,