Commit cd2ef52b authored by Chunchi Che's avatar Chunchi Che

Merge branch 'time_limit_confirm' into 'main'

add CtosTimeConfirm and StocTimeLimit

See merge request !10
parents e79dc1f2 fb8c6c44
Pipeline #18621 passed with stage
in 13 seconds
...@@ -15,6 +15,7 @@ message YgoCtosMsg { ...@@ -15,6 +15,7 @@ message YgoCtosMsg {
CtosHsNotReady ctos_hs_not_ready = 6; CtosHsNotReady ctos_hs_not_ready = 6;
CtosHandResult ctos_hand_result = 7; CtosHandResult ctos_hand_result = 7;
CtosTpResult ctos_tp_result = 8; CtosTpResult ctos_tp_result = 8;
CtosTimeConfirm ctos_time_confirm = 9;
} }
} }
...@@ -32,6 +33,7 @@ message YgoStocMsg { ...@@ -32,6 +33,7 @@ message YgoStocMsg {
StocDeckCount stoc_deck_count = 10; StocDeckCount stoc_deck_count = 10;
StocDuelStart stoc_duel_start = 11; StocDuelStart stoc_duel_start = 11;
StocGameMessage stoc_game_msg = 12; StocGameMessage stoc_game_msg = 12;
StocTimeLimit stoc_time_limit = 13;
} }
} }
...@@ -79,6 +81,9 @@ message CtosTpResult { ...@@ -79,6 +81,9 @@ message CtosTpResult {
TpType tp = 1; TpType tp = 1;
} }
// 确认计时
message CtosTimeConfirm {}
// ----- STOC ----- // ----- STOC -----
// 服务端告诉前端/客户端已成功加入房间, // 服务端告诉前端/客户端已成功加入房间,
...@@ -172,6 +177,12 @@ message StocDeckCount { ...@@ -172,6 +177,12 @@ message StocDeckCount {
// 决斗开始! // 决斗开始!
message StocDuelStart {} message StocDuelStart {}
// 时间限制
message StocTimeLimit {
int32 player = 1;
int32 left_time = 2; // 剩下的时间
}
// 决斗对局内协议 // 决斗对局内协议
message StocGameMessage { message StocGameMessage {
// 一些对局内共用的结构 // 一些对局内共用的结构
......
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