From ad43e3a120d393923ef0285b5614dce49f5f0a68 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 22 Jul 2020 16:10:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=83=B5=E5=B0=B8=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E5=8D=8F=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/tools/protobuild/cs_proto.proto | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/server/tools/protobuild/cs_proto.proto b/server/tools/protobuild/cs_proto.proto index 502dc6a..cf3d973 100755 --- a/server/tools/protobuild/cs_proto.proto +++ b/server/tools/protobuild/cs_proto.proto @@ -118,6 +118,12 @@ message MFVec2 property_type: 10 更新武器子弹数 property_subtype: 武器索引 valule: 当前数量 + property_type: 20 等级 + valule: 当前等级 + property_type: 21 经验 + valule: 当前经验 + property_type: 22 阵营 + valule: 当前阵营 */ message MFPropertyChg { @@ -220,6 +226,7 @@ message MFPlayerFull optional int32 level = 41; //等级 optional int32 exp = 42; //经验 optional int32 race = 43; //1:人 2:僵尸 + optional int32 zombieid = 44; //僵尸id } //阻挡物-部分 @@ -685,6 +692,14 @@ message MFTeamMember optional int32 create_time = 7; //账号创建时间 } +//位置信息 +message MFPosition +{ + optional int32 obj_uniid = 1; //唯一id + optional MFVec2 pos = 2; //位置 + optional MFVec2 dir = 3; //朝向 +} + //end mfmsg //加入 @@ -892,8 +907,12 @@ message SMUpdate repeated MFBuffChg chged_buff_list = 28; //buff变更列表 repeated MFPropertyChg chged_property_list = 31; //property变更列表 + //一下字段只有僵尸模式才有效 repeated int32 revive_objids = 41; //复活的玩家 repeated MFTuple dead_objs = 42; //死亡的玩家values[0]:objid values[1]:多少毫秒后复活 + repeated MFPosition zombie_positions = 43; //僵尸位置信息 + repeated MFPosition human_positions = 44; //人类位置信息 + optional int32 game_left_time = 45; //游戏剩余时间(毫秒, 战斗开始后字段才有意义) } //滚动消息