mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
* Add option to share decklists on load. Took 1 hour 58 minutes Took 9 minutes Took 39 minutes * Lint. Took 14 minutes Took 2 minutes * Stuffs Took 39 minutes Took 4 seconds Took 43 minutes * Process local player first. Took 45 minutes * Consider if the setting is set on the game info first. Took 4 minutes * Save an indent level. Took 43 seconds * Don't commit logging config. Took 3 minutes * Remove a debug print. Took 10 seconds Took 7 seconds * Add another optional guard. Took 5 minutes * Hide the tab bar if only one (own deck) is visible. Took 9 minutes * Rename setting label for clarity Took 2 minutes * Capitalization. Took 3 minutes --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
54 lines
1.4 KiB
Protocol Buffer
54 lines
1.4 KiB
Protocol Buffer
syntax = "proto2";
|
|
message RoomCommand {
|
|
enum RoomCommandType {
|
|
LEAVE_ROOM = 1000;
|
|
ROOM_SAY = 1001;
|
|
CREATE_GAME = 1002;
|
|
JOIN_GAME = 1003;
|
|
}
|
|
extensions 100 to max;
|
|
}
|
|
|
|
message Command_LeaveRoom {
|
|
extend RoomCommand {
|
|
optional Command_LeaveRoom ext = 1000;
|
|
}
|
|
}
|
|
|
|
message Command_RoomSay {
|
|
extend RoomCommand {
|
|
optional Command_RoomSay ext = 1001;
|
|
}
|
|
optional string message = 1;
|
|
}
|
|
|
|
message Command_CreateGame {
|
|
extend RoomCommand {
|
|
optional Command_CreateGame ext = 1002;
|
|
}
|
|
optional string description = 1;
|
|
optional string password = 2;
|
|
optional uint32 max_players = 3;
|
|
optional bool only_buddies = 4;
|
|
optional bool only_registered = 5;
|
|
optional bool spectators_allowed = 6;
|
|
optional bool spectators_need_password = 7;
|
|
optional bool spectators_can_talk = 8;
|
|
optional bool spectators_see_everything = 9;
|
|
repeated uint32 game_type_ids = 10;
|
|
optional bool join_as_judge = 11;
|
|
optional bool join_as_spectator = 12;
|
|
optional uint32 starting_life_total = 13;
|
|
optional bool share_decklists_on_load = 14;
|
|
}
|
|
|
|
message Command_JoinGame {
|
|
extend RoomCommand {
|
|
optional Command_JoinGame ext = 1003;
|
|
}
|
|
optional sint32 game_id = 1 [default = -1];
|
|
optional string password = 2;
|
|
optional bool spectator = 3;
|
|
optional bool override_restrictions = 4;
|
|
optional bool join_as_judge = 5;
|
|
}
|