From 242eafee62990a05afb9182cc06cf19569df3929 Mon Sep 17 00:00:00 2001 From: wangyuan Date: Thu, 29 Aug 2019 15:40:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8B=B1=E9=9B=84=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/CommonProto.proto | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/protos/CommonProto.proto b/protos/CommonProto.proto index 975f5ac..87bf657 100644 --- a/protos/CommonProto.proto +++ b/protos/CommonProto.proto @@ -443,6 +443,12 @@ option optimize_for = SPEED; repeated int32 value = 7; // buffer 作用效果值 } + message BloodyHeroInfo { + optional string heroId = 1; + optional int32 heroHp = 2; + optional int32 heroMaxHp =3; + } + message Creature{ repeated int32 path = 1; //行走路径 optional int32 speed =2;// 速度 @@ -450,6 +456,7 @@ option optimize_for = SPEED; optional int32 curHp =4;// 当前血量 optional int32 mineral = 5; // 矿石 optional int32 camp = 6; //阵营 + repeated BloodyHeroInfo heroInfo = 7 ; // 英雄信息 } message SceneActor{ @@ -458,6 +465,7 @@ option optimize_for = SPEED; optional int32 state = 3; //当前状态 1 : 不可移动 0 : 可移动 optional int32 type =4 ;// 演员类型 1 玩家 2 怪物 3 矿点 4 npc optional Creature Creature = 6 ;//动作演员信息 + optional int32 userName = 7; //玩家名称(只有玩家才有) }