mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 10:33:30 +08:00
efe6bb25b1
Co-authored-by: Dean Herbert <pe@ppy.sh>
38 lines
1.2 KiB
C#
38 lines
1.2 KiB
C#
// 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 partial class DrawableFlyingHit : DrawableHit
|
|
{
|
|
public DrawableFlyingHit(DrawableDrumRollTick drumRollTick)
|
|
: base(new IgnoreHit
|
|
{
|
|
StartTime = drumRollTick.HitObject.StartTime + drumRollTick.Result.TimeOffset,
|
|
IsStrong = drumRollTick.HitObject.IsStrong,
|
|
Type = drumRollTick.JudgementType
|
|
})
|
|
{
|
|
HitObject.ApplyDefaults(new ControlPointInfo(), new BeatmapDifficulty());
|
|
}
|
|
|
|
protected override void LoadComplete()
|
|
{
|
|
base.LoadComplete();
|
|
ApplyMaxResult();
|
|
}
|
|
|
|
protected override void LoadSamples()
|
|
{
|
|
// block base call - flying hits are not supposed to play samples
|
|
// the base call could overwrite the type of this hit
|
|
}
|
|
}
|
|
}
|