Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DistanceFilter"/> class.
 /// </summary>
 /// <param name="value">Steam distance filter value.</param>
 public DistanceFilter(ELobbyDistanceFilter value) : base(ELobbyFilterType.Distance, "", ELobbyComparison.Equal)
 {
     Value = value;
 }
		/// <summary>
		/// <para> sets the distance for which we should search for lobbies (based on users IP address to location map on the Steam backed)</para>
		/// </summary>
		public static void AddRequestLobbyListDistanceFilter(ELobbyDistanceFilter eLobbyDistanceFilter) {
			InteropHelp.TestIfAvailableClient();
			NativeMethods.ISteamMatchmaking_AddRequestLobbyListDistanceFilter(eLobbyDistanceFilter);
		}
Example #3
0
 /// <summary>
 /// <para> sets the distance for which we should search for lobbies (based on users IP address to location map on the Steam backed)</para>
 /// </summary>
 public static void AddRequestLobbyListDistanceFilter(ELobbyDistanceFilter eLobbyDistanceFilter)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamMatchmaking_AddRequestLobbyListDistanceFilter(eLobbyDistanceFilter);
 }
Example #4
0
		public static extern void ISteamMatchmaking_AddRequestLobbyListDistanceFilter(ELobbyDistanceFilter eLobbyDistanceFilter);
 public void AddRequestLobbyListDistanceFilter(ELobbyDistanceFilter eLobbyDistanceFilter)
 {
     this.GetFunction <NativeAddRequestLobbyListDistanceFilterE>(this.Functions.AddRequestLobbyListDistanceFilter9)(this.ObjectAddress, eLobbyDistanceFilter);
 }
Example #6
0
 private static void SteamUnityAPI_SteamMatchmaking_AddRequestLobbyListDistanceFilter(IntPtr matchmaking, ELobbyDistanceFilter lobbyDistanceFilter);
Example #7
0
 public void RequestLobbyList(ICollection <LobbyStringFilter> stringFilters, ICollection <LobbyIntFilter> intFilters, Dictionary <string, int> nearValueFilters, int requiredSlotsAvailable, ELobbyDistanceFilter lobbyDistance, int maxResults, ICollection <SteamID> compatibleSteamIDs, OnLobbyListReceived onLobbyListReceived)
 {
     if ((long)this._lobbyListRequest != 0L)
     {
         this.CancelCurrentLobbyListRequest();
     }
     this._onLobbyListReceived = onLobbyListReceived;
     if (stringFilters != null)
     {
         foreach (LobbyStringFilter lobbyStringFilter in (IEnumerable <LobbyStringFilter>)stringFilters)
         {
             Matchmaking.SteamUnityAPI_SteamMatchmaking_AddRequestLobbyListStringFilter(this._matchmaking, lobbyStringFilter.key, lobbyStringFilter.value, lobbyStringFilter.comparison);
         }
     }
     if (intFilters != null)
     {
         foreach (LobbyIntFilter lobbyIntFilter in (IEnumerable <LobbyIntFilter>)intFilters)
         {
             Matchmaking.SteamUnityAPI_SteamMatchmaking_AddRequestLobbyListNumericalFilter(this._matchmaking, lobbyIntFilter.key, lobbyIntFilter.value, lobbyIntFilter.comparison);
         }
     }
     if (nearValueFilters != null)
     {
         foreach (KeyValuePair <string, int> keyValuePair in nearValueFilters)
         {
             Matchmaking.SteamUnityAPI_SteamMatchmaking_AddRequestLobbyListNearValueFilter(this._matchmaking, keyValuePair.Key, keyValuePair.Value);
         }
     }
     if (compatibleSteamIDs != null)
     {
         foreach (SteamID steamId in (IEnumerable <SteamID>)compatibleSteamIDs)
         {
             Matchmaking.SteamUnityAPI_SteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter(this._matchmaking, steamId.ToUInt64());
         }
     }
     if (requiredSlotsAvailable != 0)
     {
         Matchmaking.SteamUnityAPI_SteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable(this._matchmaking, requiredSlotsAvailable);
     }
     if (maxResults != 0)
     {
         Matchmaking.SteamUnityAPI_SteamMatchmaking_AddRequestLobbyListResultCountFilter(this._matchmaking, maxResults);
     }
     Matchmaking.SteamUnityAPI_SteamMatchmaking_AddRequestLobbyListDistanceFilter(this._matchmaking, lobbyDistance);
     CommunityExpress.Instance.AddLobbyListRequestCallback(Matchmaking.SteamUnityAPI_SteamMatchmaking_RequestLobbyList(this._matchmaking), new OnMatchmakingLobbyListReceivedFromSteam(this.OnLobbyListReceivedCallback));
 }
Example #8
0
 /// sets the distance for which we should search for lobbies (based on users IP address to location map on the Steam backed)
 public static void AddRequestLobbyListDistanceFilter(ELobbyDistanceFilter eLobbyDistanceFilter)
 {
 }