mirror of
https://github.com/osukey/osukey.git
synced 2025-04-29 02:37:25 +09:00
Made private + renamed Taiko Single Tap tracking variables for better readability
This commit is contained in:
parent
b4ed2db15e
commit
a7be59175d
@ -29,9 +29,9 @@ namespace osu.Game.Rulesets.Taiko.Mods
|
|||||||
protected bool CheckValidNewAction(TaikoAction action)
|
protected bool CheckValidNewAction(TaikoAction action)
|
||||||
{
|
{
|
||||||
if (action == TaikoAction.LeftCentre || action == TaikoAction.RightCentre)
|
if (action == TaikoAction.LeftCentre || action == TaikoAction.RightCentre)
|
||||||
return LastAcceptedDonAction == null || LastAcceptedDonAction == action;
|
return lastAcceptedCentreAction == null || lastAcceptedCentreAction == action;
|
||||||
if (action == TaikoAction.LeftRim || action == TaikoAction.RightRim)
|
if (action == TaikoAction.LeftRim || action == TaikoAction.RightRim)
|
||||||
return LastAcceptedKatAction == null || LastAcceptedKatAction == action;
|
return lastAcceptedRimAction == null || lastAcceptedRimAction == action;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -44,8 +44,8 @@ namespace osu.Game.Rulesets.Taiko.Mods
|
|||||||
|
|
||||||
private TaikoPlayfield playfield { get; set; } = null!;
|
private TaikoPlayfield playfield { get; set; } = null!;
|
||||||
|
|
||||||
protected TaikoAction? LastAcceptedDonAction { get; private set; }
|
private TaikoAction? lastAcceptedCentreAction { get; set; }
|
||||||
protected TaikoAction? LastAcceptedKatAction { get; private set; }
|
private TaikoAction? lastAcceptedRimAction { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A tracker for periods where alternate should not be forced (i.e. non-gameplay periods).
|
/// A tracker for periods where alternate should not be forced (i.e. non-gameplay periods).
|
||||||
@ -84,11 +84,11 @@ namespace osu.Game.Rulesets.Taiko.Mods
|
|||||||
{
|
{
|
||||||
if (!nonGameplayPeriods.IsInAny(gameplayClock.CurrentTime)) return;
|
if (!nonGameplayPeriods.IsInAny(gameplayClock.CurrentTime)) return;
|
||||||
|
|
||||||
if (LastAcceptedDonAction != null)
|
if (lastAcceptedCentreAction != null)
|
||||||
LastAcceptedDonAction = null;
|
lastAcceptedCentreAction = null;
|
||||||
|
|
||||||
if (LastAcceptedKatAction != null)
|
if (lastAcceptedRimAction != null)
|
||||||
LastAcceptedKatAction = null;
|
lastAcceptedRimAction = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool checkCorrectAction(TaikoAction action)
|
private bool checkCorrectAction(TaikoAction action)
|
||||||
@ -105,9 +105,9 @@ namespace osu.Game.Rulesets.Taiko.Mods
|
|||||||
if (CheckValidNewAction(action))
|
if (CheckValidNewAction(action))
|
||||||
{
|
{
|
||||||
if (action == TaikoAction.LeftCentre || action == TaikoAction.RightCentre)
|
if (action == TaikoAction.LeftCentre || action == TaikoAction.RightCentre)
|
||||||
LastAcceptedDonAction = action;
|
lastAcceptedCentreAction = action;
|
||||||
if (action == TaikoAction.LeftRim || action == TaikoAction.RightRim)
|
if (action == TaikoAction.LeftRim || action == TaikoAction.RightRim)
|
||||||
LastAcceptedKatAction = action;
|
lastAcceptedRimAction = action;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user