Photon Server API

Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
Photon.LoadBalancing.MasterServer.GameApplication Class Reference
Inheritance diagram for Photon.LoadBalancing.MasterServer.GameApplication:

Public Member Functions

 GameApplication (string applicationId, string version, LoadBalancer< IncomingGameServerPeer > loadBalancer)
 
virtual void OnClientConnected (MasterClientPeer peer)
 
virtual void OnClientDisconnected (MasterClientPeer peer)
 
bool GetOrCreateGame (string gameId, AppLobby lobby, byte maxPlayer, IncomingGameServerPeer gameServerPeer, out GameState gameState)
 
bool TryCreateGame (string gameId, AppLobby lobby, byte maxPlayer, IncomingGameServerPeer gameServerPeer, out GameState gameState)
 
bool TryGetGame (string gameId, out GameState gameState)
 
void OnGameUpdateOnGameServer (UpdateGameEvent updateGameEvent, IncomingGameServerPeer gameServerPeer)
 
void OnGameRemovedOnGameServer (string gameId)
 
bool RemoveGame (string gameId)
 
virtual void OnGameServerRemoved (IncomingGameServerPeer gameServer)
 
void Dispose ()
 

Public Attributes

readonly string ApplicationId
 
readonly string Version
 
readonly LoadBalancer< IncomingGameServerPeerLoadBalancer
 
readonly PlayerCache PlayerOnlineCache
 

Protected Member Functions

string GetRedisGameId (string gameId)
 
void AddGameToRedis (GameState gameState)
 
void RemoveGameFromRedis (GameState gameState)
 
virtual void Dispose (bool dispose)
 

Protected Attributes

PooledRedisClientManager redisManager
 
readonly PoolFiber fiber
 

Properties

LobbyFactory LobbyFactory [get, protected set]
 
LobbyStatsPublisher LobbyStatsPublisher [get, protected set]
 
AuthTokenFactory TokenCreator [get, protected set]
 
PluginTraits PluginTraits [get, protected set]
 

Constructor & Destructor Documentation

◆ GameApplication()

Photon.LoadBalancing.MasterServer.GameApplication.GameApplication ( string  applicationId,
string  version,
LoadBalancer< IncomingGameServerPeer loadBalancer 
)
inline

Member Function Documentation

◆ AddGameToRedis()

void Photon.LoadBalancing.MasterServer.GameApplication.AddGameToRedis ( GameState  gameState)
inlineprotected

◆ Dispose() [1/2]

void Photon.LoadBalancing.MasterServer.GameApplication.Dispose ( )
inline

◆ Dispose() [2/2]

virtual void Photon.LoadBalancing.MasterServer.GameApplication.Dispose ( bool  dispose)
inlineprotectedvirtual

◆ GetOrCreateGame()

bool Photon.LoadBalancing.MasterServer.GameApplication.GetOrCreateGame ( string  gameId,
AppLobby  lobby,
byte  maxPlayer,
IncomingGameServerPeer  gameServerPeer,
out GameState  gameState 
)
inline

◆ GetRedisGameId()

string Photon.LoadBalancing.MasterServer.GameApplication.GetRedisGameId ( string  gameId)
inlineprotected

◆ OnClientConnected()

virtual void Photon.LoadBalancing.MasterServer.GameApplication.OnClientConnected ( MasterClientPeer  peer)
inlinevirtual

◆ OnClientDisconnected()

virtual void Photon.LoadBalancing.MasterServer.GameApplication.OnClientDisconnected ( MasterClientPeer  peer)
inlinevirtual

◆ OnGameRemovedOnGameServer()

void Photon.LoadBalancing.MasterServer.GameApplication.OnGameRemovedOnGameServer ( string  gameId)
inline

◆ OnGameServerRemoved()

virtual void Photon.LoadBalancing.MasterServer.GameApplication.OnGameServerRemoved ( IncomingGameServerPeer  gameServer)
inlinevirtual

◆ OnGameUpdateOnGameServer()

void Photon.LoadBalancing.MasterServer.GameApplication.OnGameUpdateOnGameServer ( UpdateGameEvent  updateGameEvent,
IncomingGameServerPeer  gameServerPeer 
)
inline

◆ RemoveGame()

bool Photon.LoadBalancing.MasterServer.GameApplication.RemoveGame ( string  gameId)
inline

◆ RemoveGameFromRedis()

void Photon.LoadBalancing.MasterServer.GameApplication.RemoveGameFromRedis ( GameState  gameState)
inlineprotected

◆ TryCreateGame()

bool Photon.LoadBalancing.MasterServer.GameApplication.TryCreateGame ( string  gameId,
AppLobby  lobby,
byte  maxPlayer,
IncomingGameServerPeer  gameServerPeer,
out GameState  gameState 
)
inline

◆ TryGetGame()

bool Photon.LoadBalancing.MasterServer.GameApplication.TryGetGame ( string  gameId,
out GameState  gameState 
)
inline

Member Data Documentation

◆ ApplicationId

readonly string Photon.LoadBalancing.MasterServer.GameApplication.ApplicationId

◆ fiber

readonly PoolFiber Photon.LoadBalancing.MasterServer.GameApplication.fiber
protected

◆ LoadBalancer

readonly LoadBalancer<IncomingGameServerPeer> Photon.LoadBalancing.MasterServer.GameApplication.LoadBalancer

◆ PlayerOnlineCache

readonly PlayerCache Photon.LoadBalancing.MasterServer.GameApplication.PlayerOnlineCache

◆ redisManager

PooledRedisClientManager Photon.LoadBalancing.MasterServer.GameApplication.redisManager
protected

◆ Version

readonly string Photon.LoadBalancing.MasterServer.GameApplication.Version

Property Documentation

◆ LobbyFactory

LobbyFactory Photon.LoadBalancing.MasterServer.GameApplication.LobbyFactory
getprotected set

◆ LobbyStatsPublisher

LobbyStatsPublisher Photon.LoadBalancing.MasterServer.GameApplication.LobbyStatsPublisher
getprotected set

◆ PluginTraits

PluginTraits Photon.LoadBalancing.MasterServer.GameApplication.PluginTraits
getprotected set

◆ TokenCreator

AuthTokenFactory Photon.LoadBalancing.MasterServer.GameApplication.TokenCreator
getprotected set