Photon Server API

Public 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 Hashtable GetChangedGames ()
 
override Hashtable GetAllGames (int maxCount)
 
override IGameListSubscription AddSubscription (PeerBase 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)
 
int CheckJoinTimeOuts (int timeOutSeconds)
 
int CheckJoinTimeOuts (TimeSpan timeOut)
 
int CheckJoinTimeOuts (DateTime minDateTime)
 
bool ContainsGameId (string gameId)
 
virtual void OnPlayerCountChanged (GameState gameState, int oldPlayerCount)
 
virtual void OnGameJoinableChanged (GameState gameState)
 
virtual void RemoveSubscription (PeerBase peer)
 
void RemoveGameServer (IncomingGameServerPeer gameServer)
 
bool RemoveGameState (string gameId)
 
bool TryGetGame (string gameId, out GameState gameState)
 
virtual bool UpdateGameState (UpdateGameEvent updateOperation, IncomingGameServerPeer incomingGameServerPeer, out GameState gameState)
 

Additional Inherited Members

- Public Attributes inherited from Photon.LoadBalancing.MasterServer.Lobby.GameListBase
AppLobby Lobby
 
- Protected Member Functions inherited from Photon.LoadBalancing.MasterServer.Lobby.GameListBase
 GameListBase (AppLobby lobby)
 
virtual bool RemoveGameState (GameState gameState)
 
void HandleVisibility (GameState gameState, bool oldVisible)
 
GameState GetGameState (string gameId)
 
bool GetOrAddUpdatedGameState (UpdateGameEvent updateOperation, out GameState gameState)
 
- Static Protected Member Functions inherited from Photon.LoadBalancing.MasterServer.Lobby.GameListBase
static void LogGameState (string prefix, GameState gameState)
 
- Protected Attributes inherited from Photon.LoadBalancing.MasterServer.Lobby.GameListBase
Dictionary< string, GameStatechangedGames
 
LinkedListDictionary< string, GameStategameDict
 
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 ( PeerBase  peer,
Hashtable  gamePropertyFilter,
int  maxGameCount 
)
inlinevirtual

◆ GetAllGames()

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

◆ GetChangedGames()

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

◆ PublishGameChanges()

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