Introduce base class for hitobjects that can be strong

This commit is contained in:
Bartłomiej Dach
2020-12-13 12:36:39 +01:00
parent 1ddc896b76
commit f74567e8eb
13 changed files with 56 additions and 60 deletions

View File

@ -65,8 +65,8 @@ namespace osu.Game.Rulesets.Taiko.Beatmaps
converted.HitObjects = converted.HitObjects.GroupBy(t => t.StartTime).Select(x =>
{
TaikoHitObject first = x.First();
if (x.Skip(1).Any() && first.CanBeStrong)
first.IsStrong = true;
if (x.Skip(1).Any() && first is TaikoStrongHitObject strong)
strong.IsStrong = true;
return first;
}).ToList();
}