Commit 772e2b72 authored by Chunchi Che's avatar Chunchi Che

optimize select_xxx

parent 1648b05d
Pipeline #21524 passed with stage
in 11 seconds
......@@ -155,16 +155,13 @@ message CtosGameMsgResponse {
CardZone zone = 2;
int32 sequence = 3;
}
message SelectCardResponse { repeated int32 selected_ptrs = 1; }
message SelectChainResponse { int32 selected_ptr = 1; }
message SelectMultiResponse { repeated int32 selected_ptrs = 1; }
message SelectSingleResponse { int32 selected_ptr = 1; }
message SelectEffectYnResponse { bool selected = 1; }
message SelectPositionResponse { CardPosition position = 1; }
message SelectOptionResponse { int32 code = 1; }
message SelectBattleCmdResponse { int32 selected_cmd = 1; }
message SelectUnselectCardResponse {
bool cancel_or_finish = 1; // 如果玩家取消了选择或者完成了选择,传-1给后端
int32 selected_ptr = 2; // 玩家本轮的选择
}
message SelectCounterResponse {
repeated int32 selected_count = 1; // 后端传给端上的每个Option都要返回选择值
}
......@@ -175,15 +172,14 @@ message CtosGameMsgResponse {
oneof gameMsgResponse {
SelectIdleCmdResponse select_idle_cmd = 1;
SelectPlaceResponse select_place = 2;
SelectCardResponse select_card = 3;
SelectChainResponse select_chain = 4;
SelectMultiResponse select_multi = 3;
SelectSingleResponse select_single = 4;
SelectEffectYnResponse select_effect_yn = 5;
SelectPositionResponse select_position = 6;
SelectOptionResponse select_option = 7;
SelectBattleCmdResponse select_battle_cmd = 8;
SelectUnselectCardResponse select_unselect_card = 9;
SelectCounterResponse select_counter_response = 10;
SortCardResponse sort_card = 11;
SelectCounterResponse select_counter_response = 9;
SortCardResponse sort_card = 10;
}
}
......
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