public void Queue(GameRequested e) { if (!_lobbies.ContainsKey(e.GameId)) { _lobbies[e.GameId] = new AvailableGames(); } _lobbies[e.GameId].Queue(e); }
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>() }); } }