Commit b67b483c authored by Chunchi Che's avatar Chunchi Che

Merge branch 'feat/toss' into 'main'

add MsgToss

See merge request !53
parents e6e23561 1c4b9789
Pipeline #22272 passed with stage
in 14 seconds
...@@ -764,6 +764,19 @@ message StocGameMessage { ...@@ -764,6 +764,19 @@ message StocGameMessage {
repeated CardLocation locations = 1; // 被选择卡的位置 repeated CardLocation locations = 1; // 被选择卡的位置
} }
// 骰子/硬币
message MsgToss {
enum TossType {
UNKNOWN = 0;
COIN = 1; // 硬币正反
DICE = 2; // 骰子
}
int32 player = 1; // 玩家编号
TossType toss_type = 2; // 类型
repeated int32 res = 3; // 结果
}
// 断线重连 // 断线重连
message MsgReloadField { message MsgReloadField {
message ZoneAction { message ZoneAction {
...@@ -838,5 +851,6 @@ message StocGameMessage { ...@@ -838,5 +851,6 @@ message StocGameMessage {
MsgLpUpdate lp_update = 44; MsgLpUpdate lp_update = 44;
MsgConfirmCards confirm_cards = 45; MsgConfirmCards confirm_cards = 45;
MsgBecomeTarget become_target = 46; MsgBecomeTarget become_target = 46;
MsgToss toss = 47;
} }
} }
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