Photon Bolt Engine API  1.2.9
Static Public Member Functions | Properties | List of all members
Bolt.Matchmaking.BoltMatchmaking Class Reference

Static Public Member Functions

static void CreateDedicatedSession (string sessionID, IProtocolToken token=null, string sceneToLoad=null)
 Set Session information on a dedicated server. More...
 
static void CreateSession (string sessionID, IProtocolToken token=null, string sceneToLoad=null)
 Set Session information More...
 
static void JoinSession (string sessionID, IProtocolToken token=null)
 
static void JoinSession (UdpSession session, IProtocolToken token=null)
 
static void UpdateSession (IProtocolToken token)
 Updates the session configuration. More...
 

Properties

static UdpSession CurrentSession [get]
 Gets the current session in which this peer is connected. More...
 

Member Function Documentation

◆ CreateDedicatedSession()

static void Bolt.Matchmaking.BoltMatchmaking.CreateDedicatedSession ( string  sessionID,
IProtocolToken  token = null,
string  sceneToLoad = null 
)
inlinestatic

Set Session information on a dedicated server.

Parameters
sessionIDServer name.
tokenToken.

◆ CreateSession()

static void Bolt.Matchmaking.BoltMatchmaking.CreateSession ( string  sessionID,
IProtocolToken  token = null,
string  sceneToLoad = null 
)
inlinestatic

Set Session information

Parameters
sessionIDName of the server
tokenUser definable data

Example: Setting the server info to contain the max number of connections allowed by this server.

void SetSessionData(string serverName, string description, int maxPlayers) {
SessionData sessionData = new SessionData(description, BoltNetwork.maxConnections);
BoltMatchmaking.CreateSession(serverName, sessionData);
}

◆ JoinSession() [1/2]

static void Bolt.Matchmaking.BoltMatchmaking.JoinSession ( string  sessionID,
IProtocolToken  token = null 
)
inlinestatic

◆ JoinSession() [2/2]

static void Bolt.Matchmaking.BoltMatchmaking.JoinSession ( UdpSession  session,
IProtocolToken  token = null 
)
inlinestatic

◆ UpdateSession()

static void Bolt.Matchmaking.BoltMatchmaking.UpdateSession ( IProtocolToken  token)
inlinestatic

Updates the session configuration.

Parameters
tokenSettings Token. This can be any Bolt.IProtocolToken or a Bolt.Photon.PhotonRoomProperties to setup a Photon Session.

Property Documentation

◆ CurrentSession

UdpSession Bolt.Matchmaking.BoltMatchmaking.CurrentSession
staticget

Gets the current session in which this peer is connected.

The current session.