Commit 4a966691 authored by chechunchi's avatar chechunchi

add stoc and ctos select_option proto

parent 836412c2
Pipeline #19241 passed with stage
in 21 seconds
......@@ -151,6 +151,7 @@ message CtosGameMsgResponse {
message SelectChainResponse { int32 selected_ptr = 1; }
message SelectEffectYnResponse { bool selected = 1; }
message SelectPositionResponse { CardPosition position = 1; }
message SelectOptionResponse { int32 code = 1; }
oneof gameMsgResponse {
SelectIdleCmdResponse select_idle_cmd = 1;
......@@ -159,6 +160,7 @@ message CtosGameMsgResponse {
SelectChainResponse select_chain = 4;
SelectEffectYnResponse select_effect_yn = 5;
SelectPositionResponse select_position = 6;
SelectOptionResponse select_option = 7;
}
}
......@@ -447,6 +449,12 @@ message StocGameMessage {
repeated SelectAblePosition positions = 3; // 可选表示形式
}
// 选项选择
message MsgSelectOption {
int32 player = 1; // 玩家编号
repeated int32 options = 2; // 可选项,一般是某张卡的效果
}
oneof gameMsg {
MsgStart start = 1;
MsgDraw draw = 2;
......@@ -460,5 +468,6 @@ message StocGameMessage {
MsgSelectChain select_chain = 10;
MsgSelectEffectYn select_effect_yn = 11;
MsgSelectPosition select_position = 12;
MsgSelectOption select_option = 13;
}
}
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