Commit 96e06224 authored by Chunchi Che's avatar Chunchi Che

Merge branch 'feat/update_card_data' into 'main'

add MsgUpdateData

See merge request !34
parents 91892bf3 1bf8f8a0
Pipeline #20794 failed with stage
in 29 seconds
......@@ -569,6 +569,39 @@ message StocGameMessage {
int32 command = 1; // 未处理的Message编号
}
// 更新元数据
message MsgUpdateData {
message Action {
int32 code = 1; // 卡编号
CardLocation location = 2; // 卡位置
int32 alias = 3;
int32 type_ = 4;
int32 level = 5; // 等级
int32 rank = 6;
int32 attribute = 7; // 属性
int32 race = 8; // 种族
int32 attack = 9; // 攻击力
int32 defense = 10; // 防御力
int32 base_attack = 11; // 基础攻击力
int32 base_defense = 12; // 基础防御力
int32 reason = 13;
int32 reason_card = 14;
CardLocation equip_card = 15; // 装备的卡
repeated CardLocation target_cards = 16;
repeated int32 overlay_cards = 17; // 超量素材的code
map<int32, int32> counters = 18; // 指示器, (counterType -> counterValue)
int32 owner = 19;
int32 status = 20;
int32 lscale = 21;
int32 rscale = 22;
int32 link = 23;
}
int32 player = 1; // 玩家编号
CardZone zone = 2; // 卡牌区域
repeated Action actions = 3;
}
oneof gameMsg {
MsgStart start = 1;
MsgDraw draw = 2;
......@@ -592,5 +625,6 @@ message StocGameMessage {
MsgWin win = 20;
MsgWait wait = 21;
MsgUnimplemented unimplemented = 22;
MsgUpdateData update_data = 23;
}
}
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