mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 14:17:26 +08:00
Added judgement forwarder to drumroll tick object
This commit is contained in:
parent
1057981c79
commit
9d5a977501
@ -11,6 +11,12 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables
|
|||||||
{
|
{
|
||||||
public class DrawableDrumRollTick : DrawableTaikoHitObject<DrumRollTick>
|
public class DrawableDrumRollTick : DrawableTaikoHitObject<DrumRollTick>
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The action type that the user took which caused this tick to
|
||||||
|
/// have been judged as "hit"
|
||||||
|
/// </summary>
|
||||||
|
public TaikoAction JudgedAction;
|
||||||
|
|
||||||
public DrawableDrumRollTick(DrumRollTick tick)
|
public DrawableDrumRollTick(DrumRollTick tick)
|
||||||
: base(tick)
|
: base(tick)
|
||||||
{
|
{
|
||||||
@ -49,7 +55,11 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool OnPressed(TaikoAction action) => UpdateResult(true);
|
public override bool OnPressed(TaikoAction action)
|
||||||
|
{
|
||||||
|
JudgedAction = action;
|
||||||
|
return UpdateResult(true);
|
||||||
|
}
|
||||||
|
|
||||||
protected override DrawableStrongNestedHit CreateStrongHit(StrongHitObject hitObject) => new StrongNestedHit(hitObject, this);
|
protected override DrawableStrongNestedHit CreateStrongHit(StrongHitObject hitObject) => new StrongNestedHit(hitObject, this);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user