Photon Server API Documentation v5.0RC1

Public Member Functions | Protected Member Functions | List of all members
Photon.LoadBalancing.MasterServer.Lobby.AsyncRandomGameList Class Reference
Inheritance diagram for Photon.LoadBalancing.MasterServer.Lobby.AsyncRandomGameList:
Photon.LoadBalancing.MasterServer.Lobby.GameList Photon.LoadBalancing.MasterServer.Lobby.GameListBase Photon.LoadBalancing.MasterServer.Lobby.IGameList

Public Member Functions

 AsyncRandomGameList (AppLobby lobby)
 
override IGameListSubscription AddSubscription (MasterClientPeer peer, Hashtable gamePropertyFilter, int maxGameCount)
 
override void PublishGameChanges ()
 
- Public Member Functions inherited from Photon.LoadBalancing.MasterServer.Lobby.GameList
 GameList (AppLobby lobby)
 
override ErrorCode TryGetRandomGame (JoinRandomGameRequest joinRequest, ILobbyPeer peer, out GameState gameState, out string message)
 
- Public Member Functions inherited from Photon.LoadBalancing.MasterServer.Lobby.GameListBase
virtual void AddGameState (GameState gameState, Dictionary< string, object > authCookie=null)
 
int CheckJoinTimeOuts (TimeSpan timeOut)
 
int CheckJoinTimeOuts (DateTime minDateTime)
 
bool ContainsGameId (string gameId)
 
virtual void OnPlayerCountChanged (GameState gameState, int oldPlayerCount)
 
virtual void OnGameJoinableChanged (GameState gameState)
 
void SetExpectReplicationFlag (bool flag, GameServerContext gameServerContext)
 
void RemoveNotReplicatedGames (GameServerContext gameServerContext)
 
virtual void UpdateLobbyLimits (bool gameListUseLegacyLobbies, int? gameListLimit, int? gameListLimitUpdates, int? gameListLimitSqlFilterResults)
 
void RemoveGameServer (GameServerContext gameServer)
 
bool RemoveGameStateByName (string gameId)
 
bool TryGetGame (string gameId, out GameState gameState)
 
virtual bool UpdateGameState (UpdateGameEvent updateOperation, GameServerContext incomingGameServer, out GameState gameState)
 

Protected Member Functions

override Hashtable GetChangedGames ()
 
override Hashtable GetAllGames (int maxCount)
 
- Protected Member Functions inherited from Photon.LoadBalancing.MasterServer.Lobby.GameListBase
 GameListBase (AppLobby lobby)
 
virtual void HandleVisibility (GameState gameState, bool oldVisible)
 
virtual bool RemoveGameState (GameState gameState)
 

Additional Inherited Members

- Public Attributes inherited from Photon.LoadBalancing.MasterServer.Lobby.GameListBase
readonly AppLobby Lobby
 
- Static Protected Member Functions inherited from Photon.LoadBalancing.MasterServer.Lobby.GameListBase
static void LogGameState (string prefix, GameState gameState)
 
static bool IsGameJoinable (JoinRandomGameRequest joinRequest, ILobbyPeer peer, GameState gameState)
 
- Protected Attributes inherited from Photon.LoadBalancing.MasterServer.Lobby.GameListBase
readonly Dictionary< string, GameStatechangedGames
 
readonly LinkedListDictionary< string, GameStategameDict
 
readonly HashSet< string > removedGames
 
readonly HashSet< PeerBasepeers = new HashSet<PeerBase>()
 
LinkedListNode< GameStatenextJoinRandomStartNode
 
- Properties inherited from Photon.LoadBalancing.MasterServer.Lobby.GameListBase
int ChangedGamesCount [get]
 
int Count [get]
 
int PlayerCount [get, protected set]
 
- Properties inherited from Photon.LoadBalancing.MasterServer.Lobby.IGameList
int Count [get]
 
int PlayerCount [get]
 

Constructor & Destructor Documentation

◆ AsyncRandomGameList()

Photon.LoadBalancing.MasterServer.Lobby.AsyncRandomGameList.AsyncRandomGameList ( AppLobby  lobby)
inline

Member Function Documentation

◆ AddSubscription()

override IGameListSubscription Photon.LoadBalancing.MasterServer.Lobby.AsyncRandomGameList.AddSubscription ( MasterClientPeer  peer,
Hashtable  gamePropertyFilter,
int  maxGameCount 
)
inlinevirtual

◆ GetAllGames()

override Hashtable Photon.LoadBalancing.MasterServer.Lobby.AsyncRandomGameList.GetAllGames ( int  maxCount)
inlineprotectedvirtual

◆ GetChangedGames()

override Hashtable Photon.LoadBalancing.MasterServer.Lobby.AsyncRandomGameList.GetChangedGames ( )
inlineprotectedvirtual

◆ PublishGameChanges()

override void Photon.LoadBalancing.MasterServer.Lobby.AsyncRandomGameList.PublishGameChanges ( )
inlinevirtual