private static void FindLobby() { // Wait 5s Thread.Sleep(5000); // Request lobbies from steam LobbySearch.AddRequestLobbyListNumericalFilter( MyMultiplayer.AppVersionTag, MyFinalBuildConstants.APP_VERSION, LobbyComparison.LobbyComparisonEqual ); LobbySearch.RequestLobbyList(LobbiesRequestCompleted); }
public LoadLobbyListResult(bool showOnlyCompatible) { MySandboxGame.Log.WriteLine("Requesting dedicated servers"); if (showOnlyCompatible) { LobbySearch.AddRequestLobbyListNumericalFilter(MyMultiplayer.AppVersionTag, MyFinalBuildConstants.APP_VERSION, LobbyComparison.LobbyComparisonEqual); } //var searchName = m_blockSearch.Text.Trim(); //if (!string.IsNullOrWhiteSpace(searchName)) // LobbySearch.AddRequestLobbyListStringFilter(MyMultiplayer.WorldNameTag, searchName, LobbyComparison.LobbyComparisonEqual); MySandboxGame.Log.WriteLine("Requesting worlds, only compatible: " + showOnlyCompatible); LobbySearch.RequestLobbyList(LobbiesCompleted); }