Commit edc9a649 authored by Chunchi Che's avatar Chunchi Che

Merge branch 'feat/select_card' into 'main'

add MsgSelectCard

See merge request !14
parents 621489ac fac727a5
Pipeline #19115 passed with stage
in 14 seconds
......@@ -375,6 +375,20 @@ message StocGameMessage {
int32 reason = 4; // 移动的原因
}
// 卡牌选择操作提示
message MsgSelectCard {
message SelectAbleCard {
int32 code = 1;
CardLocation location = 2;
}
int32 player = 1; // 玩家编号
bool cancelable = 2; // 是否可以取消
int32 min = 3; // 最小选择数量
int32 max = 4; // 最大选择数量
repeated SelectAbleCard cards = 5; // 可以选择的卡牌
}
oneof gameMsg {
MsgStart start = 1;
MsgDraw draw = 2;
......@@ -384,6 +398,7 @@ message StocGameMessage {
MsgSelectIdleCmd select_idle_cmd = 6;
MsgSelectPlace select_place = 7;
MsgMove move = 8;
MsgSelectCard select_card = 9;
}
}
......
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