NearValueFilter

class NearValueFilter(val key: String, val value: Int) : Filter

Can be used to filter lobbies with a metadata value closest to the specified value. Multiple near filters can be specified, with former filters taking precedence over latter filters.

Author

Lossy

Since

2025-05-21

Parameters

key

The metadata key this filter pertains to.

value

Integer value that lobbies' metadata value should be close to.

Constructors

Link copied to clipboard
constructor(key: String, value: Int)

Initializes a new instance of the NearValueFilter class.

Properties

Link copied to clipboard
val comparison: ELobbyComparison

The comparison method used by this filter.

Link copied to clipboard
val filterType: ELobbyFilterType

The type of filter.

Link copied to clipboard
val key: String

The metadata key this filter pertains to. Under certain circumstances e.g. a distance filter, this will be an empty string.

Link copied to clipboard
val value: Int

Functions

Link copied to clipboard
open override fun serialize(): SteammessagesClientserverMms.CMsgClientMMSGetLobbyList.Filter.Builder

Serializes the slots available filter into a representation used internally by SteamMatchmaking.