Exemplo n.º 1
0
 static void worker_DoWork(object sender, DoWorkEventArgs e)
 {
     try
     {
         System.Threading.Thread.CurrentThread.Name = "p-roc thread";
         game = new StarterGame.StarterGame(logger);
         game.setup();
         game.run_loop();
     }
     catch (Exception ex)
     {
         Console.WriteLine("FATAL ERROR: Could not load P-ROC device.");
         Console.WriteLine(ex.ToString());
         Console.ReadLine();
     }
 }
Exemplo n.º 2
0
        static void Console_CancelKeyPress(object sender, ConsoleCancelEventArgs e)
        {
            game.EndRunLoop();

            game = null;
        }
Exemplo n.º 3
0
 public Attract(StarterGame game)
     : base(game, 1)
 {
 }
Exemplo n.º 4
0
 static void worker_DoWork(object sender, DoWorkEventArgs e)
 {
     try
     {
         System.Threading.Thread.CurrentThread.Name = "p-roc thread";
         game = new StarterGame.StarterGame(logger);
         game.setup();
         game.run_loop();
     }
     catch (Exception ex)
     {
         Console.WriteLine("FATAL ERROR: Could not load P-ROC device.");
         Console.WriteLine(ex.ToString());
         Console.ReadLine();
     }
 }
Exemplo n.º 5
0
        static void Console_CancelKeyPress(object sender, ConsoleCancelEventArgs e)
        {
            game.end_run_loop();

            game = null;
        }
Exemplo n.º 6
0
 public Attract(StarterGame game)
     : base(game, 1)
 {
 }