Commit 80fe0f83 authored by chechunchi's avatar chechunchi

add select_position stoc and ctos

parent d8991a3d
Pipeline #19220 passed with stage
in 18 seconds
...@@ -5,6 +5,14 @@ option go_package = "DarkNeos/ygopropb"; ...@@ -5,6 +5,14 @@ option go_package = "DarkNeos/ygopropb";
// ----- Basic ----- // ----- Basic -----
// 猜拳类型
enum HandType {
UNKNOWN = 0;
SCISSORS = 1;
ROCK = 2;
PAPER = 3;
}
// 卡牌的区域类型 // 卡牌的区域类型
enum CardZone { enum CardZone {
DECK = 0; // 卡组 DECK = 0; // 卡组
...@@ -142,6 +150,7 @@ message CtosGameMsgResponse { ...@@ -142,6 +150,7 @@ message CtosGameMsgResponse {
message SelectCardResponse { repeated int32 selected_ptrs = 1; } message SelectCardResponse { repeated int32 selected_ptrs = 1; }
message SelectChainResponse { int32 selected_ptr = 1; } message SelectChainResponse { int32 selected_ptr = 1; }
message SelectEffectYnResponse { bool selected = 1; } message SelectEffectYnResponse { bool selected = 1; }
message SelectPositionResponse { CardPosition position = 1; }
oneof gameMsgResponse { oneof gameMsgResponse {
SelectIdleCmdResponse select_idle_cmd = 1; SelectIdleCmdResponse select_idle_cmd = 1;
...@@ -149,6 +158,7 @@ message CtosGameMsgResponse { ...@@ -149,6 +158,7 @@ message CtosGameMsgResponse {
SelectCardResponse select_card = 3; SelectCardResponse select_card = 3;
SelectChainResponse select_chain = 4; SelectChainResponse select_chain = 4;
SelectEffectYnResponse select_effect_yn = 5; SelectEffectYnResponse select_effect_yn = 5;
SelectPositionResponse select_position = 6;
} }
} }
...@@ -428,6 +438,13 @@ message StocGameMessage { ...@@ -428,6 +438,13 @@ message StocGameMessage {
int32 effect_description = 4; // 卡效果 int32 effect_description = 4; // 卡效果
} }
// 表示形式选择
message MsgSelectPosition {
int32 player = 1; // 玩家编号
int32 code = 2; // 卡编号
repeated CardPosition positions = 3; // 可选表示形式
}
oneof gameMsg { oneof gameMsg {
MsgStart start = 1; MsgStart start = 1;
MsgDraw draw = 2; MsgDraw draw = 2;
...@@ -440,15 +457,6 @@ message StocGameMessage { ...@@ -440,15 +457,6 @@ message StocGameMessage {
MsgSelectCard select_card = 9; MsgSelectCard select_card = 9;
MsgSelectChain select_chain = 10; MsgSelectChain select_chain = 10;
MsgSelectEffectYn select_effect_yn = 11; MsgSelectEffectYn select_effect_yn = 11;
MsgSelectPosition select_position = 12;
} }
} }
// ----- 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