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

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

Member Function Documentation

void Photon.LoadBalancing.MasterServer.GameApplication.AddGameToRedis ( GameState  gameState)
inlineprotected
void Photon.LoadBalancing.MasterServer.GameApplication.Dispose ( )
inline
virtual void Photon.LoadBalancing.MasterServer.GameApplication.Dispose ( bool  dispose)
inlineprotectedvirtual
bool Photon.LoadBalancing.MasterServer.GameApplication.GetOrCreateGame ( string  gameId,
AppLobby  lobby,
byte  maxPlayer,
IncomingGameServerPeer  gameServerPeer,
out GameState  gameState 
)
inline
string Photon.LoadBalancing.MasterServer.GameApplication.GetRedisGameId ( string  gameId)
inlineprotected
virtual void Photon.LoadBalancing.MasterServer.GameApplication.OnClientConnected ( MasterClientPeer  peer)
inlinevirtual
virtual void Photon.LoadBalancing.MasterServer.GameApplication.OnClientDisconnected ( MasterClientPeer  peer)
inlinevirtual
void Photon.LoadBalancing.MasterServer.GameApplication.OnGameRemovedOnGameServer ( string  gameId)
inline
virtual void Photon.LoadBalancing.MasterServer.GameApplication.OnGameServerRemoved ( IncomingGameServerPeer  gameServer)
inlinevirtual
void Photon.LoadBalancing.MasterServer.GameApplication.OnGameUpdateOnGameServer ( UpdateGameEvent  updateGameEvent,
IncomingGameServerPeer  gameServerPeer 
)
inline
bool Photon.LoadBalancing.MasterServer.GameApplication.RemoveGame ( string  gameId)
inline
void Photon.LoadBalancing.MasterServer.GameApplication.RemoveGameFromRedis ( GameState  gameState)
inlineprotected
bool Photon.LoadBalancing.MasterServer.GameApplication.TryCreateGame ( string  gameId,
AppLobby  lobby,
byte  maxPlayer,
IncomingGameServerPeer  gameServerPeer,
out GameState  gameState 
)
inline
bool Photon.LoadBalancing.MasterServer.GameApplication.TryGetGame ( string  gameId,
out GameState  gameState 
)
inline

Member Data Documentation

readonly string Photon.LoadBalancing.MasterServer.GameApplication.ApplicationId
readonly PoolFiber Photon.LoadBalancing.MasterServer.GameApplication.fiber
protected
readonly LoadBalancer<IncomingGameServerPeer> Photon.LoadBalancing.MasterServer.GameApplication.LoadBalancer
readonly PlayerCache Photon.LoadBalancing.MasterServer.GameApplication.PlayerOnlineCache
PooledRedisClientManager Photon.LoadBalancing.MasterServer.GameApplication.redisManager
protected
readonly string Photon.LoadBalancing.MasterServer.GameApplication.Version

Property Documentation

LobbyFactory Photon.LoadBalancing.MasterServer.GameApplication.LobbyFactory
getprotected set
LobbyStatsPublisher Photon.LoadBalancing.MasterServer.GameApplication.LobbyStatsPublisher
getprotected set
PluginTraits Photon.LoadBalancing.MasterServer.GameApplication.PluginTraits
getprotected set
AuthTokenFactory Photon.LoadBalancing.MasterServer.GameApplication.TokenCreator
getprotected set