示例#1
0
 public static void StopGame()
 {
     if (Client != null)
     {
         Client.Disconnect();
         Client = null;
     }
     Game.End();
     Game       = null;
     Dispatcher = null;
     Database.Close();
     IsGameRunning = false;
 }
示例#2
0
 public static void StopGame()
 {
     if (Client != null)
     {
         Client.Disconnect();
         Client = null;
     }
     if (GameEngine != null)
     {
         GameEngine.End();
     }
     GameEngine    = null;
     Dispatcher    = null;
     IsGameRunning = false;
 }
示例#3
0
文件: Program.cs 项目: haslo/OCTGN
 public static void StopGame()
 {
     if (Client != null)
     {
         Client.Disconnect();
         Client = null;
     }
     if(GameEngine != null)
         GameEngine.End();
     GameEngine = null;
     Dispatcher = null;
     IsGameRunning = false;
 }
示例#4
0
文件: Program.cs 项目: 0M3G4/OCTGN
 public static void StopGame()
 {
     if (Client != null)
     {
         Client.Disconnect();
         Client = null;
     }
     Game.End();
     Game = null;
     Dispatcher = null;
     Database.Close();
     IsGameRunning = false;
 }