API ReferenceSandbox.Network

LobbyConfigclass

objectLobbyConfig
Namespace
Sandbox.Network
Assembly
Sandbox.Engine
Declaration
public sealed struct Sandbox.Network.LobbyConfig

Constructors1

Showing 1 constructors

Properties6

Showing 6 properties

public bool Sandbox.Network.LobbyConfig.AutoSwitchToBestHost { get; set; }PUBLICGETSETOBSOLETE

No longer does anything. The host only changes when the current host leaves.

Obsolete: The host only changes when the current host leaves

Returns:bool

public bool Sandbox.Network.LobbyConfig.DestroyWhenHostLeaves { get; set; }PUBLICGETSET

Whether to end the game when the host leaves. By default the host hands the game to another player instead. This is only applicable to P2P lobbies.

Returns:bool

public bool Sandbox.Network.LobbyConfig.Hidden { get; set; }PUBLICGETSET

Whether to hide this lobby from appearing in the server list. It will still be queryable programatically, so long as the `Sandbox.Network.LobbyConfig.Privacy` mode allows it.

Returns:bool

public int Sandbox.Network.LobbyConfig.MaxPlayers { get; set; }PUBLICGETSET

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; }PUBLICGETSET

The name of this lobby. If this isn't set, a default lobby name will be chosen instead.

Returns:string

On this page