Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
room_commands.proto
Go to the documentation of this file.
1syntax = "proto2";
2message RoomCommand {
4 LEAVE_ROOM = 1000;
5 ROOM_SAY = 1001;
6 CREATE_GAME = 1002;
7 JOIN_GAME = 1003;
8 }
9 extensions 100 to max;
10}
13 extend RoomCommand {
14 optional Command_LeaveRoom ext = 1000;
15 }
19 extend RoomCommand {
20 optional Command_RoomSay ext = 1001;
21 }
22 optional string message = 1;
23}
25// Create a new game in the room
27 extend RoomCommand {
28 optional Command_CreateGame ext = 1002;
29 }
31 // game description shown in game list
32 optional string description = 1;
34 // password users will have to provide to join the game
35 optional string password = 2;
37 // amount of players needed to play
38 optional uint32 max_players = 3;
40 // limits the game to only allowing users on the creator's buddy list to join
41 optional bool only_buddies = 4;
43 // limits the game to only allowing registered users
44 optional bool only_registered = 5;
46 // allows non players to view the game as spectator
47 optional bool spectators_allowed = 6;
49 // allows spectators to join without password if false
50 optional bool spectators_need_password = 7;
52 // allows spectators to use game say commands
53 optional bool spectators_can_talk = 8;
55 // allows spectators to see hands and hidden information
56 optional bool spectators_see_everything = 9;
58 // selection of game types as presented in the server's room configuration
59 repeated uint32 game_type_ids = 10;
61 // the creator of the game will join it as a judge
62 optional bool join_as_judge = 11;
64 // the creator of the game will join it as a spectator
65 optional bool join_as_spectator = 12;
67 // set the starting life total
68 optional uint32 starting_life_total = 13;
70 // share decklists with all players when selected
71 optional bool share_decklists_on_load = 14;
74message Command_JoinGame {
75 extend RoomCommand {
76 optional Command_JoinGame ext = 1003;
77 }
78 optional sint32 game_id = 1 [default = -1];
79 optional string password = 2;
80 optional bool spectator = 3;
81 optional bool override_restrictions = 4;
82 optional bool join_as_judge = 5;
83}
syntax
Definition admin_commands.proto:1
Definition room_commands.proto:25
optional Command_CreateGame ext
Definition room_commands.proto:26
Definition room_commands.proto:24
optional bool share_decklists_on_load
Definition room_commands.proto:69
optional bool spectators_can_talk
Definition room_commands.proto:51
optional uint32 starting_life_total
Definition room_commands.proto:66
optional string password
Definition room_commands.proto:33
optional uint32 max_players
Definition room_commands.proto:36
optional string description
Definition room_commands.proto:30
optional bool only_registered
Definition room_commands.proto:42
optional bool join_as_judge
Definition room_commands.proto:60
optional bool only_buddies
Definition room_commands.proto:39
optional bool spectators_allowed
Definition room_commands.proto:45
repeated uint32 game_type_ids
Definition room_commands.proto:57
optional bool join_as_spectator
Definition room_commands.proto:63
optional bool spectators_see_everything
Definition room_commands.proto:54
optional bool spectators_need_password
Definition room_commands.proto:48
Definition room_commands.proto:72
optional Command_JoinGame ext
Definition room_commands.proto:73
Definition room_commands.proto:71
optional string password
Definition room_commands.proto:76
optional bool join_as_judge
Definition room_commands.proto:79
optional sint32 game_id
Definition room_commands.proto:75
optional bool spectator
Definition room_commands.proto:77
optional bool override_restrictions
Definition room_commands.proto:78
Definition room_commands.proto:12
optional Command_LeaveRoom ext
Definition room_commands.proto:13
Definition room_commands.proto:11
Definition room_commands.proto:17
optional Command_RoomSay ext
Definition room_commands.proto:18
Definition room_commands.proto:16
Definition room_commands.proto:2
RoomCommandType
Definition room_commands.proto:3
@ JOIN_GAME
Definition room_commands.proto:7
@ ROOM_SAY
Definition room_commands.proto:5
@ LEAVE_ROOM
Definition room_commands.proto:4
@ CREATE_GAME
Definition room_commands.proto:6
extensions to max
Definition room_commands.proto:9