From 275b5b94beb665782e1451ba61bb0f65042282a3 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 12 Mar 2019 14:09:18 +0800 Subject: [PATCH] 1 --- server/tools/protobuild/cs_proto.proto | 114 ++++++++++++++----------- 1 file changed, 66 insertions(+), 48 deletions(-) diff --git a/server/tools/protobuild/cs_proto.proto b/server/tools/protobuild/cs_proto.proto index 25bcf0d..d92dcee 100755 --- a/server/tools/protobuild/cs_proto.proto +++ b/server/tools/protobuild/cs_proto.proto @@ -103,21 +103,23 @@ message MFPlug //玩家信息-部分 message MFPlayerPart { - optional MFVector2D pos = 1; //位置 - optional MFVector2D dir = 2; //朝向 + optional int32 obj_uniid = 1; //唯一id + optional MFVector2D pos = 2; //位置 + optional MFVector2D dir = 3; //朝向 } //玩家信息-全量 message MFPlayerFull { - optional float health = 1; //血量 - optional bool dead = 2; //是否已死亡 - optional bool downed = 3; // - optional bool disconnected = 4; //是否断网 - optional int32 anim_type = 5; // - optional int32 anim_seq = 6; // - optional int32 action_type = 7; // - optional int32 skin = 8; //皮肤id + optional int32 obj_uniid = 1; //唯一id + optional float health = 2; //血量 + optional bool dead = 3; //是否已死亡 + optional bool downed = 4; // + optional bool disconnected = 5; //是否断网 + optional int32 anim_type = 6; // + optional int32 anim_seq = 7; // + optional int32 action_type = 8; // + optional int32 skin = 9; //皮肤id //backpack optional int32 helmet = 10; //头盔 optional int32 chest = 11; // @@ -130,21 +132,23 @@ message MFPlayerFull //阻挡物-部分 message MFObstaclePart { - optional MFVector2D pos = 1; //位置 + optional int32 obj_uniid = 1; //唯一id + optional MFVector2D pos = 2; //位置 optional float scale = 3; //缩放比 } //阻挡物-全量 message MFObstacleFull { - optional int32 obstacle_id = 1; //阻挡物id - optional float health = 2; //血量 - optional bool dead = 3; //是否已死亡 + optional int32 obj_uniid = 1; //唯一id + optional int32 obstacle_id = 2; //阻挡物id + optional float health = 3; //血量 + optional bool dead = 4; //是否已死亡 - optional bool is_door = 4; //是否门 - optional int32 door_relative_ori = 5; // - optional bool door_can_use = 6; // - optional int32 door_seq = 7; + optional bool is_door = 5; //是否门 + optional int32 door_relative_ori = 6; // + optional bool door_can_use = 7; // + optional int32 door_seq = 8; optional bool is_button = 10; optional bool button_onoff = 11; @@ -155,101 +159,115 @@ message MFObstacleFull //建筑物-部分 message MFBuildingPart { - optional MFVector2D pos = 1; //位置 - optional int32 building_id = 2; //建筑物id - optional int32 ori = 3; // + optional int32 obj_uniid = 1; //唯一id + optional MFVector2D pos = 2; //位置 + optional int32 building_id = 3; //建筑物id + optional int32 ori = 4; // } //建筑物-全量 message MFBuildingFull { - optional int32 building_id = 1; //建筑物id - optional MFVector2D pos = 2; //位置 - optional int32 ori = 3; - optional bool ceiling_dead = 4; + optional int32 obj_uniid = 1; //唯一id + optional int32 building_id = 2; //建筑物id + optional MFVector2D pos = 3; //位置 + optional int32 ori = 4; + optional bool ceiling_dead = 5; } //loot出生点-部分 message MFLootSpawnerPart { - optional int32 loot_id = 1; //id - optional MFVector2D pos = 2; //位置 + optional int32 obj_uniid = 1; //唯一id + optional int32 loot_id = 2; //id + optional MFVector2D pos = 3; //位置 } //loot出生点-全量 message MFLootSpawnerFull { - optional int32 loot_id = 1; //id - optional MFVector2D pos = 2; //位置 + optional int32 obj_uniid = 1; //唯一id + optional int32 loot_id = 2; //id + optional MFVector2D pos = 3; //位置 } //loot-部分 message MFLootPart { - optional MFVector2D pos = 1; //位置 + optional int32 obj_uniid = 1; //唯一id + optional MFVector2D pos = 2; //位置 } //loot-全量 message MFLootFull { - optional string name = 1; - optional int32 count = 2; - optional int32 age_ms = 3; + optional int32 obj_uniid = 1; //唯一id + optional string name = 2; + optional int32 count = 3; + optional int32 age_ms = 4; } //尸体-部分 message MFDeadBodyPart { - optional MFVector2D pos = 1; //位置 + optional int32 obj_uniid = 1; //唯一id + optional MFVector2D pos = 2; //位置 } //尸体-全量 message MFDeadBodyFull { - optional int32 player_id = 1; //玩家id - optional int32 inkjet = 2; + optional int32 obj_uniid = 1; //唯一id + optional int32 player_id = 2; //玩家id + optional int32 inkjet = 3; } //decal-部分 message MFDecalPart { - optional int32 decal_id = 1; //id - optional MFVector2D pos = 2; //位置 + optional int32 obj_uniid = 1; //唯一id + optional int32 decal_id = 2; //id + optional MFVector2D pos = 3; //位置 } //decal-全量 message MFDecalFull { - optional int32 decal_id = 1; //id - optional MFVector2D pos = 2; //位置 + optional int32 obj_uniid = 1; //唯一id + optional int32 decal_id = 2; //id + optional MFVector2D pos = 3; //位置 } //发射体-部分 message MFProjectilePart { - optional MFVector2D pos = 1; //位置 - optional float pos_z = 2; //没用到 + optional int32 obj_uniid = 1; //唯一id + optional MFVector2D pos = 2; //位置 + optional float pos_z = 3; //没用到 } //发射体-全量 message MFProjectileFull { - optional MFVector2D pos = 1; //位置 - optional float pos_z = 2; //没用到 + optional int32 obj_uniid = 1; //唯一id + optional MFVector2D pos = 2; //位置 + optional float pos_z = 3; //没用到 } //烟雾-部分 message MFSmokePart { - optional MFVector2D pos = 1; //位置 - optional float rad = 2; //半径 + optional int32 obj_uniid = 1; //唯一id + optional MFVector2D pos = 2; //位置 + optional float rad = 3; //半径 } //烟雾-全量 message MFSmokeFull { - optional MFVector2D pos = 1; //位置 - optional float rad = 2; //半径 + optional int32 obj_uniid = 1; //唯一id + optional MFVector2D pos = 2; //位置 + optional float rad = 3; //半径 } //对象信息-部分