Photon Server API
Public Member Functions | Public Attributes | Protected Member Functions | Properties | List of all members
Photon.LoadBalancing.MasterServer.Lobby.AppLobby Class Reference

Public Member Functions

 AppLobby (GameApplication application, string lobbyName, AppLobbyType lobbyType)
 
 AppLobby (GameApplication application, string lobbyName, AppLobbyType lobbyType, int maxPlayersDefault, TimeSpan joinTimeOut)
 
void EnqueueOperation (MasterClientPeer peer, OperationRequest operationRequest, SendParameters sendParameters)
 
void RemoveGame (string gameId)
 
void RemoveGameServer (IncomingGameServerPeer gameServer)
 
void RemovePeer (MasterClientPeer serverPeer)
 
void UpdateGameState (UpdateGameEvent operation, IncomingGameServerPeer incomingGameServerPeer)
 
void JoinLobby (MasterClientPeer peer, JoinLobbyRequest joinLobbyrequest, SendParameters sendParameters)
 

Public Attributes

readonly GameApplication Application
 
readonly string LobbyName
 
readonly AppLobbyType LobbyType
 
readonly TimeSpan JoinTimeOut = TimeSpan.FromSeconds(5)
 
readonly int MaxPlayersDefault
 

Protected Member Functions

virtual void ExecuteOperation (MasterClientPeer peer, OperationRequest operationRequest, SendParameters sendParameters)
 
virtual object GetCreateGameResponse (MasterClientPeer peer, GameState gameState)
 
virtual object GetJoinGameResponse (MasterClientPeer peer, GameState gameState)
 
virtual object GetJoinRandomGameResponse (MasterClientPeer peer, GameState gameState)
 
virtual DebugGameResponse GetDebugGameResponse (MasterClientPeer peer, GameState gameState)
 
virtual OperationResponse HandleCreateGame (MasterClientPeer peer, OperationRequest operationRequest)
 
virtual OperationResponse HandleJoinGame (MasterClientPeer peer, OperationRequest operationRequest)
 
virtual OperationResponse HandleJoinLobby (MasterClientPeer peer, JoinLobbyRequest operation, SendParameters sendParameters)
 
virtual OperationResponse HandleJoinRandomGame (MasterClientPeer peer, OperationRequest operationRequest)
 
virtual OperationResponse HandleLeaveLobby (MasterClientPeer peer, OperationRequest operationRequest)
 
virtual OperationResponse HandleDebugGame (MasterClientPeer peer, OperationRequest operationRequest)
 
virtual void OnGameStateChanged (GameState gameState)
 
virtual void OnRemovePeer (MasterClientPeer peer)
 

Properties

PoolFiber ExecutionFiber [get, protected set]
 
int PeerCount [get]
 Gets the number of peers in the lobby. More...
 
int PlayerCount [get]
 Gets the total number of players in all games in this lobby. More...
 
int GameCount [get]
 

Constructor & Destructor Documentation

Photon.LoadBalancing.MasterServer.Lobby.AppLobby.AppLobby ( GameApplication  application,
string  lobbyName,
AppLobbyType  lobbyType 
)
inline
Photon.LoadBalancing.MasterServer.Lobby.AppLobby.AppLobby ( GameApplication  application,
string  lobbyName,
AppLobbyType  lobbyType,
int  maxPlayersDefault,
TimeSpan  joinTimeOut 
)
inline

Member Function Documentation

