Photon Unity Networking v1.101

Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
TypedLobby Class Reference

Refers to a specific lobby (and type) on the server. More...

Inherited by TypedLobbyInfo.

Public Member Functions

 TypedLobby ()
 
 TypedLobby (string name, LobbyType type)
 
override string ToString ()
 

Public Attributes

string Name
 Name of the lobby this game gets added to. Default: null, attached to default lobby. Lobbies are unique per lobbyName plus lobbyType, so the same name can be used when several types are existing. More...
 
LobbyType Type
 Type of the (named)lobby this game gets added to More...
 

Static Public Attributes

static readonly TypedLobby Default = new TypedLobby()
 

Properties

bool IsDefault [get]
 

Detailed Description

Refers to a specific lobby (and type) on the server.

The name and type are the unique identifier for a lobby.
Join a lobby via PhotonNetwork.JoinLobby(TypedLobby lobby).
The current lobby is stored in PhotonNetwork.lobby.

Constructor & Destructor Documentation

◆ TypedLobby() [1/2]

TypedLobby.TypedLobby ( )

◆ TypedLobby() [2/2]

TypedLobby.TypedLobby ( string  name,
LobbyType  type 
)

Member Function Documentation

◆ ToString()

override string TypedLobby.ToString ( )

Member Data Documentation

◆ Default

readonly TypedLobby TypedLobby.Default = new TypedLobby()
static

◆ Name

string TypedLobby.Name

Name of the lobby this game gets added to. Default: null, attached to default lobby. Lobbies are unique per lobbyName plus lobbyType, so the same name can be used when several types are existing.

◆ Type

LobbyType TypedLobby.Type

Type of the (named)lobby this game gets added to

Property Documentation

◆ IsDefault

bool TypedLobby.IsDefault
get