mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-13 01:24:46 -07:00
Corrected proto warnings
This commit is contained in:
parent
7453385903
commit
cfebd53d5d
145 changed files with 1063 additions and 918 deletions
|
|
@ -1,48 +1,49 @@
|
|||
syntax = "proto2";
|
||||
message RoomCommand {
|
||||
enum RoomCommandType {
|
||||
LEAVE_ROOM = 1000;
|
||||
ROOM_SAY = 1001;
|
||||
CREATE_GAME = 1002;
|
||||
JOIN_GAME = 1003;
|
||||
}
|
||||
extensions 100 to max;
|
||||
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;
|
||||
}
|
||||
extend RoomCommand {
|
||||
optional Command_LeaveRoom ext = 1000;
|
||||
}
|
||||
}
|
||||
|
||||
message Command_RoomSay {
|
||||
extend RoomCommand {
|
||||
optional Command_RoomSay ext = 1001;
|
||||
}
|
||||
optional string message = 1;
|
||||
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;
|
||||
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;
|
||||
}
|
||||
|
||||
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;
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue