Commit 53a9cf4c authored by Chunchi Che's avatar Chunchi Che

add StocSelectTp and StocHandResult and CtosTpResult

parent d1901b32
...@@ -16,7 +16,8 @@ message YgoCtosMsg { ...@@ -16,7 +16,8 @@ message YgoCtosMsg {
CtosHsStart ctos_hs_start = 5; CtosHsStart ctos_hs_start = 5;
CtosHsNotReady ctos_hs_not_ready = 6; CtosHsNotReady ctos_hs_not_ready = 6;
CtosHandResult ctos_hand_result = 7; CtosHandResult ctos_hand_result = 7;
} CtosTpResult ctos_tp_result = 8;
}
} }
message YgoStocMsg { message YgoStocMsg {
...@@ -28,14 +29,14 @@ message YgoStocMsg { ...@@ -28,14 +29,14 @@ message YgoStocMsg {
StocHsPlayerChange stoc_hs_player_change = 5; StocHsPlayerChange stoc_hs_player_change = 5;
StocHsWatchChange stoc_hs_watch_change = 6; StocHsWatchChange stoc_hs_watch_change = 6;
StocSelectHand stoc_select_hand = 7; StocSelectHand stoc_select_hand = 7;
StocHandResult stoc_hand_result = 8;
StocSelectTp stoc_select_tp = 9;
} }
} }
// ----- CTOS ----- // ----- CTOS -----
message CtosPlayerInfo { message CtosPlayerInfo { string name = 1; }
string name = 1;
}
message CtosJoinGame { message CtosJoinGame {
int32 version = 1; int32 version = 1;
...@@ -49,27 +50,22 @@ message CtosUpdateDeck { ...@@ -49,27 +50,22 @@ message CtosUpdateDeck {
repeated int32 side = 3; repeated int32 side = 3;
} }
message CtosHsReady { message CtosHsReady {}
// empty message
}
message CtosHsNotReady { message CtosHsNotReady {}
// empty message
}
message CtosHsStart { message CtosHsStart {}
// empty message
} message CtosHandResult { HandType hand = 1; }
message CtosHandResult { message CtosTpResult {
enum HandType { enum TpType {
UNKNOWN = 0; UNKNOWN = 0;
SCISSORS = 1; FIRST = 1;
ROCK = 2; SECOND = 2;
PAPER = 3;
} }
HandType hand = 1; TpType tp = 1;
} }
// ----- STOC ----- // ----- STOC -----
...@@ -128,10 +124,21 @@ message StocHsPlayerChange { ...@@ -128,10 +124,21 @@ message StocHsPlayerChange {
int32 moved_pos = 3; int32 moved_pos = 3;
} }
message StocHsWatchChange { message StocHsWatchChange { int32 count = 1; }
int32 count = 1;
message StocSelectHand {}
message StocHandResult {
HandType meResult = 1;
HandType opResult = 2;
} }
message StocSelectHand { message StocSelectTp {}
// empty message // ----- common structs ------
enum HandType {
UNKNOWN = 0;
SCISSORS = 1;
ROCK = 2;
PAPER = 3;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment