Exemplo n.º 1
0
 public void Queue(GameRequested e)
 {
     if (!_lobbies.ContainsKey(e.GameId))
     {
         _lobbies[e.GameId] = new AvailableGames();
     }
     _lobbies[e.GameId].Queue(e);
 }
Exemplo n.º 2
0
 public void Queue(GameRequested e)
 {
     _requests[e.Player] = e;
     if (!_listings.Any())
     {
         _listings.Add(new GameListing {
             Id = Rng.Int(), GameId = e.GameId, PlayerRange = e.Players, Players = new List <Connection>()
         });
     }
 }