You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
887 B
Protocol Buffer
33 lines
887 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package pbClient;
|
|
|
|
option go_package = "/pbStat";
|
|
|
|
// 通知-PvP杀兵营(人) statistics.pvp.kill
|
|
message StatPvPKill {
|
|
int64 uid = 1; // 用户ID
|
|
int64 targetUid = 2; // 目标用户
|
|
bool isGeneral = 3; // targetUid是否名将
|
|
}
|
|
|
|
// 通知-PvP一血 statistics.pvp.first
|
|
message StatPvPFirstBlood {
|
|
int64 uid = 1; // 用户ID
|
|
int32 type = 2; // 1-拿到一血 2-被破一血
|
|
}
|
|
|
|
// 通知-PvP战报 statistics.pvp.report
|
|
message StatPvPReport {
|
|
message Item {
|
|
int64 uid = 1; // 用户ID
|
|
int64 damage = 2; // 伤害量
|
|
int64 deDamage = 3; // 承受伤害
|
|
int64 killUnit = 4; // 击杀单位数量
|
|
int64 deKillUnit = 5; // 被杀单位数量
|
|
}
|
|
int32 winCamp = 1; // 获胜阵营 1-蓝 2-红
|
|
int64 generalUid = 2; // 名将UID
|
|
repeated Item winItems = 3; // 获胜方数据
|
|
repeated Item lostItems = 4; // 战败方数据
|
|
} |