Class LobbyInfo
- Namespace
- SteamNetworkLib.Models
- Assembly
- SteamNetworkLib.dll
Represents information about a Steam lobby including its metadata and current state. Contains all essential details needed to identify and manage a lobby session.
public class LobbyInfo
- Inheritance
-
LobbyInfo
- Inherited Members
Constructors
LobbyInfo()
Initializes a new instance of the LobbyInfo class. Sets the creation time to the current local time.
public LobbyInfo()
Properties
CreatedAt
Gets or sets when the lobby was created or when it was joined locally. Used for tracking session duration and ordering lobby lists.
public DateTime CreatedAt { get; set; }
Property Value
LobbyId
Gets or sets the unique Steam ID of the lobby. This is the primary identifier used for all lobby operations.
public CSteamID? LobbyId { get; set; }
Property Value
- CSteamID
LobbyId64
Gets or sets the lobby Steam ID as a 64-bit integer.
public ulong LobbyId64 { get; set; }
Property Value
Remarks
Use this property for JSON payloads, configuration files, dictionaries, and logs.
It avoids exposing the runtime-specific Steamworks CSteamID type in
cross-mod data contracts.
MaxMembers
Gets or sets the maximum number of members allowed in the lobby. This limit is set when the lobby is created and determines capacity.
public int MaxMembers { get; set; }
Property Value
MemberCount
Gets or sets the current number of members in the lobby. This count includes all connected players including the host.
public int MemberCount { get; set; }
Property Value
Name
Gets or sets the display name or title of the lobby. This is an optional human-readable identifier for the lobby.
public string? Name { get; set; }
Property Value
OwnerId
Gets or sets the Steam ID of the lobby owner (host). The owner has special privileges like changing lobby settings and kicking members.
public CSteamID? OwnerId { get; set; }
Property Value
- CSteamID
OwnerId64
Gets or sets the lobby owner Steam ID as a 64-bit integer.
public ulong OwnerId64 { get; set; }
Property Value
Remarks
This is the runtime-neutral form of OwnerId and is usually the better value to store in mod state or transmit in typed P2P payloads.