2019-01-24 16:43:03 +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.
|
2018-08-03 15:35:29 +08:00
|
|
|
|
2019-09-02 12:30:08 +08:00
|
|
|
using osu.Framework.Graphics;
|
2018-08-03 15:35:29 +08:00
|
|
|
using osu.Game.Rulesets.Scoring;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Taiko.Objects.Drawables
|
|
|
|
{
|
2018-11-29 23:05:13 +08:00
|
|
|
public class DrawableSwellTick : DrawableTaikoHitObject<SwellTick>
|
2018-08-03 15:35:29 +08:00
|
|
|
{
|
2018-08-06 10:31:46 +08:00
|
|
|
public override bool DisplayResult => false;
|
2018-08-03 15:49:24 +08:00
|
|
|
|
2018-11-29 23:05:13 +08:00
|
|
|
public DrawableSwellTick(SwellTick hitObject)
|
2018-08-03 15:35:29 +08:00
|
|
|
: base(hitObject)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2019-09-02 12:30:08 +08:00
|
|
|
protected override void UpdateInitialTransforms() => this.FadeOut();
|
|
|
|
|
2019-09-02 12:25:39 +08:00
|
|
|
public void TriggerResult(HitResult type)
|
|
|
|
{
|
|
|
|
HitObject.StartTime = Time.Current;
|
|
|
|
ApplyResult(r => r.Type = type);
|
|
|
|
}
|
2018-08-03 15:35:29 +08:00
|
|
|
|
2018-08-06 10:31:46 +08:00
|
|
|
protected override void CheckForResult(bool userTriggered, double timeOffset)
|
2018-08-03 15:35:29 +08:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public override bool OnPressed(TaikoAction action) => false;
|
|
|
|
}
|
|
|
|
}
|