Commit a019d093 authored by Chunchi Che's avatar Chunchi Che

add MsgSelectIdleCmd

parent c82314ef
Pipeline #18453 failed with stage
in 12 seconds
......@@ -174,6 +174,14 @@ message StocDuelStart {}
// 决斗对局内协议
message StocGameMessage {
// 一些对局内共用的结构
message CardInfo {
int32 code = 1;
int32 controler = 2;
int32 location = 3;
int32 sequence = 4;
}
// 对局开始
message MsgStart {
enum PlayerType {
......@@ -246,12 +254,46 @@ message StocGameMessage {
int32 hint_data = 3; // 提示数据
}
// IDLE可操作指示
message MsgSelectIdleCmd {
message IdleCmd {
enum IdleType {
UNKNOWN = 0;
SUMMON = 1; // 通常召唤
SPSUMMON = 2; // 特殊召唤
POS_CHANGE = 3; // 表示形式改变
MSET = 4; // 前场放置
SSET = 5; // 后场放置
ACTIVATE = 6; // 发动效果
TO_BP = 7; // 进入战斗阶段
TO_EP = 8; // 结束回合
SHUFFLE = 9; // 切洗手牌
}
message IdleData {
CardInfo card_info = 1;
int32 effect_description =
2; // `IdleType`为`ACTIVATE`时才会设置这个字段
}
IdleType idle_type = 1;
repeated IdleData = 2;
}
int32 player = 1;
repeated IdleCmd = 2;
bool enable_bp = 3;
bool enable_ep = 4;
bool enable_shuffle = 5;
}
oneof gameMsg {
MsgStart start = 1;
MsgDraw draw = 2;
MsgNewTurn new_turn = 3;
MsgNewPhase new_phase = 4;
MsgHint hint = 5;
MsgSelectIdleCmd = 6;
}
}
......
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