Commit e79dc1f2 authored by Chunchi Che's avatar Chunchi Che

Merge branch 'feat/idle_cmd' into 'main'

Feat/idle cmd

See merge request !9
parents c82314ef 0878411c
Pipeline #18455 passed with stage
in 11 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 idle_datas = 2;
}
int32 player = 1;
repeated IdleCmd idle_cmds = 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 select_idle_cmd = 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