Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
ServerInfo_Game Struct Reference
Collaboration diagram for ServerInfo_Game:
[legend]

Public Attributes

optional sint32 server_id = 1 [default = -1]
optional sint32 room_id = 2 [default = -1]
optional sint32 game_id = 3 [default = -1]
optional string description = 4
optional bool with_password = 5
optional uint32 max_players = 6
repeated sint32 game_types = 7
optional ServerInfo_User creator_info = 8
optional bool only_buddies = 9
optional bool only_registered = 10
optional bool spectators_allowed = 11
optional bool spectators_need_password = 12
optional bool spectators_can_chat = 13
optional bool spectators_omniscient = 14
optional bool share_decklists_on_load = 15
optional uint32 player_count = 30
optional uint32 spectators_count = 31
optional bool started = 50
optional uint32 start_time = 51
optional bool closed = 52
optional ServerInfo_User host_info = 53

Detailed Description

Container for information about a game in the room's game list

Member Data Documentation

◆ closed

optional bool ServerInfo_Game::closed = 52

whether the game is closed. Closed games are finished and can't be interacted with

◆ creator_info

optional ServerInfo_User ServerInfo_Game::creator_info = 8

user that created the game

◆ description

optional string ServerInfo_Game::description = 4

user provided game description

◆ game_id

optional sint32 ServerInfo_Game::game_id = 3 [default = -1]

unique id of the game inside the room

◆ game_types

repeated sint32 ServerInfo_Game::game_types = 7

mask of server defined game types

◆ host_info

optional ServerInfo_User ServerInfo_Game::host_info = 53

the current host of the game, which may differ from the creator after a host transfer

◆ max_players

optional uint32 ServerInfo_Game::max_players = 6

players required to play

◆ only_buddies

optional bool ServerInfo_Game::only_buddies = 9

only buddies of the creator can join this game

◆ only_registered

optional bool ServerInfo_Game::only_registered = 10

only registered users can join this game

◆ player_count

optional uint32 ServerInfo_Game::player_count = 30

the current player count

◆ room_id

optional sint32 ServerInfo_Game::room_id = 2 [default = -1]

id of room the game is in

◆ server_id

optional sint32 ServerInfo_Game::server_id = 1 [default = -1]

id of server the game is on

◆ share_decklists_on_load

optional bool ServerInfo_Game::share_decklists_on_load = 15

decklists are sent to all players when loaded

◆ spectators_allowed

optional bool ServerInfo_Game::spectators_allowed = 11

if spectators are allowed to join

◆ spectators_can_chat

optional bool ServerInfo_Game::spectators_can_chat = 13

spectators can use cmdGameSay

◆ spectators_count

optional uint32 ServerInfo_Game::spectators_count = 31

the current spectator count

◆ spectators_need_password

optional bool ServerInfo_Game::spectators_need_password = 12

spectators need to enter the game

◆ spectators_omniscient

optional bool ServerInfo_Game::spectators_omniscient = 14

spectators receive private events for all players

◆ start_time

optional uint32 ServerInfo_Game::start_time = 51

time that the game started at

◆ started

optional bool ServerInfo_Game::started = 50

whether the game is currently ongoing

◆ with_password

optional bool ServerInfo_Game::with_password = 5

password required to join game


The documentation for this struct was generated from the following file: