Commit 33348807 authored by chechunchi's avatar chechunchi

add MsgAnnounce

parent 48be6a82
Pipeline #21818 passed with stage
in 10 seconds
......@@ -730,6 +730,28 @@ message StocGameMessage {
message MsgAttackDisabled {}
// 宣言
message MsgAnnounce {
// 宣言类型
enum AnnounceType {
UNKNOWN = 0;
RACE = 1; // 种族
Attribute = 2; // 属性
Card = 3; // 卡片
Number = 4; // 数字
}
message Option {
int32 code = 1;
int32 response = 2;
}
int32 player = 1; // 玩家编号
AnnounceType announce_type = 2;
int32 min = 3; // 最小宣言数量
repeated Option options = 4;
}
// 断线重连
message MsgReloadField {
message ZoneAction {
......@@ -800,5 +822,6 @@ message StocGameMessage {
MsgAttackDisabled attack_disable = 40;
MsgChainSolved chain_solved = 41;
MsgChainEnd chain_end = 42;
MsgAnnounce announce = 43;
}
}
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