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.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
syntax = "proto3" ;
package pbClient ;
option go_package = "/pbStat" ;
// 通知-PvP伤害 statistics.pvp.damage
message StatPvPDamage {
int64 uid = 1 ; // 造成伤害的用户ID
optional int64 targetUid = 2 ; // 目标用户ID( 可能是基地, 不一定有)
float damage = 3 ; // 伤害量
}
// 通知-PvP击杀单位 statistics.pvp.killunit
message StatPvPKillUnit {
int64 uid = 1 ; // 用户ID
optional int64 targetUid = 2 ; // 目标用户
string attacker = 3 ; // 造成击杀东西( building:兵营 U0001:xxx兵 S0001: 技能)
string victim = 4 ; // 被击杀的东西( U0001:xxx兵)
}
// 通知-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 {
int32 winCamp = 1 ; // 获胜阵营 1-蓝 2-红
int64 generalUid = 2 ; // 名将UID
repeated int64 winUids = 3 ; // 战胜方玩家列表
repeated int64 lostUids = 4 ; // 战败方玩家列表
}