clean up event queues
This commit is contained in:
parent
59cc786a94
commit
cfcca0f9eb
|
@ -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