Photon Server API Documentation v5.0RC1

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

Public Member Functions

 LimitedGameList (AppLobby lobby, bool useLegacyLobbies, int? limitGameList, int? limitGameListUpdate)
 
override IGameListSubscription AddSubscription (MasterClientPeer peer, Hashtable gamePropertyFilter, int maxGameCount)
 
override void PublishGameChanges ()
 
override void UpdateLobbyLimits (bool gameListUseLegacyLobbies, int? gameListLimit, int? gameListLimitUpdates, int? gameListLimitSqlFilterResults)
 
- 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)
 
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 GetAllGames (int maxCount)
 
override Hashtable GetChangedGames ()
 
override void HandleVisibility (GameState gameState, bool oldVisible)
 
- Protected Member Functions inherited from Photon.LoadBalancing.MasterServer.Lobby.GameListBase
 GameListBase (AppLobby lobby)
 
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

◆ LimitedGameList()

Photon.LoadBalancing.MasterServer.Lobby.LimitedGameList.LimitedGameList ( AppLobby  lobby,
bool  useLegacyLobbies,
int?  limitGameList,
int?  limitGameListUpdate 
)
inline

Member Function Documentation

◆ AddSubscription()

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

◆ GetAllGames()

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

◆ GetChangedGames()

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

◆ HandleVisibility()

override void Photon.LoadBalancing.MasterServer.Lobby.LimitedGameList.HandleVisibility ( GameState  gameState,
bool  oldVisible 
)
inlineprotectedvirtual

◆ PublishGameChanges()

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

◆ UpdateLobbyLimits()

override void Photon.LoadBalancing.MasterServer.Lobby.LimitedGameList.UpdateLobbyLimits ( bool  gameListUseLegacyLobbies,
int?  gameListLimit,
int?  gameListLimitUpdates,
int?  gameListLimitSqlFilterResults 
)
inlinevirtual