NumericalFilter

class NumericalFilter(val key: String, val value: Int, val comparison: ELobbyComparison) : Filter

Can be used to filter lobbies by comparing an integer against a value in each lobby's metadata.

Author

Lossy

Since

2025-05-21

Parameters

key

The metadata key this filter pertains to.

comparison

The comparison method used by this filter.

value

Integer value to compare against.

Constructors

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

Initializes a new instance of the NumericalFilter 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

Integer value to compare against.

Functions

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

Serializes the numerical filter into a representation used internally by SteamMatchmaking.