public void CreateLobby(ServerPrivacy privacy, uint memberLimit) { this.privacy = privacy; this.memberLimit = memberLimit; lobbyOwner = selfId; tryCreateLobby(); }
public void setPrivacy(ServerPrivacy privacy) { foreach (Server server in servers) { server.setPrivacy(privacy); } }
public static void Prefix(ref ServerPrivacy ___privacy, GalaxySocket __instance) { if (CoopMenuHolder.PublicCheckBox.IsChecked) { ___privacy = ServerPrivacy.Public; } Console.WriteLine($"TRY CREATE LOBBY GALAXY, PRIVACY = {___privacy.ToString()}"); }
private LobbyType privacyToLobbyType(ServerPrivacy privacy) { return(privacy switch { ServerPrivacy.InviteOnly => LobbyType.LOBBY_TYPE_PRIVATE, ServerPrivacy.FriendsOnly => LobbyType.LOBBY_TYPE_FRIENDS_ONLY, ServerPrivacy.Public => LobbyType.LOBBY_TYPE_PUBLIC, _ => throw new ArgumentException(Convert.ToString(privacy)), });
public Server(string name, ServerPrivacy privacyLevel, string description = null) { Id = Guid.NewGuid(); Name = name; Description = description; PrivacyLevel = privacyLevel; Members = new Collection <ApplicationUser>(); Roles = new Collection <ServerRole>(); Categories = new Collection <Category>(); }
private ELobbyType privacyToSteamLobbyType(ServerPrivacy privacy) { switch (privacy) { case ServerPrivacy.InviteOnly: return(ELobbyType.k_ELobbyTypePrivate); case ServerPrivacy.FriendsOnly: return(ELobbyType.k_ELobbyTypeFriendsOnly); case ServerPrivacy.Public: return(ELobbyType.k_ELobbyTypePublic); default: throw new ArgumentException(Convert.ToString(privacy)); } }
private LobbyType privacyToLobbyType(ServerPrivacy privacy) { switch (privacy) { case ServerPrivacy.InviteOnly: return(LobbyType.LOBBY_TYPE_PRIVATE); case ServerPrivacy.FriendsOnly: return(LobbyType.LOBBY_TYPE_FRIENDS_ONLY); case ServerPrivacy.Public: return(LobbyType.LOBBY_TYPE_PUBLIC); default: throw new ArgumentException(Convert.ToString(privacy)); } }
public void SetPrivacy(ServerPrivacy privacy) { this.privacy = privacy; updateLobbyPrivacy(); }
public override void setPrivacy(ServerPrivacy privacy) { server.SetPrivacy(privacy); }
public abstract void setPrivacy(ServerPrivacy privacy);
public override void setPrivacy(ServerPrivacy privacy) { }