private void FireQuickMatchResultArrived(bool result, string msg, LobbyClientCentralServerOutboundConnection sender, Game g) { if (QuickMatchResultArrivedInvoker != null) { QuickMatchResultArrivedInvoker(result, msg, sender, g); } }
private void FireCompleteMatchListingArrived(bool result, string msg, LobbyClientCentralServerOutboundConnection con, List <Game> games, int totalGames) { if (CompleteMatchListingArrivedInvoker != null) { CompleteMatchListingArrivedInvoker(result, msg, con, games, totalGames); } }
private void OnCentralServer_SocketKilled(object sender, string msg) { LobbyClientCentralServerOutboundConnection con = sender as LobbyClientCentralServerOutboundConnection; con.SocketKilled -= new SocketKilledDelegate(OnCentralServer_SocketKilled); con.CompleteMatchListingArrived -= new CompleteGameListingArrivedDelegate(OnCentralServer_CompleteMatchListingArrived); con.CentralCreateGameRequestResolved -= new CreateGameRequestResolvedDelegate(OnCentralServer_CreateGameRequestResolved); con.JoinGameResolved -= new JoinGameResultDelegate(OnCentralServer_JoinResult); con.QuickMatchResultArrived -= new QuickMatchResultArrivedDelegate(OnCentralServer_QuickMatchResultArrived); }
protected override ClientCentralServerOutboundConnection OnCentralServerConnectionCreate(bool isBlocking) { LobbyClientCentralServerOutboundConnection con = new LobbyClientCentralServerOutboundConnection(isBlocking); con.SocketKilled += new SocketKilledDelegate(OnCentralServer_SocketKilled); con.CompleteMatchListingArrived += new CompleteGameListingArrivedDelegate(OnCentralServer_CompleteMatchListingArrived); con.CentralCreateGameRequestResolved += new CreateGameRequestResolvedDelegate(OnCentralServer_CreateGameRequestResolved); con.JoinGameResolved += new JoinGameResultDelegate(OnCentralServer_JoinResult); con.QuickMatchResultArrived += new QuickMatchResultArrivedDelegate(OnCentralServer_QuickMatchResultArrived); return(con); }
void OnCentralServer_QuickMatchResultArrived(bool result, string msg, LobbyClientCentralServerOutboundConnection sender, Game g) { m_QuickMatchGame = g; FireQuickMatchResultArrived(result, msg, this); }
private void OnCentralServer_CompleteMatchListingArrived(bool result, string msg, LobbyClientCentralServerOutboundConnection sender, List <Game> games, int totalGames) { m_TotalGamesInLobby = totalGames; m_Games.Clear(); if (result) { for (int i = 0; i < games.Count; i++) { m_Games.Add(games[i] as Game); } } FireCompleteMatchListingArrived(result, msg, this); }
private void OnCentralServer_CompleteMatchListingArrived(bool result, string msg, LobbyClientCentralServerOutboundConnection sender, List<Game> games, int totalGames) { m_TotalGamesInLobby = totalGames; m_Games.Clear(); if (result) { for (int i = 0; i < games.Count; i++) { m_Games.Add(games[i] as Game); } } FireCompleteMatchListingArrived(result, msg, this); }
protected override ClientCentralServerOutboundConnection OnCentralServerConnectionCreate(bool isBlocking) { LobbyClientCentralServerOutboundConnection con = new LobbyClientCentralServerOutboundConnection(isBlocking); con.SocketKilled += new SocketKilledDelegate(OnCentralServer_SocketKilled); con.CompleteMatchListingArrived += new CompleteGameListingArrivedDelegate(OnCentralServer_CompleteMatchListingArrived); con.CentralCreateGameRequestResolved += new CreateGameRequestResolvedDelegate(OnCentralServer_CreateGameRequestResolved); con.JoinGameResolved += new JoinGameResultDelegate(OnCentralServer_JoinResult); con.QuickMatchResultArrived += new QuickMatchResultArrivedDelegate(OnCentralServer_QuickMatchResultArrived); return con; }
private void FireCompleteMatchListingArrived(bool result, string msg, LobbyClientCentralServerOutboundConnection con, List<Game> games, int totalGames) { if (CompleteMatchListingArrivedInvoker != null) { CompleteMatchListingArrivedInvoker(result, msg, con, games, totalGames); } }