Corrected proto warnings
This commit is contained in:
parent
7453385903
commit
cfebd53d5d
145 changed files with 1063 additions and 918 deletions
|
@ -1,38 +1,39 @@
|
|||
syntax = "proto2";
|
||||
message AdminCommand {
|
||||
enum AdminCommandType {
|
||||
UPDATE_SERVER_MESSAGE = 1000;
|
||||
SHUTDOWN_SERVER = 1001;
|
||||
RELOAD_CONFIG = 1002;
|
||||
ADJUST_MOD = 1003;
|
||||
}
|
||||
extensions 100 to max;
|
||||
enum AdminCommandType {
|
||||
UPDATE_SERVER_MESSAGE = 1000;
|
||||
SHUTDOWN_SERVER = 1001;
|
||||
RELOAD_CONFIG = 1002;
|
||||
ADJUST_MOD = 1003;
|
||||
}
|
||||
extensions 100 to max;
|
||||
}
|
||||
|
||||
message Command_UpdateServerMessage {
|
||||
extend AdminCommand {
|
||||
optional Command_UpdateServerMessage ext = 1000;
|
||||
}
|
||||
extend AdminCommand {
|
||||
optional Command_UpdateServerMessage ext = 1000;
|
||||
}
|
||||
}
|
||||
|
||||
message Command_ShutdownServer {
|
||||
extend AdminCommand {
|
||||
optional Command_ShutdownServer ext = 1001;
|
||||
}
|
||||
optional string reason = 1;
|
||||
optional uint32 minutes = 2;
|
||||
extend AdminCommand {
|
||||
optional Command_ShutdownServer ext = 1001;
|
||||
}
|
||||
optional string reason = 1;
|
||||
optional uint32 minutes = 2;
|
||||
}
|
||||
|
||||
message Command_ReloadConfig {
|
||||
extend AdminCommand {
|
||||
optional Command_ReloadConfig ext = 1002;
|
||||
}
|
||||
extend AdminCommand {
|
||||
optional Command_ReloadConfig ext = 1002;
|
||||
}
|
||||
}
|
||||
|
||||
message Command_AdjustMod {
|
||||
extend AdminCommand {
|
||||
optional Command_AdjustMod ext = 1003;
|
||||
}
|
||||
required string user_name = 1;
|
||||
required bool should_be_mod = 2;
|
||||
extend AdminCommand {
|
||||
optional Command_AdjustMod ext = 1003;
|
||||
}
|
||||
required string user_name = 1;
|
||||
required bool should_be_mod = 2;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
syntax = "proto2";
|
||||
enum CardAttribute {
|
||||
AttrTapped = 1;
|
||||
AttrAttacking = 2;
|
||||
AttrFaceDown = 3;
|
||||
AttrColor = 4;
|
||||
AttrPT = 5;
|
||||
AttrAnnotation = 6;
|
||||
AttrDoesntUntap = 7;
|
||||
AttrTapped = 1;
|
||||
AttrAttacking = 2;
|
||||
AttrFaceDown = 3;
|
||||
AttrColor = 4;
|
||||
AttrPT = 5;
|
||||
AttrAnnotation = 6;
|
||||
AttrDoesntUntap = 7;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
syntax = "proto2";
|
||||
message color {
|
||||
optional uint32 r = 1;
|
||||
optional uint32 g = 2;
|
||||
optional uint32 b = 3;
|
||||
optional uint32 a = 4;
|
||||
optional uint32 r = 1;
|
||||
optional uint32 g = 2;
|
||||
optional uint32 b = 3;
|
||||
optional uint32 a = 4;
|
||||
}
|
|
@ -1,13 +1,14 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
message Command_AttachCard {
|
||||
extend GameCommand {
|
||||
optional Command_AttachCard ext = 1009;
|
||||
}
|
||||
optional string start_zone = 1;
|
||||
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 [default = -1];
|
||||
extend GameCommand {
|
||||
optional Command_AttachCard ext = 1009;
|
||||
}
|
||||
optional string start_zone = 1;
|
||||
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 [default = -1];
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
|
||||
message Command_ChangeZoneProperties {
|
||||
extend GameCommand {
|
||||
optional Command_ChangeZoneProperties ext = 1031;
|
||||
}
|
||||
optional string zone_name = 1;
|
||||
|
||||
optional bool always_reveal_top_card = 10;
|
||||
extend GameCommand {
|
||||
optional Command_ChangeZoneProperties ext = 1031;
|
||||
}
|
||||
optional string zone_name = 1;
|
||||
|
||||
optional bool always_reveal_top_card = 10;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
message Command_Concede {
|
||||
extend GameCommand {
|
||||
optional Command_Concede ext = 1017;
|
||||
}
|
||||
extend GameCommand {
|
||||
optional Command_Concede ext = 1017;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,15 +1,16 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
import "color.proto";
|
||||
|
||||
message Command_CreateArrow {
|
||||
extend GameCommand {
|
||||
optional Command_CreateArrow ext = 1011;
|
||||
}
|
||||
optional sint32 start_player_id = 1 [default = -1];
|
||||
optional string start_zone = 2;
|
||||
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 [default = -1];
|
||||
optional color arrow_color = 7;
|
||||
extend GameCommand {
|
||||
optional Command_CreateArrow ext = 1011;
|
||||
}
|
||||
optional sint32 start_player_id = 1 [default = -1];
|
||||
optional string start_zone = 2;
|
||||
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 [default = -1];
|
||||
optional color arrow_color = 7;
|
||||
}
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
import "color.proto";
|
||||
|
||||
message Command_CreateCounter {
|
||||
extend GameCommand {
|
||||
optional Command_CreateCounter ext = 1019;
|
||||
}
|
||||
optional string counter_name = 1;
|
||||
optional color counter_color = 2;
|
||||
optional uint32 radius = 3;
|
||||
optional sint32 value = 4;
|
||||
extend GameCommand {
|
||||
optional Command_CreateCounter ext = 1019;
|
||||
}
|
||||
optional string counter_name = 1;
|
||||
optional color counter_color = 2;
|
||||
optional uint32 radius = 3;
|
||||
optional sint32 value = 4;
|
||||
}
|
||||
|
|
|
@ -1,18 +1,19 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
message Command_CreateToken {
|
||||
extend GameCommand {
|
||||
optional Command_CreateToken ext = 1010;
|
||||
}
|
||||
optional string zone = 1;
|
||||
optional string card_name = 2;
|
||||
optional string color = 3;
|
||||
optional string pt = 4;
|
||||
optional string annotation = 5;
|
||||
optional bool destroy_on_zone_change = 6;
|
||||
optional sint32 x = 7;
|
||||
optional sint32 y = 8;
|
||||
optional string target_zone = 9;
|
||||
optional sint32 target_card_id = 10 [default = -1];
|
||||
extend GameCommand {
|
||||
optional Command_CreateToken ext = 1010;
|
||||
}
|
||||
optional string zone = 1;
|
||||
optional string card_name = 2;
|
||||
optional string color = 3;
|
||||
optional string pt = 4;
|
||||
optional string annotation = 5;
|
||||
optional bool destroy_on_zone_change = 6;
|
||||
optional sint32 x = 7;
|
||||
optional sint32 y = 8;
|
||||
optional string target_zone = 9;
|
||||
optional sint32 target_card_id = 10 [default = -1];
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
syntax = "proto2";
|
||||
import "session_commands.proto";
|
||||
|
||||
message Command_DeckDel {
|
||||
extend SessionCommand {
|
||||
optional Command_DeckDel ext = 1011;
|
||||
}
|
||||
optional sint32 deck_id = 1 [default = -1];
|
||||
extend SessionCommand {
|
||||
optional Command_DeckDel ext = 1011;
|
||||
}
|
||||
optional sint32 deck_id = 1 [default = -1];
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
syntax = "proto2";
|
||||
import "session_commands.proto";
|
||||
|
||||
message Command_DeckDelDir {
|
||||
extend SessionCommand {
|
||||
optional Command_DeckDelDir ext = 1010;
|
||||
}
|
||||
optional string path = 1;
|
||||
extend SessionCommand {
|
||||
optional Command_DeckDelDir ext = 1010;
|
||||
}
|
||||
optional string path = 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
syntax = "proto2";
|
||||
import "session_commands.proto";
|
||||
|
||||
message Command_DeckDownload {
|
||||
extend SessionCommand {
|
||||
optional Command_DeckDownload ext = 1012;
|
||||
}
|
||||
optional sint32 deck_id = 1 [default = -1];
|
||||
extend SessionCommand {
|
||||
optional Command_DeckDownload ext = 1012;
|
||||
}
|
||||
optional sint32 deck_id = 1 [default = -1];
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
syntax = "proto2";
|
||||
import "session_commands.proto";
|
||||
|
||||
message Command_DeckList {
|
||||
extend SessionCommand {
|
||||
optional Command_DeckList ext = 1008;
|
||||
}
|
||||
extend SessionCommand {
|
||||
optional Command_DeckList ext = 1008;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
syntax = "proto2";
|
||||
import "session_commands.proto";
|
||||
|
||||
message Command_DeckNewDir {
|
||||
extend SessionCommand {
|
||||
optional Command_DeckNewDir ext = 1009;
|
||||
}
|
||||
optional string path = 1;
|
||||
optional string dir_name = 2;
|
||||
extend SessionCommand {
|
||||
optional Command_DeckNewDir ext = 1009;
|
||||
}
|
||||
optional string path = 1;
|
||||
optional string dir_name = 2;
|
||||
}
|
||||
|
|
@ -1,8 +1,9 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
message Command_DeckSelect {
|
||||
extend GameCommand {
|
||||
optional Command_DeckSelect ext = 1029;
|
||||
}
|
||||
optional string deck = 1;
|
||||
optional sint32 deck_id = 2 [default = -1];
|
||||
extend GameCommand {
|
||||
optional Command_DeckSelect ext = 1029;
|
||||
}
|
||||
optional string deck = 1;
|
||||
optional sint32 deck_id = 2 [default = -1];
|
||||
}
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
syntax = "proto2";
|
||||
import "session_commands.proto";
|
||||
|
||||
message Command_DeckUpload {
|
||||
extend SessionCommand {
|
||||
optional Command_DeckUpload ext = 1013;
|
||||
}
|
||||
optional string path = 1; // to upload a new deck
|
||||
optional uint32 deck_id = 2; // to replace an existing deck
|
||||
optional string deck_list = 3;
|
||||
extend SessionCommand {
|
||||
optional Command_DeckUpload ext = 1013;
|
||||
}
|
||||
optional string path = 1; // to upload a new deck
|
||||
optional uint32 deck_id = 2; // to replace an existing deck
|
||||
optional string deck_list = 3;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
message Command_DelCounter {
|
||||
extend GameCommand {
|
||||
optional Command_DelCounter ext = 1021;
|
||||
}
|
||||
optional sint32 counter_id = 1 [default = -1];
|
||||
extend GameCommand {
|
||||
optional Command_DelCounter ext = 1021;
|
||||
}
|
||||
optional sint32 counter_id = 1 [default = -1];
|
||||
}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
message Command_DeleteArrow {
|
||||
extend GameCommand {
|
||||
optional Command_DeleteArrow ext = 1012;
|
||||
}
|
||||
optional sint32 arrow_id = 1 [default = -1];
|
||||
extend GameCommand {
|
||||
optional Command_DeleteArrow ext = 1012;
|
||||
}
|
||||
optional sint32 arrow_id = 1 [default = -1];
|
||||
}
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
message Command_DrawCards {
|
||||
extend GameCommand {
|
||||
optional Command_DrawCards ext = 1006;
|
||||
}
|
||||
optional uint32 number = 1;
|
||||
extend GameCommand {
|
||||
optional Command_DrawCards ext = 1006;
|
||||
}
|
||||
optional uint32 number = 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
message Command_DumpZone {
|
||||
extend GameCommand {
|
||||
optional Command_DumpZone ext = 1024;
|
||||
}
|
||||
optional sint32 player_id = 1 [default = -1];
|
||||
optional string zone_name = 2;
|
||||
optional sint32 number_cards = 3;
|
||||
extend GameCommand {
|
||||
optional Command_DumpZone ext = 1024;
|
||||
}
|
||||
optional sint32 player_id = 1 [default = -1];
|
||||
optional string zone_name = 2;
|
||||
optional sint32 number_cards = 3;
|
||||
}
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
message Command_FlipCard {
|
||||
extend GameCommand {
|
||||
optional Command_FlipCard ext = 1008;
|
||||
}
|
||||
optional string zone = 1;
|
||||
optional sint32 card_id = 2 [default = -1];
|
||||
optional bool face_down = 3;
|
||||
extend GameCommand {
|
||||
optional Command_FlipCard ext = 1008;
|
||||
}
|
||||
optional string zone = 1;
|
||||
optional sint32 card_id = 2 [default = -1];
|
||||
optional bool face_down = 3;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
message Command_GameSay {
|
||||
extend GameCommand {
|
||||
optional Command_GameSay ext = 1002;
|
||||
}
|
||||
optional string message = 1;
|
||||
extend GameCommand {
|
||||
optional Command_GameSay ext = 1002;
|
||||
}
|
||||
optional string message = 1;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
message Command_IncCardCounter {
|
||||
extend GameCommand {
|
||||
optional Command_IncCardCounter ext = 1015;
|
||||
}
|
||||
optional string zone = 1;
|
||||
optional sint32 card_id = 2 [default = -1];
|
||||
optional sint32 counter_id = 3 [default = -1];
|
||||
optional sint32 counter_delta = 4;
|
||||
extend GameCommand {
|
||||
optional Command_IncCardCounter ext = 1015;
|
||||
}
|
||||
optional string zone = 1;
|
||||
optional sint32 card_id = 2 [default = -1];
|
||||
optional sint32 counter_id = 3 [default = -1];
|
||||
optional sint32 counter_delta = 4;
|
||||
}
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
message Command_IncCounter {
|
||||
extend GameCommand {
|
||||
optional Command_IncCounter ext = 1018;
|
||||
}
|
||||
optional sint32 counter_id = 1 [default = -1];
|
||||
optional sint32 delta = 2;
|
||||
extend GameCommand {
|
||||
optional Command_IncCounter ext = 1018;
|
||||
}
|
||||
optional sint32 counter_id = 1 [default = -1];
|
||||
optional sint32 delta = 2;
|
||||
}
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
message Command_KickFromGame {
|
||||
extend GameCommand {
|
||||
optional Command_KickFromGame ext = 1000;
|
||||
extend GameCommand {
|
||||
optional Command_KickFromGame ext = 1000;
|
||||
}
|
||||
optional sint32 player_id = 1 [default = -1];
|
||||
optional sint32 player_id = 1 [default = -1];
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
message Command_LeaveGame {
|
||||
extend GameCommand {
|
||||
optional Command_LeaveGame ext = 1001;
|
||||
}
|
||||
extend GameCommand {
|
||||
optional Command_LeaveGame ext = 1001;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,25 +1,26 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
message CardToMove {
|
||||
optional sint32 card_id = 1 [default = -1];
|
||||
optional bool face_down = 2;
|
||||
optional string pt = 3;
|
||||
optional bool tapped = 4;
|
||||
optional sint32 card_id = 1 [default = -1];
|
||||
optional bool face_down = 2;
|
||||
optional string pt = 3;
|
||||
optional bool tapped = 4;
|
||||
}
|
||||
|
||||
message ListOfCardsToMove {
|
||||
repeated CardToMove card = 1;
|
||||
repeated CardToMove card = 1;
|
||||
}
|
||||
|
||||
message Command_MoveCard {
|
||||
extend GameCommand {
|
||||
optional Command_MoveCard ext = 1027;
|
||||
}
|
||||
optional sint32 start_player_id = 1 [default = -1];
|
||||
optional string start_zone = 2;
|
||||
optional ListOfCardsToMove cards_to_move = 3;
|
||||
optional sint32 target_player_id = 4 [default = -1];
|
||||
optional string target_zone = 5;
|
||||
optional sint32 x = 6 [default = -1];
|
||||
optional sint32 y = 7 [default = -1];
|
||||
extend GameCommand {
|
||||
optional Command_MoveCard ext = 1027;
|
||||
}
|
||||
optional sint32 start_player_id = 1 [default = -1];
|
||||
optional string start_zone = 2;
|
||||
optional ListOfCardsToMove cards_to_move = 3;
|
||||
optional sint32 target_player_id = 4 [default = -1];
|
||||
optional string target_zone = 5;
|
||||
optional sint32 x = 6 [default = -1];
|
||||
optional sint32 y = 7 [default = -1];
|
||||
}
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
message Command_Mulligan {
|
||||
extend GameCommand {
|
||||
optional Command_Mulligan ext = 1004;
|
||||
}
|
||||
extend GameCommand {
|
||||
optional Command_Mulligan ext = 1004;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
message Command_NextTurn {
|
||||
extend GameCommand {
|
||||
optional Command_NextTurn ext = 1022;
|
||||
}
|
||||
extend GameCommand {
|
||||
optional Command_NextTurn ext = 1022;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
message Command_ReadyStart {
|
||||
extend GameCommand {
|
||||
optional Command_ReadyStart ext = 1016;
|
||||
}
|
||||
optional bool ready = 1;
|
||||
extend GameCommand {
|
||||
optional Command_ReadyStart ext = 1016;
|
||||
}
|
||||
optional bool ready = 1;
|
||||
}
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
syntax = "proto2";
|
||||
import "session_commands.proto";
|
||||
|
||||
message Command_ReplayDeleteMatch {
|
||||
extend SessionCommand {
|
||||
optional Command_ReplayDeleteMatch ext = 1103;
|
||||
}
|
||||
optional sint32 game_id = 1 [default = -1];
|
||||
extend SessionCommand {
|
||||
optional Command_ReplayDeleteMatch ext = 1103;
|
||||
}
|
||||
optional sint32 game_id = 1 [default = -1];
|
||||
}
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
syntax = "proto2";
|
||||
import "session_commands.proto";
|
||||
|
||||
message Command_ReplayDownload {
|
||||
extend SessionCommand {
|
||||
optional Command_ReplayDownload ext = 1101;
|
||||
}
|
||||
optional sint32 replay_id = 1 [default = -1];
|
||||
extend SessionCommand {
|
||||
optional Command_ReplayDownload ext = 1101;
|
||||
}
|
||||
optional sint32 replay_id = 1 [default = -1];
|
||||
}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
syntax = "proto2";
|
||||
import "session_commands.proto";
|
||||
|
||||
message Command_ReplayList {
|
||||
extend SessionCommand {
|
||||
optional Command_ReplayList ext = 1100;
|
||||
}
|
||||
extend SessionCommand {
|
||||
optional Command_ReplayList ext = 1100;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
syntax = "proto2";
|
||||
import "session_commands.proto";
|
||||
|
||||
message Command_ReplayModifyMatch {
|
||||
extend SessionCommand {
|
||||
optional Command_ReplayModifyMatch ext = 1102;
|
||||
}
|
||||
optional sint32 game_id = 1 [default = -1];
|
||||
optional bool do_not_hide = 2;
|
||||
extend SessionCommand {
|
||||
optional Command_ReplayModifyMatch ext = 1102;
|
||||
}
|
||||
optional sint32 game_id = 1 [default = -1];
|
||||
optional bool do_not_hide = 2;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
message Command_RevealCards {
|
||||
extend GameCommand {
|
||||
optional Command_RevealCards ext = 1026;
|
||||
}
|
||||
optional string zone_name = 1;
|
||||
optional sint32 card_id = 2 [default = -1];
|
||||
optional sint32 player_id = 3 [default = -1];
|
||||
optional bool grant_write_access = 4;
|
||||
extend GameCommand {
|
||||
optional Command_RevealCards ext = 1026;
|
||||
}
|
||||
optional string zone_name = 1;
|
||||
optional sint32 card_id = 2 [default = -1];
|
||||
optional sint32 player_id = 3 [default = -1];
|
||||
optional bool grant_write_access = 4;
|
||||
optional sint32 top_cards = 5 [default = -1];
|
||||
}
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
message Command_RollDie {
|
||||
extend GameCommand {
|
||||
optional Command_RollDie ext = 1005;
|
||||
}
|
||||
optional uint32 sides = 1;
|
||||
extend GameCommand {
|
||||
optional Command_RollDie ext = 1005;
|
||||
}
|
||||
optional uint32 sides = 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
message Command_SetActivePhase {
|
||||
extend GameCommand {
|
||||
optional Command_SetActivePhase ext = 1023;
|
||||
}
|
||||
optional uint32 phase = 1;
|
||||
extend GameCommand {
|
||||
optional Command_SetActivePhase ext = 1023;
|
||||
}
|
||||
optional uint32 phase = 1;
|
||||
}
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
import "card_attributes.proto";
|
||||
|
||||
message Command_SetCardAttr {
|
||||
extend GameCommand {
|
||||
optional Command_SetCardAttr ext = 1013;
|
||||
}
|
||||
optional string zone = 1;
|
||||
optional sint32 card_id = 2 [default = -1];
|
||||
optional CardAttribute attribute = 3;
|
||||
optional string attr_value = 4;
|
||||
extend GameCommand {
|
||||
optional Command_SetCardAttr ext = 1013;
|
||||
}
|
||||
optional string zone = 1;
|
||||
optional sint32 card_id = 2 [default = -1];
|
||||
optional CardAttribute attribute = 3;
|
||||
optional string attr_value = 4;
|
||||
}
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
message Command_SetCardCounter {
|
||||
extend GameCommand {
|
||||
optional Command_SetCardCounter ext = 1014;
|
||||
}
|
||||
optional string zone = 1;
|
||||
optional sint32 card_id = 2 [default = -1];
|
||||
optional sint32 counter_id = 3 [default = -1];
|
||||
optional sint32 counter_value = 4;
|
||||
extend GameCommand {
|
||||
optional Command_SetCardCounter ext = 1014;
|
||||
}
|
||||
optional string zone = 1;
|
||||
optional sint32 card_id = 2 [default = -1];
|
||||
optional sint32 counter_id = 3 [default = -1];
|
||||
optional sint32 counter_value = 4;
|
||||
}
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
message Command_SetCounter {
|
||||
extend GameCommand {
|
||||
optional Command_SetCounter ext = 1020;
|
||||
}
|
||||
optional sint32 counter_id = 1 [default = -1];
|
||||
optional sint32 value = 2;
|
||||
extend GameCommand {
|
||||
optional Command_SetCounter ext = 1020;
|
||||
}
|
||||
optional sint32 counter_id = 1 [default = -1];
|
||||
optional sint32 value = 2;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import "game_commands.proto";
|
||||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
message Command_SetSideboardLock {
|
||||
extend GameCommand {
|
||||
optional Command_SetSideboardLock ext = 1030;
|
||||
}
|
||||
optional bool locked = 1;
|
||||
extend GameCommand {
|
||||
optional Command_SetSideboardLock ext = 1030;
|
||||
}
|
||||
optional bool locked = 1;
|
||||
}
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
import "move_card_to_zone.proto";
|
||||
|
||||
message Command_SetSideboardPlan {
|
||||
extend GameCommand {
|
||||
optional Command_SetSideboardPlan ext = 1028;
|
||||
}
|
||||
repeated MoveCard_ToZone move_list = 1;
|
||||
extend GameCommand {
|
||||
optional Command_SetSideboardPlan ext = 1028;
|
||||
}
|
||||
repeated MoveCard_ToZone move_list = 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
message Command_Shuffle {
|
||||
extend GameCommand {
|
||||
optional Command_Shuffle ext = 1003;
|
||||
}
|
||||
extend GameCommand {
|
||||
optional Command_Shuffle ext = 1003;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
message Command_StopDumpZone {
|
||||
extend GameCommand {
|
||||
optional Command_StopDumpZone ext = 1025;
|
||||
}
|
||||
optional sint32 player_id = 1;
|
||||
optional string zone_name = 2;
|
||||
extend GameCommand {
|
||||
optional Command_StopDumpZone ext = 1025;
|
||||
}
|
||||
optional sint32 player_id = 1;
|
||||
optional string zone_name = 2;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
syntax = "proto2";
|
||||
import "game_commands.proto";
|
||||
message Command_UndoDraw {
|
||||
extend GameCommand {
|
||||
optional Command_UndoDraw ext = 1007;
|
||||
}
|
||||
extend GameCommand {
|
||||
optional Command_UndoDraw ext = 1007;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
syntax = "proto2";
|
||||
import "session_commands.proto";
|
||||
import "game_commands.proto";
|
||||
import "room_commands.proto";
|
||||
|
@ -5,14 +6,14 @@ import "moderator_commands.proto";
|
|||
import "admin_commands.proto";
|
||||
|
||||
message CommandContainer {
|
||||
optional uint64 cmd_id = 1;
|
||||
|
||||
optional uint32 game_id = 10;
|
||||
optional uint32 room_id = 20;
|
||||
|
||||
repeated SessionCommand session_command = 100;
|
||||
repeated GameCommand game_command = 101;
|
||||
repeated RoomCommand room_command = 102;
|
||||
repeated ModeratorCommand moderator_command = 103;
|
||||
repeated AdminCommand admin_command = 104;
|
||||
optional uint64 cmd_id = 1;
|
||||
|
||||
optional uint32 game_id = 10;
|
||||
optional uint32 room_id = 20;
|
||||
|
||||
repeated SessionCommand session_command = 100;
|
||||
repeated GameCommand game_command = 101;
|
||||
repeated RoomCommand room_command = 102;
|
||||
repeated ModeratorCommand moderator_command = 103;
|
||||
repeated AdminCommand admin_command = 104;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
syntax = "proto2";
|
||||
import "game_event_context.proto";
|
||||
|
||||
message Context_Concede {
|
||||
extend GameEventContext {
|
||||
optional Context_Concede ext = 1001;
|
||||
}
|
||||
extend GameEventContext {
|
||||
optional Context_Concede ext = 1001;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
syntax = "proto2";
|
||||
import "game_event_context.proto";
|
||||
|
||||
message Context_ConnectionStateChanged {
|
||||
extend GameEventContext {
|
||||
optional Context_ConnectionStateChanged ext = 1007;
|
||||
}
|
||||
extend GameEventContext {
|
||||
optional Context_ConnectionStateChanged ext = 1007;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
syntax = "proto2";
|
||||
import "game_event_context.proto";
|
||||
|
||||
message Context_DeckSelect {
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
syntax = "proto2";
|
||||
import "game_event_context.proto";
|
||||
|
||||
message Context_MoveCard {
|
||||
extend GameEventContext {
|
||||
optional Context_MoveCard ext = 1004;
|
||||
}
|
||||
extend GameEventContext {
|
||||
optional Context_MoveCard ext = 1004;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
syntax = "proto2";
|
||||
import "game_event_context.proto";
|
||||
|
||||
message Context_Mulligan {
|
||||
extend GameEventContext {
|
||||
optional Context_Mulligan ext = 1005;
|
||||
}
|
||||
optional uint32 number = 1;
|
||||
extend GameEventContext {
|
||||
optional Context_Mulligan ext = 1005;
|
||||
}
|
||||
optional uint32 number = 1;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
syntax = "proto2";
|
||||
import "game_event_context.proto";
|
||||
|
||||
message Context_PingChanged {
|
||||
extend GameEventContext {
|
||||
optional Context_PingChanged ext = 1006;
|
||||
}
|
||||
extend GameEventContext {
|
||||
optional Context_PingChanged ext = 1006;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
syntax = "proto2";
|
||||
import "game_event_context.proto";
|
||||
|
||||
message Context_ReadyStart {
|
||||
extend GameEventContext {
|
||||
optional Context_ReadyStart ext = 1000;
|
||||
}
|
||||
extend GameEventContext {
|
||||
optional Context_ReadyStart ext = 1000;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
syntax = "proto2";
|
||||
import "game_event_context.proto";
|
||||
|
||||
message Context_SetSideboardLock {
|
||||
extend GameEventContext {
|
||||
optional Context_SetSideboardLock ext = 1008;
|
||||
}
|
||||
extend GameEventContext {
|
||||
optional Context_SetSideboardLock ext = 1008;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
syntax = "proto2";
|
||||
import "game_event_context.proto";
|
||||
|
||||
message Context_UndoDraw {
|
||||
extend GameEventContext {
|
||||
optional Context_UndoDraw ext = 1003;
|
||||
}
|
||||
extend GameEventContext {
|
||||
optional Context_UndoDraw ext = 1003;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
syntax = "proto2";
|
||||
import "session_event.proto";
|
||||
import "serverinfo_user.proto";
|
||||
|
||||
message Event_AddToList {
|
||||
extend SessionEvent {
|
||||
optional Event_AddToList ext = 1005;
|
||||
}
|
||||
optional string list_name = 1;
|
||||
optional ServerInfo_User user_info = 2;
|
||||
extend SessionEvent {
|
||||
optional Event_AddToList ext = 1005;
|
||||
}
|
||||
optional string list_name = 1;
|
||||
optional ServerInfo_User user_info = 2;
|
||||
}
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
|
||||
message Event_AttachCard {
|
||||
extend GameEvent {
|
||||
optional Event_AttachCard ext = 2012;
|
||||
}
|
||||
optional string start_zone = 1;
|
||||
optional sint32 card_id = 2;
|
||||
optional sint32 target_player_id = 3;
|
||||
optional string target_zone = 4;
|
||||
optional sint32 target_card_id = 5;
|
||||
extend GameEvent {
|
||||
optional Event_AttachCard ext = 2012;
|
||||
}
|
||||
optional string start_zone = 1;
|
||||
optional sint32 card_id = 2;
|
||||
optional sint32 target_player_id = 3;
|
||||
optional string target_zone = 4;
|
||||
optional sint32 target_card_id = 5;
|
||||
}
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
|
||||
message Event_ChangeZoneProperties {
|
||||
extend GameEvent {
|
||||
optional Event_ChangeZoneProperties ext = 2020;
|
||||
}
|
||||
optional string zone_name = 1;
|
||||
|
||||
optional bool always_reveal_top_card = 10;
|
||||
extend GameEvent {
|
||||
optional Event_ChangeZoneProperties ext = 2020;
|
||||
}
|
||||
optional string zone_name = 1;
|
||||
|
||||
optional bool always_reveal_top_card = 10;
|
||||
}
|
||||
|
|
|
@ -1,20 +1,21 @@
|
|||
syntax = "proto2";
|
||||
import "session_event.proto";
|
||||
|
||||
message Event_ConnectionClosed {
|
||||
extend SessionEvent {
|
||||
optional Event_ConnectionClosed ext = 1002;
|
||||
}
|
||||
enum CloseReason {
|
||||
OTHER = 1;
|
||||
SERVER_SHUTDOWN = 2;
|
||||
TOO_MANY_CONNECTIONS = 3;
|
||||
BANNED = 4;
|
||||
USERNAMEINVALID = 5;
|
||||
USER_LIMIT_REACHED = 6;
|
||||
DEMOTED = 7;
|
||||
LOGGEDINELSEWERE = 8;
|
||||
}
|
||||
optional CloseReason reason = 1;
|
||||
optional string reason_str = 2;
|
||||
optional uint32 end_time = 3;
|
||||
extend SessionEvent {
|
||||
optional Event_ConnectionClosed ext = 1002;
|
||||
}
|
||||
enum CloseReason {
|
||||
OTHER = 1;
|
||||
SERVER_SHUTDOWN = 2;
|
||||
TOO_MANY_CONNECTIONS = 3;
|
||||
BANNED = 4;
|
||||
USERNAMEINVALID = 5;
|
||||
USER_LIMIT_REACHED = 6;
|
||||
DEMOTED = 7;
|
||||
LOGGEDINELSEWERE = 8;
|
||||
}
|
||||
optional CloseReason reason = 1;
|
||||
optional string reason_str = 2;
|
||||
optional uint32 end_time = 3;
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
import "serverinfo_arrow.proto";
|
||||
|
||||
message Event_CreateArrow {
|
||||
extend GameEvent {
|
||||
optional Event_CreateArrow ext = 2000;
|
||||
}
|
||||
optional ServerInfo_Arrow arrow_info = 1;
|
||||
extend GameEvent {
|
||||
optional Event_CreateArrow ext = 2000;
|
||||
}
|
||||
optional ServerInfo_Arrow arrow_info = 1;
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
import "serverinfo_counter.proto";
|
||||
|
||||
message Event_CreateCounter {
|
||||
extend GameEvent {
|
||||
optional Event_CreateCounter ext = 2002;
|
||||
}
|
||||
optional ServerInfo_Counter counter_info = 1;
|
||||
extend GameEvent {
|
||||
optional Event_CreateCounter ext = 2002;
|
||||
}
|
||||
optional ServerInfo_Counter counter_info = 1;
|
||||
}
|
||||
|
|
|
@ -1,16 +1,17 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
|
||||
message Event_CreateToken {
|
||||
extend GameEvent {
|
||||
optional Event_CreateToken ext = 2013;
|
||||
}
|
||||
optional string zone_name = 1;
|
||||
optional sint32 card_id = 2;
|
||||
optional string card_name = 3;
|
||||
optional string color = 4;
|
||||
optional string pt = 5;
|
||||
optional string annotation = 6;
|
||||
optional bool destroy_on_zone_change = 7;
|
||||
optional sint32 x = 8;
|
||||
optional sint32 y = 9;
|
||||
extend GameEvent {
|
||||
optional Event_CreateToken ext = 2013;
|
||||
}
|
||||
optional string zone_name = 1;
|
||||
optional sint32 card_id = 2;
|
||||
optional string card_name = 3;
|
||||
optional string color = 4;
|
||||
optional string pt = 5;
|
||||
optional string annotation = 6;
|
||||
optional bool destroy_on_zone_change = 7;
|
||||
optional sint32 x = 8;
|
||||
optional sint32 y = 9;
|
||||
}
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
|
||||
message Event_DelCounter {
|
||||
extend GameEvent {
|
||||
optional Event_DelCounter ext = 2004;
|
||||
}
|
||||
optional sint32 counter_id = 1;
|
||||
extend GameEvent {
|
||||
optional Event_DelCounter ext = 2004;
|
||||
}
|
||||
optional sint32 counter_id = 1;
|
||||
}
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
|
||||
message Event_DeleteArrow {
|
||||
extend GameEvent {
|
||||
optional Event_DeleteArrow ext = 2001;
|
||||
}
|
||||
optional sint32 arrow_id = 1;
|
||||
extend GameEvent {
|
||||
optional Event_DeleteArrow ext = 2001;
|
||||
}
|
||||
optional sint32 arrow_id = 1;
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
|
||||
message Event_DestroyCard {
|
||||
extend GameEvent {
|
||||
optional Event_DestroyCard ext = 2011;
|
||||
}
|
||||
optional string zone_name = 1;
|
||||
optional uint32 card_id = 2;
|
||||
extend GameEvent {
|
||||
optional Event_DestroyCard ext = 2011;
|
||||
}
|
||||
optional string zone_name = 1;
|
||||
optional uint32 card_id = 2;
|
||||
}
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
import "serverinfo_card.proto";
|
||||
|
||||
message Event_DrawCards {
|
||||
extend GameEvent {
|
||||
optional Event_DrawCards ext = 2005;
|
||||
}
|
||||
optional sint32 number = 1;
|
||||
repeated ServerInfo_Card cards = 2;
|
||||
extend GameEvent {
|
||||
optional Event_DrawCards ext = 2005;
|
||||
}
|
||||
optional sint32 number = 1;
|
||||
repeated ServerInfo_Card cards = 2;
|
||||
}
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
|
||||
message Event_DumpZone {
|
||||
extend GameEvent {
|
||||
optional Event_DumpZone ext = 2018;
|
||||
}
|
||||
optional sint32 zone_owner_id = 1;
|
||||
optional string zone_name = 2;
|
||||
optional sint32 number_cards = 3;
|
||||
extend GameEvent {
|
||||
optional Event_DumpZone ext = 2018;
|
||||
}
|
||||
optional sint32 zone_owner_id = 1;
|
||||
optional string zone_name = 2;
|
||||
optional sint32 number_cards = 3;
|
||||
}
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
|
||||
message Event_FlipCard {
|
||||
extend GameEvent {
|
||||
optional Event_FlipCard ext = 2010;
|
||||
}
|
||||
optional string zone_name = 1;
|
||||
optional sint32 card_id = 2;
|
||||
optional string card_name = 3;
|
||||
optional bool face_down = 4;
|
||||
extend GameEvent {
|
||||
optional Event_FlipCard ext = 2010;
|
||||
}
|
||||
optional string zone_name = 1;
|
||||
optional sint32 card_id = 2;
|
||||
optional string card_name = 3;
|
||||
optional bool face_down = 4;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
|
||||
message Event_GameClosed {
|
||||
extend GameEvent {
|
||||
optional Event_GameClosed ext = 1002;
|
||||
}
|
||||
extend GameEvent {
|
||||
optional Event_GameClosed ext = 1002;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
|
||||
message Event_GameHostChanged {
|
||||
extend GameEvent {
|
||||
optional Event_GameHostChanged ext = 1003;
|
||||
}
|
||||
extend GameEvent {
|
||||
optional Event_GameHostChanged ext = 1003;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,15 +1,16 @@
|
|||
syntax = "proto2";
|
||||
import "session_event.proto";
|
||||
import "serverinfo_game.proto";
|
||||
import "serverinfo_gametype.proto";
|
||||
|
||||
message Event_GameJoined {
|
||||
extend SessionEvent {
|
||||
optional Event_GameJoined ext = 1009;
|
||||
}
|
||||
optional ServerInfo_Game game_info = 1;
|
||||
repeated ServerInfo_GameType game_types = 2;
|
||||
optional sint32 host_id = 3;
|
||||
optional sint32 player_id = 4;
|
||||
optional bool spectator = 5;
|
||||
optional bool resuming = 6;
|
||||
extend SessionEvent {
|
||||
optional Event_GameJoined ext = 1009;
|
||||
}
|
||||
optional ServerInfo_Game game_info = 1;
|
||||
repeated ServerInfo_GameType game_types = 2;
|
||||
optional sint32 host_id = 3;
|
||||
optional sint32 player_id = 4;
|
||||
optional bool spectator = 5;
|
||||
optional bool resuming = 6;
|
||||
}
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
|
||||
message Event_GameSay {
|
||||
extend GameEvent {
|
||||
optional Event_GameSay ext = 1009;
|
||||
}
|
||||
optional string message = 1;
|
||||
extend GameEvent {
|
||||
optional Event_GameSay ext = 1009;
|
||||
}
|
||||
optional string message = 1;
|
||||
}
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
import "serverinfo_player.proto";
|
||||
|
||||
message Event_GameStateChanged {
|
||||
extend GameEvent {
|
||||
optional Event_GameStateChanged ext = 1005;
|
||||
}
|
||||
repeated ServerInfo_Player player_list = 1;
|
||||
optional bool game_started = 2;
|
||||
optional sint32 active_player_id = 3;
|
||||
optional sint32 active_phase = 4;
|
||||
optional uint32 seconds_elapsed = 5;
|
||||
extend GameEvent {
|
||||
optional Event_GameStateChanged ext = 1005;
|
||||
}
|
||||
repeated ServerInfo_Player player_list = 1;
|
||||
optional bool game_started = 2;
|
||||
optional sint32 active_player_id = 3;
|
||||
optional sint32 active_phase = 4;
|
||||
optional uint32 seconds_elapsed = 5;
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
import "serverinfo_playerproperties.proto";
|
||||
|
||||
message Event_Join {
|
||||
extend GameEvent {
|
||||
optional Event_Join ext = 1000;
|
||||
}
|
||||
optional ServerInfo_PlayerProperties player_properties = 1;
|
||||
extend GameEvent {
|
||||
optional Event_Join ext = 1000;
|
||||
}
|
||||
optional ServerInfo_PlayerProperties player_properties = 1;
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
syntax = "proto2";
|
||||
import "room_event.proto";
|
||||
import "serverinfo_user.proto";
|
||||
|
||||
message Event_JoinRoom {
|
||||
extend RoomEvent {
|
||||
optional Event_JoinRoom ext = 1001;
|
||||
}
|
||||
optional ServerInfo_User user_info = 1;
|
||||
extend RoomEvent {
|
||||
optional Event_JoinRoom ext = 1001;
|
||||
}
|
||||
optional ServerInfo_User user_info = 1;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
|
||||
message Event_Kicked {
|
||||
extend GameEvent {
|
||||
optional Event_Kicked ext = 1004;
|
||||
}
|
||||
extend GameEvent {
|
||||
optional Event_Kicked ext = 1004;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
|
||||
message Event_Leave {
|
||||
extend GameEvent {
|
||||
optional Event_Leave ext = 1001;
|
||||
}
|
||||
extend GameEvent {
|
||||
optional Event_Leave ext = 1001;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
syntax = "proto2";
|
||||
import "room_event.proto";
|
||||
|
||||
message Event_LeaveRoom {
|
||||
extend RoomEvent {
|
||||
optional Event_LeaveRoom ext = 1000;
|
||||
}
|
||||
optional string name = 1;
|
||||
extend RoomEvent {
|
||||
optional Event_LeaveRoom ext = 1000;
|
||||
}
|
||||
optional string name = 1;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
syntax = "proto2";
|
||||
import "room_event.proto";
|
||||
import "serverinfo_game.proto";
|
||||
|
||||
message Event_ListGames {
|
||||
extend RoomEvent {
|
||||
optional Event_ListGames ext = 1003;
|
||||
}
|
||||
repeated ServerInfo_Game game_list = 1;
|
||||
extend RoomEvent {
|
||||
optional Event_ListGames ext = 1003;
|
||||
}
|
||||
repeated ServerInfo_Game game_list = 1;
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
syntax = "proto2";
|
||||
import "session_event.proto";
|
||||
import "serverinfo_room.proto";
|
||||
|
||||
message Event_ListRooms {
|
||||
extend SessionEvent {
|
||||
optional Event_ListRooms ext = 1004;
|
||||
}
|
||||
repeated ServerInfo_Room room_list = 1;
|
||||
extend SessionEvent {
|
||||
optional Event_ListRooms ext = 1004;
|
||||
}
|
||||
repeated ServerInfo_Room room_list = 1;
|
||||
}
|
||||
|
|
|
@ -1,18 +1,19 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
|
||||
message Event_MoveCard {
|
||||
extend GameEvent {
|
||||
optional Event_MoveCard ext = 2009;
|
||||
}
|
||||
optional sint32 card_id = 1 [default = -1];
|
||||
optional string card_name = 2;
|
||||
optional sint32 start_player_id = 3 [default = -1];
|
||||
optional string start_zone = 4;
|
||||
optional sint32 position = 5 [default = -1];
|
||||
optional sint32 target_player_id = 6 [default = -1];
|
||||
optional string target_zone = 7;
|
||||
optional sint32 x = 8 [default = -1];
|
||||
optional sint32 y = 9 [default = -1];
|
||||
optional sint32 new_card_id = 10 [default = -1];
|
||||
optional bool face_down = 11;
|
||||
extend GameEvent {
|
||||
optional Event_MoveCard ext = 2009;
|
||||
}
|
||||
optional sint32 card_id = 1 [default = -1];
|
||||
optional string card_name = 2;
|
||||
optional sint32 start_player_id = 3 [default = -1];
|
||||
optional string start_zone = 4;
|
||||
optional sint32 position = 5 [default = -1];
|
||||
optional sint32 target_player_id = 6 [default = -1];
|
||||
optional string target_zone = 7;
|
||||
optional sint32 x = 8 [default = -1];
|
||||
optional sint32 y = 9 [default = -1];
|
||||
optional sint32 new_card_id = 10 [default = -1];
|
||||
optional bool face_down = 11;
|
||||
}
|
||||
|
|
|
@ -1,14 +1,15 @@
|
|||
syntax = "proto2";
|
||||
import "session_event.proto";
|
||||
|
||||
message Event_NotifyUser {
|
||||
|
||||
enum NotificationType {
|
||||
enum NotificationType {
|
||||
PROMOTED = 1;
|
||||
}
|
||||
|
||||
extend SessionEvent {
|
||||
optional Event_NotifyUser ext = 1010;
|
||||
}
|
||||
optional NotificationType type = 1;
|
||||
extend SessionEvent {
|
||||
optional Event_NotifyUser ext = 1010;
|
||||
}
|
||||
optional NotificationType type = 1;
|
||||
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
import "serverinfo_playerproperties.proto";
|
||||
|
||||
message Event_PlayerPropertiesChanged {
|
||||
extend GameEvent {
|
||||
optional Event_PlayerPropertiesChanged ext = 1007;
|
||||
}
|
||||
optional ServerInfo_PlayerProperties player_properties = 1;
|
||||
extend GameEvent {
|
||||
optional Event_PlayerPropertiesChanged ext = 1007;
|
||||
}
|
||||
optional ServerInfo_PlayerProperties player_properties = 1;
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
syntax = "proto2";
|
||||
import "session_event.proto";
|
||||
|
||||
message Event_RemoveFromList {
|
||||
extend SessionEvent {
|
||||
optional Event_RemoveFromList ext = 1006;
|
||||
}
|
||||
optional string list_name = 1;
|
||||
optional string user_name = 2;
|
||||
extend SessionEvent {
|
||||
optional Event_RemoveFromList ext = 1006;
|
||||
}
|
||||
optional string list_name = 1;
|
||||
optional string user_name = 2;
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
syntax = "proto2";
|
||||
import "session_event.proto";
|
||||
import "serverinfo_replay_match.proto";
|
||||
|
||||
message Event_ReplayAdded {
|
||||
extend SessionEvent {
|
||||
optional Event_ReplayAdded ext = 1100;
|
||||
}
|
||||
optional ServerInfo_ReplayMatch match_info = 1;
|
||||
extend SessionEvent {
|
||||
optional Event_ReplayAdded ext = 1100;
|
||||
}
|
||||
optional ServerInfo_ReplayMatch match_info = 1;
|
||||
}
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
import "serverinfo_card.proto";
|
||||
|
||||
message Event_RevealCards {
|
||||
extend GameEvent {
|
||||
optional Event_RevealCards ext = 2006;
|
||||
}
|
||||
optional string zone_name = 1;
|
||||
optional sint32 card_id = 2 [default = -1];
|
||||
optional sint32 other_player_id = 3 [default = -1];
|
||||
repeated ServerInfo_Card cards = 4;
|
||||
optional bool grant_write_access = 5;
|
||||
extend GameEvent {
|
||||
optional Event_RevealCards ext = 2006;
|
||||
}
|
||||
optional string zone_name = 1;
|
||||
optional sint32 card_id = 2 [default = -1];
|
||||
optional sint32 other_player_id = 3 [default = -1];
|
||||
repeated ServerInfo_Card cards = 4;
|
||||
optional bool grant_write_access = 5;
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
|
||||
message Event_RollDie {
|
||||
extend GameEvent {
|
||||
optional Event_RollDie ext = 2008;
|
||||
}
|
||||
optional uint32 sides = 1;
|
||||
optional uint32 value = 2;
|
||||
extend GameEvent {
|
||||
optional Event_RollDie ext = 2008;
|
||||
}
|
||||
optional uint32 sides = 1;
|
||||
optional uint32 value = 2;
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
syntax = "proto2";
|
||||
import "room_event.proto";
|
||||
|
||||
message Event_RoomSay {
|
||||
extend RoomEvent {
|
||||
optional Event_RoomSay ext = 1002;
|
||||
}
|
||||
optional string name = 1;
|
||||
optional string message = 2;
|
||||
extend RoomEvent {
|
||||
optional Event_RoomSay ext = 1002;
|
||||
}
|
||||
optional string name = 1;
|
||||
optional string message = 2;
|
||||
}
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
syntax = "proto2";
|
||||
import "session_event.proto";
|
||||
import "serverinfo_user.proto";
|
||||
import "serverinfo_room.proto";
|
||||
|
||||
message Event_ServerCompleteList {
|
||||
extend SessionEvent {
|
||||
optional Event_ServerCompleteList ext = 600;
|
||||
}
|
||||
optional uint32 server_id = 1;
|
||||
repeated ServerInfo_User user_list = 2;
|
||||
repeated ServerInfo_Room room_list = 3;
|
||||
extend SessionEvent {
|
||||
optional Event_ServerCompleteList ext = 600;
|
||||
}
|
||||
optional uint32 server_id = 1;
|
||||
repeated ServerInfo_User user_list = 2;
|
||||
repeated ServerInfo_Room room_list = 3;
|
||||
}
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
syntax = "proto2";
|
||||
import "session_event.proto";
|
||||
|
||||
message Event_ServerIdentification {
|
||||
extend SessionEvent {
|
||||
optional Event_ServerIdentification ext = 500;
|
||||
}
|
||||
optional string server_name = 1;
|
||||
optional string server_version = 2;
|
||||
optional uint32 protocol_version = 3;
|
||||
extend SessionEvent {
|
||||
optional Event_ServerIdentification ext = 500;
|
||||
}
|
||||
optional string server_name = 1;
|
||||
optional string server_version = 2;
|
||||
optional uint32 protocol_version = 3;
|
||||
}
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
syntax = "proto2";
|
||||
import "session_event.proto";
|
||||
|
||||
message Event_ServerMessage {
|
||||
extend SessionEvent {
|
||||
optional Event_ServerMessage ext = 1000;
|
||||
}
|
||||
optional string message = 1;
|
||||
extend SessionEvent {
|
||||
optional Event_ServerMessage ext = 1000;
|
||||
}
|
||||
optional string message = 1;
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
syntax = "proto2";
|
||||
import "session_event.proto";
|
||||
|
||||
message Event_ServerShutdown {
|
||||
extend SessionEvent {
|
||||
optional Event_ServerShutdown ext = 1001;
|
||||
}
|
||||
optional string reason = 1;
|
||||
optional uint32 minutes = 2;
|
||||
extend SessionEvent {
|
||||
optional Event_ServerShutdown ext = 1001;
|
||||
}
|
||||
optional string reason = 1;
|
||||
optional uint32 minutes = 2;
|
||||
}
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
|
||||
message Event_SetActivePhase {
|
||||
extend GameEvent {
|
||||
optional Event_SetActivePhase ext = 2017;
|
||||
}
|
||||
optional sint32 phase = 1;
|
||||
extend GameEvent {
|
||||
optional Event_SetActivePhase ext = 2017;
|
||||
}
|
||||
optional sint32 phase = 1;
|
||||
}
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
|
||||
message Event_SetActivePlayer {
|
||||
extend GameEvent {
|
||||
optional Event_SetActivePlayer ext = 2016;
|
||||
}
|
||||
optional sint32 active_player_id = 1;
|
||||
extend GameEvent {
|
||||
optional Event_SetActivePlayer ext = 2016;
|
||||
}
|
||||
optional sint32 active_player_id = 1;
|
||||
}
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
import "card_attributes.proto";
|
||||
|
||||
message Event_SetCardAttr {
|
||||
extend GameEvent {
|
||||
optional Event_SetCardAttr ext = 2014;
|
||||
}
|
||||
optional string zone_name = 1;
|
||||
optional sint32 card_id = 2;
|
||||
optional CardAttribute attribute = 3;
|
||||
optional string attr_value = 4;
|
||||
extend GameEvent {
|
||||
optional Event_SetCardAttr ext = 2014;
|
||||
}
|
||||
optional string zone_name = 1;
|
||||
optional sint32 card_id = 2;
|
||||
optional CardAttribute attribute = 3;
|
||||
optional string attr_value = 4;
|
||||
}
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
|
||||
message Event_SetCardCounter {
|
||||
extend GameEvent {
|
||||
optional Event_SetCardCounter ext = 2015;
|
||||
}
|
||||
optional string zone_name = 1;
|
||||
optional sint32 card_id = 2;
|
||||
optional sint32 counter_id = 3;
|
||||
optional sint32 counter_value = 4;
|
||||
extend GameEvent {
|
||||
optional Event_SetCardCounter ext = 2015;
|
||||
}
|
||||
optional string zone_name = 1;
|
||||
optional sint32 card_id = 2;
|
||||
optional sint32 counter_id = 3;
|
||||
optional sint32 counter_value = 4;
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
|
||||
message Event_SetCounter {
|
||||
extend GameEvent {
|
||||
optional Event_SetCounter ext = 2003;
|
||||
}
|
||||
optional sint32 counter_id = 1;
|
||||
optional sint32 value = 2;
|
||||
extend GameEvent {
|
||||
optional Event_SetCounter ext = 2003;
|
||||
}
|
||||
optional sint32 counter_id = 1;
|
||||
optional sint32 value = 2;
|
||||
}
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
|
||||
message Event_Shuffle {
|
||||
extend GameEvent {
|
||||
optional Event_Shuffle ext = 2007;
|
||||
}
|
||||
optional string zone_name = 1;
|
||||
extend GameEvent {
|
||||
optional Event_Shuffle ext = 2007;
|
||||
}
|
||||
optional string zone_name = 1;
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
syntax = "proto2";
|
||||
import "game_event.proto";
|
||||
|
||||
message Event_StopDumpZone {
|
||||
extend GameEvent {
|
||||
optional Event_StopDumpZone ext = 2019;
|
||||
}
|
||||
optional sint32 zone_owner_id = 1;
|
||||
optional string zone_name = 2;
|
||||
extend GameEvent {
|
||||
optional Event_StopDumpZone ext = 2019;
|
||||
}
|
||||
optional sint32 zone_owner_id = 1;
|
||||
optional string zone_name = 2;
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
syntax = "proto2";
|
||||
import "session_event.proto";
|
||||
import "serverinfo_user.proto";
|
||||
|
||||
message Event_UserJoined {
|
||||
extend SessionEvent {
|
||||
optional Event_UserJoined ext = 1007;
|
||||
}
|
||||
optional ServerInfo_User user_info = 1;
|
||||
extend SessionEvent {
|
||||
optional Event_UserJoined ext = 1007;
|
||||
}
|
||||
optional ServerInfo_User user_info = 1;
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue