コード例 #1
0
 public Lobby(string name, string hostName, int maxPlayers, GameServerService gameServer)
 {
     this.players      = new ConcurrentDictionary <string, WebSocket>();
     this.LobbyService = new LobbyService(name, hostName, maxPlayers, gameServer);
 }
コード例 #2
0
 public bool TryCreateLobby(string lobbyName, string hostPlayerName, GameServerService service)
 {
     return(lobbies.TryAdd(lobbyName, new Lobby(lobbyName, hostPlayerName, maxPlayers, service)));
 }