Table of Contents

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

filter LobbyDistanceFilter

Specifies 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

slotsAvailable int

The 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

keyToMatch string

The filter key name to match. This can not be longer than 255 bytes

valueToBeCloseTo int

The 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

keyToMatch string

The filter key name to match. This can not be longer than 255 bytes

valueToMatch int

The number to match.

comparison LobbyComparison

The 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

keyToMatch string

The filter key name to match. This can not be longer than 255 bytes

valueToMatch string

The string to match.

comparison LobbyComparison

The comparison type to use.

GetSteamMatchmakingInterface()

public static nint GetSteamMatchmakingInterface()

Returns

nint

GetVirtualFunction(VirtualFunctionIndex)

Returns the address of a virtual function in the SteamMatchmaking interface.

public static nint GetVirtualFunction(Matchmaking.VirtualFunctionIndex func)

Parameters

func Matchmaking.VirtualFunctionIndex

The virtual function to get the address of.

Returns

nint

The address of the virtual function.