void Photon.LoadBalancing.MasterServer.Lobby.AppLobby.EnqueueOperation ( MasterClientPeer  peer,
OperationRequest  operationRequest,
SendParameters  sendParameters 
)
inline
virtual void Photon.LoadBalancing.MasterServer.Lobby.AppLobby.ExecuteOperation ( MasterClientPeer  peer,
OperationRequest  operationRequest,
SendParameters  sendParameters 
)
inlineprotectedvirtual
virtual object Photon.LoadBalancing.MasterServer.Lobby.AppLobby.GetCreateGameResponse ( MasterClientPeer  peer,
GameState  gameState 
)
inlineprotectedvirtual
virtual DebugGameResponse Photon.LoadBalancing.MasterServer.Lobby.AppLobby.GetDebugGameResponse ( MasterClientPeer  peer,
GameState  gameState 
)
inlineprotectedvirtual
virtual object Photon.LoadBalancing.MasterServer.Lobby.AppLobby.GetJoinGameResponse ( MasterClientPeer  peer,
GameState  gameState 
)
inlineprotectedvirtual
virtual object Photon.LoadBalancing.MasterServer.Lobby.AppLobby.GetJoinRandomGameResponse ( MasterClientPeer  peer,
GameState  gameState 
)
inlineprotectedvirtual
virtual OperationResponse Photon.LoadBalancing.MasterServer.Lobby.AppLobby.HandleCreateGame ( MasterClientPeer  peer,
OperationRequest  operationRequest 
)
inlineprotectedvirtual
virtual OperationResponse Photon.LoadBalancing.MasterServer.Lobby.AppLobby.HandleDebugGame ( MasterClientPeer  peer,
OperationRequest  operationRequest 
)
inlineprotectedvirtual
virtual OperationResponse Photon.LoadBalancing.MasterServer.Lobby.AppLobby.HandleJoinGame ( MasterClientPeer  peer,
OperationRequest  operationRequest 
)
inlineprotectedvirtual
virtual OperationResponse Photon.LoadBalancing.MasterServer.Lobby.AppLobby.HandleJoinLobby ( MasterClientPeer  peer,
JoinLobbyRequest  operation,
SendParameters  sendParameters 
)
inlineprotectedvirtual
virtual OperationResponse Photon.LoadBalancing.MasterServer.Lobby.AppLobby.HandleJoinRandomGame ( MasterClientPeer  peer,
OperationRequest  operationRequest 
)
inlineprotectedvirtual
virtual OperationResponse Photon.LoadBalancing.MasterServer.Lobby.AppLobby.HandleLeaveLobby ( MasterClientPeer  peer,
OperationRequest  operationRequest 
)
inlineprotectedvirtual
void Photon.LoadBalancing.MasterServer.Lobby.AppLobby.JoinLobby ( MasterClientPeer  peer,
JoinLobbyRequest  joinLobbyrequest,
SendParameters  sendParameters 
)
inline
virtual void Photon.LoadBalancing.MasterServer.Lobby.AppLobby.OnGameStateChanged ( GameState  gameState)
inlineprotectedvirtual
virtual void Photon.LoadBalancing.MasterServer.Lobby.AppLobby.OnRemovePeer ( MasterClientPeer  peer)
inlineprotectedvirtual
void Photon.LoadBalancing.MasterServer.Lobby.AppLobby.RemoveGame ( string  gameId)
inline
void Photon.LoadBalancing.MasterServer.Lobby.AppLobby.RemoveGameServer ( IncomingGameServerPeer  gameServer)
inline
void Photon.LoadBalancing.MasterServer.Lobby.AppLobby.RemovePeer ( MasterClientPeer  serverPeer)
inline
void Photon.LoadBalancing.MasterServer.Lobby.AppLobby.UpdateGameState ( UpdateGameEvent  operation,
IncomingGameServerPeer  incomingGameServerPeer 
)
inline

Member Data Documentation

readonly GameApplication Photon.LoadBalancing.MasterServer.Lobby.AppLobby.Application
readonly TimeSpan Photon.LoadBalancing.MasterServer.Lobby.AppLobby.JoinTimeOut = TimeSpan.FromSeconds(5)
readonly string Photon.LoadBalancing.MasterServer.Lobby.AppLobby.LobbyName
readonly AppLobbyType Photon.LoadBalancing.MasterServer.Lobby.AppLobby.LobbyType
readonly int Photon.LoadBalancing.MasterServer.Lobby.AppLobby.MaxPlayersDefault

Property Documentation

PoolFiber Photon.LoadBalancing.MasterServer.Lobby.AppLobby.ExecutionFiber
getprotected set
int Photon.LoadBalancing.MasterServer.Lobby.AppLobby.GameCount
get
int Photon.LoadBalancing.MasterServer.Lobby.AppLobby.PeerCount
get

Gets the number of peers in the lobby.

int Photon.LoadBalancing.MasterServer.Lobby.AppLobby.PlayerCount
get

Gets the total number of players in all games in this lobby.