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