public void StartReplay(string replayPath, bool loop) { simEngine.StartReplay(replayPath, loop, 1.0); replayState = ScenarioState.RUNNING; SendServerStateEvent("LOADING_REPLAY", replayPath); }
private void startReplayButton_Click(object sender, EventArgs e) { if (File.Exists(replayTextBox.Text)) { try { simEngine.StartReplay(replayTextBox.Text, replayLoopCheckbox.Checked, replaySpeed); startReplayButton.Enabled = false; scenarioStartButton.Enabled = false; } catch (Exception except) { throw except; } } }