예제 #1
0
파일: HostedGame.cs 프로젝트: traemyn/OCTGN
 /// <summary>
 ///   This happens when the Octgn.Server in StandAloneServer stops. This means eather all of the users disconnected, or it crashed. Eaither way, its unjoinable at this point.
 /// </summary>
 /// <param name="sender"> Who knows </param>
 /// <param name="e"> Jesus </param>
 private void StandAloneAppExited(object sender, EventArgs e)
 {
     StandAloneApp.Exited -= StandAloneAppExited;
     if (HostedGameDone != null)
     {
         HostedGameDone.Invoke(this, e);
     }
     Console.WriteLine("Game Log[{0}]{1}{2}End Game Log[{0}]", Port, Environment.NewLine, GameLog);
 }
예제 #2
0
 /// <summary>
 ///   This happens when the Octgn.Server in StandAloneServer stops. This means eather all of the users disconnected, or it crashed. Eaither way, its unjoinable at this point.
 /// </summary>
 /// <param name="sender"> Who knows </param>
 /// <param name="e"> Jesus </param>
 private void StandAloneAppExited(object sender, EventArgs e)
 {
     StandAloneApp.CancelErrorRead();
     StandAloneApp.CancelOutputRead();
     StandAloneApp.Exited             -= StandAloneAppExited;
     StandAloneApp.OutputDataReceived -= StandAloneAppOnOutputDataReceived;
     StandAloneApp.ErrorDataReceived  -= StandAloneAppOnErrorDataReceived;
     if (HostedGameDone != null)
     {
         HostedGameDone.Invoke(this, e);
     }
     Console.WriteLine("Game Log[{0}]{1}{2}End Game Log[{0}]", Port, Environment.NewLine, GameLog);
 }
예제 #3
0
 private void StandAloneAppExited(object sender, EventArgs e)
 {
     _process.Exited -= StandAloneAppExited;
     HostedGameDone?.Invoke(this, e);
     Console.WriteLine("Game Log[{0}]{1}{2}End Game Log[{0}]", HostedGame.Port, Environment.NewLine, GameLog);
 }