Exemplo n.º 1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (BomberGame game = new BomberGame())
     {
         game.Run();
     }
 }
Exemplo n.º 2
0
 private void gameThreadStart(Object o)
 {
     Object[] objs = (Object[])o;
     List<string> AllPlayers = (List<string>)objs[0];
     var convID = (int)objs[1];
     var game = new BomberGame();
     //using (var game = new BomberGame())
     //{
         //Dispatcher.Invoke(DispatcherPriority.Send, new Action(() =>
         //{
             game.GameContentManager = new GameContentManager(Player.Login, AllPlayers, game);
             game.GameContentManager.Server = Server;
             game.GameID = convID;
             this.Game = game;
         //}));
         game.Run();
     //}
 }