mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-27 17:13:54 -07:00
reasonable defaults
This commit is contained in:
parent
f115342e47
commit
c5509db251
20 changed files with 50 additions and 60 deletions
|
|
@ -4,10 +4,10 @@ message Command_AttachCard {
|
|||
optional Command_AttachCard ext = 1009;
|
||||
}
|
||||
optional string start_zone = 1;
|
||||
optional sint32 card_id = 2;
|
||||
optional sint32 target_player_id = 3;
|
||||
optional sint32 card_id = 2 [default = -1];
|
||||
optional sint32 target_player_id = 3 [default = -1];
|
||||
optional string target_zone = 4;
|
||||
optional sint32 target_card_id = 5;
|
||||
optional sint32 target_card_id = 5 [default = -1];
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -5,13 +5,11 @@ message Command_CreateArrow {
|
|||
extend GameCommand {
|
||||
optional Command_CreateArrow ext = 1011;
|
||||
}
|
||||
optional sint32 start_player_id = 1;
|
||||
optional sint32 start_player_id = 1 [default = -1];
|
||||
optional string start_zone = 2;
|
||||
optional sint32 start_card_id = 3;
|
||||
optional sint32 target_player_id = 4;
|
||||
optional sint32 start_card_id = 3 [default = -1];
|
||||
optional sint32 target_player_id = 4 [default = -1];
|
||||
optional string target_zone = 5;
|
||||
optional sint32 target_card_id = 6;
|
||||
optional sint32 target_card_id = 6 [default = -1];
|
||||
optional color arrow_color = 7;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,5 +4,5 @@ message Command_DeckDel {
|
|||
extend SessionCommand {
|
||||
optional Command_DeckDel ext = 1011;
|
||||
}
|
||||
optional uint32 deck_id = 1;
|
||||
optional sint32 deck_id = 1 [default = -1];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,6 @@ message Command_DeckDownload {
|
|||
extend SessionCommand {
|
||||
optional Command_DeckDownload ext = 1012;
|
||||
}
|
||||
optional uint32 deck_id = 1;
|
||||
optional sint32 deck_id = 1 [default = -1];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,5 +4,5 @@ message Command_DeckSelect {
|
|||
optional Command_DeckSelect ext = 1029;
|
||||
}
|
||||
optional string deck = 1;
|
||||
optional sint32 deck_id = 2;
|
||||
optional sint32 deck_id = 2 [default = -1];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,5 +3,5 @@ message Command_DelCounter {
|
|||
extend GameCommand {
|
||||
optional Command_DelCounter ext = 1021;
|
||||
}
|
||||
optional sint32 counter_id = 1;
|
||||
optional sint32 counter_id = 1 [default = -1];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,5 +3,5 @@ message Command_DeleteArrow {
|
|||
extend GameCommand {
|
||||
optional Command_DeleteArrow ext = 1012;
|
||||
}
|
||||
optional sint32 arrow_id = 1;
|
||||
optional sint32 arrow_id = 1 [default = -1];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ message Command_DumpZone {
|
|||
extend GameCommand {
|
||||
optional Command_DumpZone ext = 1024;
|
||||
}
|
||||
optional sint32 player_id = 1;
|
||||
optional sint32 player_id = 1 [default = -1];
|
||||
optional string zone_name = 2;
|
||||
optional sint32 number_cards = 3;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ message Command_FlipCard {
|
|||
optional Command_FlipCard ext = 1008;
|
||||
}
|
||||
optional string zone = 1;
|
||||
optional sint32 card_id = 2;
|
||||
optional sint32 card_id = 2 [default = -1];
|
||||
optional bool face_down = 3;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ message Command_IncCardCounter {
|
|||
optional Command_IncCardCounter ext = 1015;
|
||||
}
|
||||
optional string zone = 1;
|
||||
optional sint32 card_id = 2;
|
||||
optional sint32 counter_id = 3;
|
||||
optional sint32 card_id = 2 [default = -1];
|
||||
optional sint32 counter_id = 3 [default = -1];
|
||||
optional sint32 counter_delta = 4;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,6 @@ message Command_IncCounter {
|
|||
extend GameCommand {
|
||||
optional Command_IncCounter ext = 1018;
|
||||
}
|
||||
optional sint32 counter_id = 1;
|
||||
optional sint32 counter_id = 1 [default = -1];
|
||||
optional sint32 delta = 2;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import "game_commands.proto";
|
|||
message Command_KickFromGame {
|
||||
extend GameCommand {
|
||||
optional Command_KickFromGame ext = 1000;
|
||||
}
|
||||
optional sint32 player_id = 1;
|
||||
}
|
||||
optional sint32 player_id = 1 [default = -1];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import "game_commands.proto";
|
||||
message CardToMove {
|
||||
optional sint32 card_id = 1;
|
||||
optional sint32 card_id = 1 [default = -1];
|
||||
optional bool face_down = 2;
|
||||
optional string pt = 3;
|
||||
optional bool tapped = 4;
|
||||
|
|
@ -16,9 +16,9 @@ message Command_MoveCard {
|
|||
}
|
||||
optional string start_zone = 1;
|
||||
optional ListOfCardsToMove cards_to_move = 2;
|
||||
optional sint32 target_player_id = 3;
|
||||
optional sint32 target_player_id = 3 [default = -1];
|
||||
optional string target_zone = 4;
|
||||
optional sint32 x = 5;
|
||||
optional sint32 y = 6;
|
||||
optional sint32 x = 5 [default = -1];
|
||||
optional sint32 y = 6 [default = -1];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,6 @@ message Command_RevealCards {
|
|||
optional Command_RevealCards ext = 1026;
|
||||
}
|
||||
optional string zone_name = 1;
|
||||
optional sint32 card_id = 2;
|
||||
optional sint32 player_id = 3;
|
||||
optional sint32 card_id = 2 [default = -1];
|
||||
optional sint32 player_id = 3 [default = -1];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ message Command_SetCardAttr {
|
|||
optional Command_SetCardAttr ext = 1013;
|
||||
}
|
||||
optional string zone = 1;
|
||||
optional sint32 card_id = 2;
|
||||
optional sint32 card_id = 2 [default = -1];
|
||||
optional string attr_name = 3;
|
||||
optional string attr_value = 4;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ message Command_SetCardCounter {
|
|||
optional Command_SetCardCounter ext = 1014;
|
||||
}
|
||||
optional string zone = 1;
|
||||
optional sint32 card_id = 2;
|
||||
optional sint32 counter_id = 3;
|
||||
optional sint32 card_id = 2 [default = -1];
|
||||
optional sint32 counter_id = 3 [default = -1];
|
||||
optional sint32 counter_value = 4;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,6 @@ message Command_SetCounter {
|
|||
extend GameCommand {
|
||||
optional Command_SetCounter ext = 1020;
|
||||
}
|
||||
optional sint32 counter_id = 1;
|
||||
optional sint32 counter_id = 1 [default = -1];
|
||||
optional sint32 value = 2;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ message Command_JoinGame {
|
|||
extend RoomCommand {
|
||||
optional Command_JoinGame ext = 1003;
|
||||
}
|
||||
optional uint32 game_id = 1;
|
||||
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