Commit 1ba7de35 authored by Chunchi Che's avatar Chunchi Che

Merge branch 'response' into 'main'

add CtosGameMsgResponse and add response field in MsgSelectIdleCmd

See merge request !11
parents cd2ef52b 0897037b
Pipeline #18646 passed with stage
in 14 seconds
......@@ -16,6 +16,7 @@ message YgoCtosMsg {
CtosHandResult ctos_hand_result = 7;
CtosTpResult ctos_tp_result = 8;
CtosTimeConfirm ctos_time_confirm = 9;
CtosGameMsgResponse ctos_response = 10;
}
}
......@@ -84,6 +85,13 @@ message CtosTpResult {
// 确认计时
message CtosTimeConfirm {}
// 决斗对局内协议
message CtosGameMsgResponse {
message SelectIdleCmdResponse { int32 code = 1; }
oneof gameMsgResponse { SelectIdleCmdResponse select_idle_cmd = 1; }
}
// ----- STOC -----
// 服务端告诉前端/客户端已成功加入房间,
......@@ -285,6 +293,7 @@ message StocGameMessage {
CardInfo card_info = 1;
int32 effect_description =
2; // `IdleType`为`ACTIVATE`时才会设置这个字段
int32 response = 3; // 当用户选择该操作项时,把这个值回传给服务端
}
IdleType idle_type = 1;
......
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