|
@@ -14,16 +14,30 @@ import "ws_common_response.proto";
|
|
|
// 开始战斗请求
|
|
|
message BattleProgressRequest {
|
|
|
optional WsMessageType message_id = 1 [default = BATTLE_PROGRESS_UPDATE]; // 消息类型
|
|
|
- optional int32 gold_added = 2 [default = 0]; // 增加的金币(可能为0)
|
|
|
- optional int32 gold_consumed = 3 [default = 0]; // 消耗的金币(可能为0)
|
|
|
- repeated int64 monster_ids = 4; // 击杀的怪物id列表
|
|
|
- repeated int64 reward_monster_ids = 5; // 击杀后爆奖的怪物ID列表
|
|
|
- optional int32 current_gold_balance = 6 [default = 0]; // 当前金币值
|
|
|
- optional bool battle_over = 7 [default = false]; // 是否结束战斗 true 结束
|
|
|
- repeated CommonRequest envelope = 8; // 公共必传参数集
|
|
|
+ repeated MonsterVo monsters = 2 ; // 怪物数组
|
|
|
+ optional bool battle_over = 3 [default = false]; // 是否结束战斗 true 结束
|
|
|
+ optional bool is_fish_scheme = 4 [default = false]; // 是否鱼阵 true 是
|
|
|
+ optional bool is_violent =5 [default = false]; // 是否狂暴模式 true 是
|
|
|
+ optional int32 scene_type =6 [default= 1 ]; // 场地类型 1:普通场 2:中级场 3:高级场
|
|
|
+ repeated CommonRequest envelope = 7; // 公共必传参数集
|
|
|
}
|
|
|
|
|
|
-message BattleProgressResponse{ //对应CommonRequest的data
|
|
|
- optional int32 current_gold_balance = 1 [default = 0]; // 更新后的余额
|
|
|
+message MonsterVo{
|
|
|
+ optional int32 monsterId = 1; // 怪物id
|
|
|
+ optional int32 type=2; //怪物类型 1:普通 2:精英 3:boss
|
|
|
+ optional bool isKill = 3 [default = false]; // 是否击杀
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+//实时消息同步请求
|
|
|
+message BattleRealTimeRequest{
|
|
|
+ optional WsMessageType message_id = 1 [default = BATTLE_REAL_TIME_UPDATE]; // 消息类型
|
|
|
+ optional int32 magic_array_id = 2 [default = 1]; // 魔法阵id
|
|
|
+}
|
|
|
+
|
|
|
+message BattleResponse{ //对应CommonRequest的data
|
|
|
+ optional int32 new_balance = 1 [default = 0]; // 更新后新的余额
|
|
|
+}
|
|
|
+
|
|
|
+
|