Photon Server API Documentation v5.0RC1

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

Public Member Functions

 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)
 
virtual void PublishGameChanges ()
 
virtual IGameListSubscription AddSubscription (MasterClientPeer peer, Hashtable gamePropertyFilter, int maxGameCount)
 
void RemoveGameServer (GameServerContext gameServer)
 
bool RemoveGameStateByName (string gameId)
 
bool TryGetGame (string gameId, out GameState gameState)
 

Protected Member Functions

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 ()
 
virtual void HandleVisibility (GameState gameState, bool oldVisible)
 

Protected Attributes

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
 

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)
 
- 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

◆ SqlGameList()

Photon.LoadBalancing.MasterServer.Lobby.SqlGameList.SqlGameList ( AppLobby  lobby,
int?  limitSqlFilterResults,
string  matchmakingStoredProcedure = null 
)
inline

Member Function Documentation

◆ AddGameState()

override void Photon.LoadBalancing.MasterServer.Lobby.SqlGameList.AddGameState ( GameState  gameState,
Dictionary< string, object >  authCookie = null 
)
inlinevirtual

◆ GetGameList()

Hashtable Photon.LoadBalancing.MasterServer.Lobby.SqlGameList.GetGameList ( string  query,
out ErrorCode  errorCode,
out string  message 
)
inline

◆ OnGameJoinableChanged()

override void Photon.LoadBalancing.MasterServer.Lobby.SqlGameList.OnGameJoinableChanged ( GameState  gameState)
inlinevirtual

◆ RemoveGameState()

override bool Photon.LoadBalancing.MasterServer.Lobby.SqlGameList.RemoveGameState ( GameState  gameState)
inlineprotectedvirtual

◆ TryGetRandomGame()

override ErrorCode Photon.LoadBalancing.MasterServer.Lobby.SqlGameList.TryGetRandomGame ( JoinRandomGameRequest  joinRequest,
ILobbyPeer  peer,
out GameState  gameState,
out string  message 
)
inlinevirtual

◆ UpdateGameState()

override bool Photon.LoadBalancing.MasterServer.Lobby.SqlGameList.UpdateGameState ( UpdateGameEvent  updateOperation,
GameServerContext  incomingGameServerPeer,
out GameState  gameState 
)
inlinevirtual

◆ UpdateLobbyLimits()

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

◆ UpdateMatchmakingStoredProcedure()

void Photon.LoadBalancing.MasterServer.Lobby.SqlGameList.UpdateMatchmakingStoredProcedure ( string  matchmakingStoredProcedure)
inline

Member Data Documentation

◆ gameDatabase

readonly GameTable Photon.LoadBalancing.MasterServer.Lobby.SqlGameList.gameDatabase = new GameTable(10, "C")
protected