Commit a9518b57 authored by Chunchi Che's avatar Chunchi Che

add select counter

parent 76135099
Pipeline #20942 failed with stage
in 21 seconds
......@@ -165,6 +165,9 @@ message CtosGameMsgResponse {
bool cancel_or_finish = 1; // 如果玩家取消了选择或者完成了选择,传-1给后端
int32 selected_ptr = 2; // 玩家本轮的选择
}
message SelectCounterResponse {
repeated int32 selected_count = 1; // 后端传给端上的每个Option都要返回选择值
}
oneof gameMsgResponse {
SelectIdleCmdResponse select_idle_cmd = 1;
......@@ -176,6 +179,7 @@ message CtosGameMsgResponse {
SelectOptionResponse select_option = 7;
SelectBattleCmdResponse select_battle_cmd = 8;
SelectUnselectCardResponse select_unselect_card = 9;
SelectCounterResponse select_counter_response = 10;
}
}
......@@ -648,8 +652,22 @@ message StocGameMessage {
int32 count = 4; // 改变的数量
}
// 断线重连
message MsgReloadField {
// 选择指示器
message MsgSelectCounter {
message Info {
int32 code = 1;
CardLocation location = 2;
int32 counter_count = 3;
}
int32 player = 1; // 玩家编号
int32 counter_type = 2; // 指示器类型
int32 min = 3;
repeated Info options = 4;
}
// 断线重连
message MsgReloadField {
message ZoneAction {
CardZone zone = 1;
int32 sequence = 2;
......@@ -703,5 +721,6 @@ message StocGameMessage {
MsgSelectSum select_sum = 25;
MsgSelectTribute select_tribute = 26;
MsgUpdateCounter update_counter = 27;
MsgSelectCounter select_counter = 28;
}
}
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