Commit ff89698e authored by Chunchi Che's avatar Chunchi Che

Merge branch 'feat/select_counter' into 'main'

add select counter

See merge request !39
parents 76135099 bbf12d0a
Pipeline #20944 passed with stage
in 20 seconds
...@@ -165,6 +165,9 @@ message CtosGameMsgResponse { ...@@ -165,6 +165,9 @@ message CtosGameMsgResponse {
bool cancel_or_finish = 1; // 如果玩家取消了选择或者完成了选择,传-1给后端 bool cancel_or_finish = 1; // 如果玩家取消了选择或者完成了选择,传-1给后端
int32 selected_ptr = 2; // 玩家本轮的选择 int32 selected_ptr = 2; // 玩家本轮的选择
} }
message SelectCounterResponse {
repeated int32 selected_count = 1; // 后端传给端上的每个Option都要返回选择值
}
oneof gameMsgResponse { oneof gameMsgResponse {
SelectIdleCmdResponse select_idle_cmd = 1; SelectIdleCmdResponse select_idle_cmd = 1;
...@@ -176,6 +179,7 @@ message CtosGameMsgResponse { ...@@ -176,6 +179,7 @@ message CtosGameMsgResponse {
SelectOptionResponse select_option = 7; SelectOptionResponse select_option = 7;
SelectBattleCmdResponse select_battle_cmd = 8; SelectBattleCmdResponse select_battle_cmd = 8;
SelectUnselectCardResponse select_unselect_card = 9; SelectUnselectCardResponse select_unselect_card = 9;
SelectCounterResponse select_counter_response = 10;
} }
} }
...@@ -648,6 +652,20 @@ message StocGameMessage { ...@@ -648,6 +652,20 @@ message StocGameMessage {
int32 count = 4; // 改变的数量 int32 count = 4; // 改变的数量
} }
// 选择指示器
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 MsgReloadField {
message ZoneAction { message ZoneAction {
...@@ -703,5 +721,6 @@ message StocGameMessage { ...@@ -703,5 +721,6 @@ message StocGameMessage {
MsgSelectSum select_sum = 25; MsgSelectSum select_sum = 25;
MsgSelectTribute select_tribute = 26; MsgSelectTribute select_tribute = 26;
MsgUpdateCounter update_counter = 27; 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