2020-04-20 13:32:51 +08:00
|
|
|
|
// 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
|
|
|
|
|
{
|
2020-04-27 15:13:28 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// A hit used specifically for drum rolls, where spawning flying hits is required.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public partial class DrawableFlyingHit : DrawableHit
|
2020-04-20 13:32:51 +08:00
|
|
|
|
{
|
2020-04-27 15:48:17 +08:00
|
|
|
|
public DrawableFlyingHit(DrawableDrumRollTick drumRollTick)
|
|
|
|
|
: base(new IgnoreHit
|
|
|
|
|
{
|
|
|
|
|
StartTime = drumRollTick.HitObject.StartTime + drumRollTick.Result.TimeOffset,
|
|
|
|
|
IsStrong = drumRollTick.HitObject.IsStrong,
|
|
|
|
|
Type = drumRollTick.JudgementType
|
|
|
|
|
})
|
2020-04-20 13:32:51 +08:00
|
|
|
|
{
|
2020-04-27 15:48:17 +08:00
|
|
|
|
HitObject.ApplyDefaults(new ControlPointInfo(), new BeatmapDifficulty());
|
2020-04-20 13:32:51 +08:00
|
|
|
|
}
|
|
|
|
|
|
2020-04-27 15:48:17 +08:00
|
|
|
|
protected override void LoadComplete()
|
2020-04-20 13:32:51 +08:00
|
|
|
|
{
|
2020-04-27 15:48:17 +08:00
|
|
|
|
base.LoadComplete();
|
2024-02-05 20:21:01 +08:00
|
|
|
|
ApplyMaxResult();
|
2020-04-20 13:32:51 +08:00
|
|
|
|
}
|
2020-09-27 02:59:55 +08:00
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
}
|
2020-04-20 13:32:51 +08:00
|
|
|
|
}
|
|
|
|
|
}
|