Lobby

class Lobby(val steamID: SteamID, val lobbyType: ELobbyType, val lobbyFlags: Int, val ownerSteamID: SteamID?, val metadata: Map<String, String> = mapOf(), val maxMembers: Int, val numMembers: Int, val members: List<Member> = listOf(), val distance: Float?, val weight: Long?)

Represents a Steam lobby.

Author

Lossy

Since

2025-05-21

Parameters

steamID

SteamID of the lobby.

lobbyType

The type of the lobby.

lobbyFlags

The lobby's flags.

ownerSteamID

The SteamID of the lobby's owner. Please keep in mind that Steam does not provide lobby owner details for lobbies returned in a lobby list. As such, lobbies that have been obtained/updated as a result of calling SteamMatchmaking.getLobbyList may have a null (or non-null but state) owner.

metadata

The metadata of the lobby; string key-value pairs.

maxMembers

The maximum number of members that can occupy the lobby.

numMembers

The number of members that are currently occupying the lobby.

members

A list of lobby members. This will only be populated for the user's current lobby.

distance

The distance of the lobby.

weight

The weight of the lobby.

Constructors

Link copied to clipboard
constructor(steamID: SteamID, lobbyType: ELobbyType, lobbyFlags: Int, ownerSteamID: SteamID?, metadata: Map<String, String> = mapOf(), maxMembers: Int, numMembers: Int, members: List<Member> = listOf(), distance: Float?, weight: Long?)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val lobbyType: ELobbyType
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val weight: Long?