diff --git a/game/pb/notify/notify.proto b/game/pb/notify/notify.proto new file mode 100644 index 0000000..807d284 --- /dev/null +++ b/game/pb/notify/notify.proto @@ -0,0 +1,46 @@ +syntax = "proto3"; + +package pb; + +option go_package = "/pbNotify"; + +// 通知-PvP伤害 +message NotifyPvPDamage { + int64 uid = 1; // 造成伤害的用户ID + int64 targetUid = 2; // 目标用户ID + float damage = 3; // 造成的伤害量 + int32 type = 4; // 造成伤害类型 1-兵种造成伤害 2-技能伤害 + string unit = 5; // 造成伤害的兵种 + string skill = 6; // 造成伤害的技能 +} + +// 通知-PvP击杀单位 +message NotifyPvPKillUnit { + int64 uid = 1; // 用户ID + int64 targetUid = 2; // 目标用户 + string unit = 3; // 击杀单位种类 player:玩家 U0001-xx兵 +} + +message NotifyPvPKill { + int64 uid = 1; // 用户ID + int64 targetUid = 2; // 目标用户 +} + +// 通知-PvP一血 +message NotifyPvPFirstBlood { + int64 uid = 1; // 用户ID + int32 type = 2; // 1-拿到一血 2-被破一血 +} + +// 通知-PvP战报 +message NotifyPvPReport { + message Report { + int64 uid = 1; // 用户ID + string uname = 2; // 用户名 + int64 score = 3; // 分数 + int64 damage = 4; // 伤害 + } + int32 winCamp = 1; // 获胜阵营 1-蓝 2-红 + repeated Report winReport = 2; // 战胜方上榜数据 + repeated Report lostReport = 3; // 战败方上榜数据 +} \ No newline at end of file