Photon Server API Documentation v5.0RC1

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

Public Member Functions

 GameChannelList (AppLobby lobby)
 
override IGameListSubscription AddSubscription (MasterClientPeer peer, Hashtable gamePropertyFilter, int maxGameCount)
 
override ErrorCode TryGetRandomGame (JoinRandomGameRequest joinRequest, ILobbyPeer peer, out GameState gameState, out string message)
 
override void PublishGameChanges ()
 
- 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 bool RemoveGameState (GameState gameState)
 
override void HandleVisibility (GameState gameState, bool oldVisible)
 
- 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.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

◆ GameChannelList()

Photon.LoadBalancing.MasterServer.ChannelLobby.GameChannelList.GameChannelList ( AppLobby  lobby)
inline

Member Function Documentation

◆ AddSubscription()

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

◆ HandleVisibility()

override void Photon.LoadBalancing.MasterServer.ChannelLobby.GameChannelList.HandleVisibility ( GameState  gameState,
bool  oldVisible 
)
inlineprotectedvirtual

◆ PublishGameChanges()

override void Photon.LoadBalancing.MasterServer.ChannelLobby.GameChannelList.PublishGameChanges ( )
inlinevirtual

◆ RemoveGameState()

override bool Photon.LoadBalancing.MasterServer.ChannelLobby.GameChannelList.RemoveGameState ( GameState  gameState)
inlineprotectedvirtual

◆ TryGetRandomGame()

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