Ejemplo n.º 1
0
        public void OnJoinGame(JoinGamePacket packet)
        {
            if (loggedIn && (game == null || !game.active))
            {
                if (legend.HasGame(loggedInUser))
                {
                    legend.StopGame(loggedInUser);
                }

                game = new ClientGame(this, loggedInUser, loggedInUsername, legend.config, legend);
                legend.AddGame(loggedInUser, game);
            }
        }
Ejemplo n.º 2
0
 public ClientHandler(Socket handler, Legend legend)
 {
     this.handler = handler;
     this.game    = null;
     this.legend  = legend;
 }