mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-22 09:35:11 +00:00
clean up event queues
This commit is contained in:
parent
da5a57e9d9
commit
95abe577bd
4 changed files with 18 additions and 6 deletions
|
@ -229,6 +229,12 @@ namespace HeavenStudio.Games
|
|||
evt.Disable();
|
||||
}
|
||||
}
|
||||
public override void OnPlay(double beat)
|
||||
{
|
||||
queuedInputs.Clear();
|
||||
queuedAttentions.Clear();
|
||||
queuedFlipperRollVoiceLines.Clear();
|
||||
}
|
||||
|
||||
public override void OnBeatPulse(double beat)
|
||||
{
|
||||
|
@ -322,12 +328,6 @@ namespace HeavenStudio.Games
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (!cond.isPlaying)
|
||||
{
|
||||
queuedInputs.Clear();
|
||||
queuedAttentions.Clear();
|
||||
queuedFlipperRollVoiceLines.Clear();
|
||||
}
|
||||
}
|
||||
|
||||
public void ToggleTuck()
|
||||
|
|
|
@ -280,6 +280,7 @@ namespace HeavenStudio.Games
|
|||
{
|
||||
rt.Release();
|
||||
}
|
||||
queuedInputs.Clear();
|
||||
}
|
||||
|
||||
private static bool ForceStepOnBeat(double beat)
|
||||
|
@ -310,6 +311,7 @@ namespace HeavenStudio.Games
|
|||
|
||||
public override void OnPlay(double beat)
|
||||
{
|
||||
queuedInputs.Clear();
|
||||
QueueSwitchBGs(beat);
|
||||
PersistColors(beat);
|
||||
}
|
||||
|
|
|
@ -389,6 +389,11 @@ namespace HeavenStudio.Games
|
|||
|
||||
public override void OnPlay(double beat)
|
||||
{
|
||||
|
||||
if (queuedSqueezes.Count > 0) queuedSqueezes.Clear();
|
||||
if (queuedReleases.Count > 0) queuedReleases.Clear();
|
||||
if (queuedPops.Count > 0) queuedPops.Clear();
|
||||
queuePrepare = double.MaxValue;
|
||||
PersistColor(beat);
|
||||
}
|
||||
|
||||
|
|
|
@ -126,6 +126,11 @@ namespace HeavenStudio.Games
|
|||
}
|
||||
}
|
||||
|
||||
public override void OnPlay(double beat)
|
||||
{
|
||||
queuedInputs.Clear();
|
||||
}
|
||||
|
||||
private void Start()
|
||||
{
|
||||
handStart = -1f;
|
||||
|
|
Loading…
Reference in a new issue