pub struct LobbySnapshot {
pub lobby_id: String,
pub lobby_type: LobbyType,
pub lobby_code: Option<String>,
pub players: Vec<LobbyPlayerInfo>,
pub games: Vec<LobbyGameInfo>,
pub max_players: u8,
pub sandbox_config: Option<GameConfig>,
pub host_id: Option<i64>,
pub auto_rematch: bool,
pub dictionary: String,
pub mode_caps: Vec<ModeCap>,
}Expand description
Complete lobby state snapshot.
Fields§
§lobby_id: String§lobby_type: LobbyType§lobby_code: Option<String>§players: Vec<LobbyPlayerInfo>§games: Vec<LobbyGameInfo>§max_players: u8Maximum players allowed
sandbox_config: Option<GameConfig>Current sandbox config for the lobby, if a host has set one. Absent for normal (non-sandbox) lobbies.
host_id: Option<i64>The lobby’s current host (the player who controls sandbox config), if one has been assigned. Lets clients show host-only controls and a read-only mirror for non-hosts. Updated live on host transfer. Serialized as a STRING (like every other id) so JS doesn’t lose precision on snowflake-magnitude ids (>2^53).
auto_rematch: boolWhether a finished game arms a rematch countdown (true) or an opt-in
(false). Absent from backends before v0.48.0, so it reads as on.
dictionary: StringSlug of the dictionary the lobby’s games use. Absent from backends
before v0.23.0, so it reads as main; always serialized.
mode_caps: Vec<ModeCap>Per-mode player caps that differ from max_players. Absent from
backends before v0.49.0 (and when empty).