public BaseLobby(int lobbyId, IEnumerable <LobbyTeam> teams, LobbiesPlugin plugin, LobbyConfig config) { Id = lobbyId; Plugin = plugin; GameIp = ""; GamePort = -1; Config = config; Controls = new List <LobbyPropertyData>(); Members = new Dictionary <string, LobbyMember>(); MembersByPeerId = new Dictionary <long, LobbyMember>(); Properties = new Dictionary <string, string>(); Teams = teams.ToDictionary(t => t.Name, t => t); Subscribers = new HashSet <IPeer>(); MaxPlayers = Teams.Values.Sum(t => t.MaxPlayers); MinPlayers = Teams.Values.Sum(t => t.MinPlayers); }
public BaseLobbyAuto(int lobbyId, IEnumerable <LobbyTeam> teams, LobbiesPlugin plugin, LobbyConfig config) : base(lobbyId, teams, plugin, config) { config.EnableManualStart = true; config.PlayAgainEnabled = false; config.EnableGameMasters = false; }