vue_dreamfactory/src/pb/proto/battle_msg.proto
2022-10-13 13:48:48 +08:00

36 lines
1.1 KiB
Protocol Buffer

syntax = "proto3";
option go_package = ".;pb";
import "battle_db.proto";
message LineUp {
string cid = 1; // 配置表id
int32 star = 2; // 星级
int32 lv = 3; // 等级
}
// pve 战斗创建请求 (此请求 为服务端间使用 客户端可忽略)
message BattlePVEReq {
PlayType ptype = 1; //玩法类型
string title = 2; //战斗标题
int32 leadpos = 3; //队长位置
repeated string teamids = 4; //阵容信息
repeated int32 mformat = 5; //敌方增容信息
}
//战斗开始推送
message BattleInfo {
string id = 1; //战斗id
string title = 2; //战斗标题
BattleType btype = 3; //战斗类型
PlayType ptype = 4; //玩法类型
string redCompId = 5; //红方阵营id
repeated DBBattleFormt redflist = 6; //红方阵型列表
string blueCompId = 7; //蓝方阵营id
repeated DBBattleFormt buleflist = 8; //红方阵型列表
}
//战报数据
message BattleReport {
BattleInfo info = 1;
int32 Costtime = 2; //战斗时长 单位ms
}