Photon Server API

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 (PeerBase peer, Hashtable gamePropertyFilter, int maxGameCount)
 
override ErrorCode TryGetRandomGame (JoinRandomGameRequest joinRequest, ILobbyPeer peer, out GameState gameState, out string message)
 
override bool UpdateGameState (UpdateGameEvent updateOperation, IncomingGameServerPeer gameServerPeer, out GameState gameState)
 
override void PublishGameChanges ()
 
- 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 Hashtable GetAllGames (int maxCount)
 
virtual void OnPlayerCountChanged (GameState gameState, int oldPlayerCount)
 
virtual void OnGameJoinableChanged (GameState gameState)
 
virtual Hashtable GetChangedGames ()
 
virtual void RemoveSubscription (PeerBase peer)
 
void RemoveGameServer (IncomingGameServerPeer gameServer)
 
bool RemoveGameState (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)
 
void HandleVisibility (GameState gameState, bool oldVisible)
 
GameState GetGameState (string gameId)
 
bool GetOrAddUpdatedGameState (UpdateGameEvent updateOperation, out GameState gameState)
 

Additional Inherited Members

- Public Attributes inherited from Photon.LoadBalancing.MasterServer.Lobby.GameListBase
AppLobby Lobby
 
- 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

◆ GameChannelList()

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

Member Function Documentation

◆ AddSubscription()

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

◆ 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

◆ UpdateGameState()

override bool Photon.LoadBalancing.MasterServer.ChannelLobby.GameChannelList.UpdateGameState ( UpdateGameEvent  updateOperation,
IncomingGameServerPeer  gameServerPeer,
out GameState  gameState 
)
inlinevirtual