Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
serverinfo_game.proto
Go to the documentation of this file.
1syntax = "proto2";
3
4// Container for information about a game in the room's game list
6 // id of server the game is on
7 optional sint32 server_id = 1 [default = -1];
9 // id of room the game is in
10 optional sint32 room_id = 2 [default = -1];
12 // unique id of the game inside the room
13 optional sint32 game_id = 3 [default = -1];
15 // user provided game description
16 optional string description = 4;
18 // password required to join game
19 optional bool with_password = 5;
21 // players required to play
22 optional uint32 max_players = 6;
24 // mask of server defined game types
25 repeated sint32 game_types = 7;
27 // user that created the game
28 optional ServerInfo_User creator_info = 8;
30 // only buddies of the creator can join this game
31 optional bool only_buddies = 9;
33 // only registered users can join this game
34 optional bool only_registered = 10;
36 // if spectators are allowed to join
37 optional bool spectators_allowed = 11;
39 // spectators need to enter the game
40 optional bool spectators_need_password = 12;
42 // spectators can use cmdGameSay
43 optional bool spectators_can_chat = 13;
45 // spectators receive private events for all players
46 optional bool spectators_omniscient = 14;
48 // decklists are sent to all players when loaded
49 optional bool share_decklists_on_load = 15;
51 // the current player count
52 optional uint32 player_count = 30;
54 // the current spectator count
55 optional uint32 spectators_count = 31;
57 // whether the game is currently ongoing
58 optional bool started = 50;
60 // time that the game started at
61 optional uint32 start_time = 51;
63 // whether the game is closed. Closed games are finished and can't be interacted with
64 optional bool closed = 52;
66 // the current host of the game, which may differ from the creator after a host transfer
67 optional ServerInfo_User host_info = 53;
syntax
Definition admin_commands.proto:1
Definition serverinfo_game.proto:5
optional sint32 game_id
Definition serverinfo_game.proto:14
optional bool spectators_omniscient
Definition serverinfo_game.proto:47
optional ServerInfo_User host_info
Definition serverinfo_game.proto:68
optional sint32 room_id
Definition serverinfo_game.proto:11
optional uint32 start_time
Definition serverinfo_game.proto:62
optional bool with_password
Definition serverinfo_game.proto:20
optional string description
Definition serverinfo_game.proto:17
optional bool only_buddies
Definition serverinfo_game.proto:32
optional uint32 spectators_count
Definition serverinfo_game.proto:56
optional bool started
Definition serverinfo_game.proto:59
optional bool spectators_need_password
Definition serverinfo_game.proto:41
optional sint32 server_id
Definition serverinfo_game.proto:8
optional ServerInfo_User creator_info
Definition serverinfo_game.proto:29
optional uint32 max_players
Definition serverinfo_game.proto:23
repeated sint32 game_types
Definition serverinfo_game.proto:26
optional bool spectators_allowed
Definition serverinfo_game.proto:38
optional bool closed
Definition serverinfo_game.proto:65
optional bool only_registered
Definition serverinfo_game.proto:35
optional bool share_decklists_on_load
Definition serverinfo_game.proto:50
optional uint32 player_count
Definition serverinfo_game.proto:53
optional bool spectators_can_chat
Definition serverinfo_game.proto:44
Definition serverinfo_user.proto:2