Photon Server API Documentation v5.0RC1

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

Public Member Functions

 SqlFilterGameList (AppLobby lobby, bool useLegacyLobbies, int? limitSqlFilterResults, string matchmakingStoredProcedure)
 
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.SqlGameList
 SqlGameList (AppLobby lobby, int? limitSqlFilterResults, string matchmakingStoredProcedure=null)
 
override void AddGameState (GameState gameState, Dictionary< string, object > authCookie=null)
 
override ErrorCode TryGetRandomGame (JoinRandomGameRequest joinRequest, ILobbyPeer peer, out GameState gameState, out string message)
 
override void OnGameJoinableChanged (GameState gameState)
 
override bool UpdateGameState (UpdateGameEvent updateOperation, GameServerContext incomingGameServerPeer, out GameState gameState)
 
Hashtable GetGameList (string query, out ErrorCode errorCode, out string message)
 
override void UpdateLobbyLimits (bool gameListUseLegacyLobbies, int? gameListLimit, int? gameListLimitUpdates, int? gameListLimitSqlFilterResults)
 
void UpdateMatchmakingStoredProcedure (string matchmakingStoredProcedure)
 
- Public Member Functions inherited from Photon.LoadBalancing.MasterServer.Lobby.GameListBase
int CheckJoinTimeOuts (TimeSpan timeOut)
 
int CheckJoinTimeOuts (DateTime minDateTime)
 
bool ContainsGameId (string gameId)
 
virtual void OnPlayerCountChanged (GameState gameState, int oldPlayerCount)
 
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)
 

Protected Member Functions

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

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.SqlGameList
readonly GameTable gameDatabase = new GameTable(10, "C")
 
- 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

◆ SqlFilterGameList()

Photon.LoadBalancing.MasterServer.Lobby.SqlFilterGameList.SqlFilterGameList ( AppLobby  lobby,
bool  useLegacyLobbies,
int?  limitSqlFilterResults,
string  matchmakingStoredProcedure 
)
inline

Member Function Documentation

◆ AddSubscription()

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

◆ HandleVisibility()

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

◆ PublishGameChanges()

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

◆ UpdateLobbyLimits()

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