diff --git a/server/tools/protobuild/cs_proto.proto b/server/tools/protobuild/cs_proto.proto index f03880f..013f228 100755 --- a/server/tools/protobuild/cs_proto.proto +++ b/server/tools/protobuild/cs_proto.proto @@ -100,6 +100,23 @@ message MFVec2 optional float y = 2; //y轴 } +//属性变更 +/* + property_type: 1 血量 + property_type: 2 最大血量 + property_type: 3 库存 + property_subtype: 库存数组索引 + property_type: 4 技能cd时间(剩余时间) + property_type: 5 技能cd时间(总时间) + */ +message MFPropertyChg +{ + optional int32 obj_id = 1; //对象id + optional int32 property_type = 2; //属性类型 + optional int32 property_subtype = 3; //属性子类型 + optional float value = 4; //属性值 +} + //地图物件 message MFMapObject { @@ -390,7 +407,7 @@ message MFActivePlayerData optional int32 helmet = 32; //头盔 optional int32 chest = 33; //防弹衣 - optional float max_health = 34; //血量 + optional float max_health = 34; //最大血量 optional float health = 35; //血量 optional int32 cur_scope = 10; //当前视野倍数 1 2 4 8 15 @@ -703,6 +720,7 @@ message SMUpdate repeated int32 revive_objids = 18; //复活的玩家 repeated MFTuple dead_objs = 19; //死亡的玩家values[0]:objid values[1]:多少毫秒后复活 repeated MFBuffChg chged_buff_list = 20; //buff变更列表 + repeated MFPropertyChg chged_property_list = 21; //property变更列表 } //滚动消息