Ejemplo n.º 1
0
        public void StartReplay(string replayPath, bool loop)
        {
            simEngine.StartReplay(replayPath, loop, 1.0);

            replayState = ScenarioState.RUNNING;
            SendServerStateEvent("LOADING_REPLAY", replayPath);
        }
Ejemplo n.º 2
0
 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;
         }
     }
 }