Beispiel #1
0
 private void onGameStart(GameUpdateEventArgs e)
 {
     if (GameLaunched != null)
         GameLaunched(this, e);
 }
Beispiel #2
0
 void gs_GameLaunched(object sender, GameUpdateEventArgs e)
 {
     if (connected && allowedSend)
     {
         if (e.state == GameUpdateEventArgs.gameState.start)
         {
             playingGame = e.gameName;
             announceGame();
             invokeController(nick, playingGame);
         }
         else if (e.state == GameUpdateEventArgs.gameState.stop)
         {
             playingGame = "";
             announceGame();
             invokeController(nick, "*");
         }
         else
         {
             throw new NotImplementedException();
         }
     }
 }