mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Combine hit types and remove old drumroll hits using a more efficient method
This commit is contained in:
@ -0,0 +1,26 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Beatmaps.ControlPoints;
|
||||
|
||||
namespace osu.Game.Rulesets.Taiko.Objects.Drawables
|
||||
{
|
||||
/// <summary>
|
||||
/// A hit used specifically for drum rolls, where spawning flying hits is required.
|
||||
/// </summary>
|
||||
public class DrawableFlyingHit : DrawableHit
|
||||
{
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
ApplyResult(r => r.Type = r.Judgement.MaxResult);
|
||||
}
|
||||
|
||||
public DrawableFlyingHit(double time, bool isStrong = false)
|
||||
: base(new IgnoreHit { StartTime = time, IsStrong = isStrong })
|
||||
{
|
||||
HitObject.ApplyDefaults(new ControlPointInfo(), new BeatmapDifficulty());
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user