Class Matchmaking
- Namespace
- SharpPluginLoader.Core.Steam
- Assembly
- SharpPluginLoader.Core.dll
public static class Matchmaking
- Inheritance
-
Matchmaking
- Inherited Members
Methods
AddRequestLobbyListDistanceFilter(LobbyDistanceFilter)
Sets the physical distance for which we should search for lobbies, this is based on the users IP address and a IP location map on the Steam backed.
public static void AddRequestLobbyListDistanceFilter(LobbyDistanceFilter filter)
Parameters
filterLobbyDistanceFilterSpecifies the maximum distance.
AddRequestLobbyListFilterSlotsAvailable(int)
Filters to only return lobbies with the specified number of open slots available.
public static void AddRequestLobbyListFilterSlotsAvailable(int slotsAvailable)
Parameters
slotsAvailableintThe number of open slots that must be open.
AddRequestLobbyListNearValueFilter(string, int)
Sorts the results closest to the specified value.
Near filters don't actually filter out values, they just influence how the results are sorted. You can specify multiple near filters, with the first near filter influencing the most, and the last near filter influencing the least.
public static void AddRequestLobbyListNearValueFilter(string keyToMatch, int valueToBeCloseTo)
Parameters
keyToMatchstringThe filter key name to match. This can not be longer than 255 bytes
valueToBeCloseTointThe value that lobbies will be sorted on.
AddRequestLobbyListNumericalFilter(string, int, LobbyComparison)
Adds a numerical comparison filter to the next RequestLobbyList call.
public static void AddRequestLobbyListNumericalFilter(string keyToMatch, int valueToMatch, LobbyComparison comparison)
Parameters
keyToMatchstringThe filter key name to match. This can not be longer than 255 bytes
valueToMatchintThe number to match.
comparisonLobbyComparisonThe comparison type to use.
AddRequestLobbyListStringFilter(string, string, LobbyComparison)
Adds a string comparison filter to the next RequestLobbyList call.
public static void AddRequestLobbyListStringFilter(string keyToMatch, string valueToMatch, LobbyComparison comparison)
Parameters
keyToMatchstringThe filter key name to match. This can not be longer than 255 bytes
valueToMatchstringThe string to match.
comparisonLobbyComparisonThe comparison type to use.
GetSteamMatchmakingInterface()
public static nint GetSteamMatchmakingInterface()
Returns
GetVirtualFunction(VirtualFunctionIndex)
Returns the address of a virtual function in the SteamMatchmaking interface.
public static nint GetVirtualFunction(Matchmaking.VirtualFunctionIndex func)
Parameters
funcMatchmaking.VirtualFunctionIndexThe virtual function to get the address of.
Returns
- nint
The address of the virtual function.