API ReferenceSandbox.Network
LobbyConfigclass
object→LobbyConfig
Constructors1
Showing 1 constructors
public LobbyConfig()
No results match this filter.
Properties6
Showing 6 properties
public bool Sandbox.Network.LobbyConfig.AutoSwitchToBestHost { get; set; }
Whether to periodically switch to the best possible host candidate. This is only applicable to P2P lobbies.
Returns:
bool—public bool Sandbox.Network.LobbyConfig.DestroyWhenHostLeaves { get; set; }
Whether to automatically destroy this lobby when the host leaves. This is only applicable to P2P lobbies.
Returns:
bool—public int Sandbox.Network.LobbyConfig.MaxPlayers { get; set; }
The maximum amount of players this lobby can hold. By default, this will be the Max Players set in the current Game Package's project settings.
Returns:
int—public string Sandbox.Network.LobbyConfig.Name { get; set; }
The name of this lobby. If this isn't set, a default lobby name will be chosen instead.
Returns:
string—public Sandbox.Network.LobbyPrivacy Sandbox.Network.LobbyConfig.Privacy { get; set; }
Determines who is able to connect to this lobby. This will be public by default.
No results match this filter.