void gameMemory_OnStart(object sender, EventArgs e) { if (_state.CurrentPhase == TimerPhase.NotRunning && Settings.AutoStart) { _timer.Start(); } }
public void HandleIzaroDialogue(long timestamp, string dialogue) { // Izaro can sometimes give a long speech when first entering. Check that this is not the case. int numWords = dialogue.Split(new char[] { ' ' }).Length; if (timer.CurrentState.CurrentPhase == TimerPhase.NotRunning && LAB_ENTRANCE.Equals(previousZone) && numWords < 20) { // The dialogue should be triggered upon activating the lab device. timer.Start(); labStarted = true; } }
public void HandleIzaroDialogue(long timestamp, string dialogue) { // Izaro can sometimes give a long speech when first entering. Check that this is not the case. int numWords = dialogue.Split(new char[] { ' ' }).Length; if (labStarted) { // when Izaro dies, he states one of a handful of phrases, call a split when he says them to finish the run if (IzaroDeathLines.Any(s => dialogue.Contains(s))) { timer.Split(); } } else if ((timer.CurrentState.CurrentPhase == TimerPhase.NotRunning || timer.CurrentState.CurrentPhase == TimerPhase.Ended) && LAB_ENTRANCE.Equals(previousZone) && numWords < 20) { // The dialogue should be triggered upon activating the lab device. timer.Start(); labStarted = true; } }
/// <summary> /// Start the underlying timer /// </summary> void StartTimerExecute() { _timer.Start(); }