From ac6c79fc17c6589bf495bc3ff5a8b5b25f63146d Mon Sep 17 00:00:00 2001 From: "Bob.Song" <605277374@qq.com> Date: Thu, 21 Aug 2025 18:00:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=8F=E8=AE=AE=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Config/NetworkProtocol/Outer/MapMessage.proto | 89 ++++++++++++++++++- 1 file changed, 86 insertions(+), 3 deletions(-) diff --git a/Config/NetworkProtocol/Outer/MapMessage.proto b/Config/NetworkProtocol/Outer/MapMessage.proto index 61c27fe..705c021 100644 --- a/Config/NetworkProtocol/Outer/MapMessage.proto +++ b/Config/NetworkProtocol/Outer/MapMessage.proto @@ -1,9 +1,56 @@ syntax = "proto3"; package Fantasy.Network.Message; +message GearItemInfo +{ + int64 Id = 1; //唯一id + int32 ConfigId = 2; //配置id +} + +message Vector3Info +{ + float x = 1; + float y = 2; + float z = 3; +} +message QuaternionInfo +{ + float x = 1; + float y = 2; + float z = 3; + float w = 4; +} + +message GearStateInfo +{ + +} + +message RoleStateInfo +{ + int32 State = 1; //状态id + repeated string Args = 2; //状态参数 +} + message MapRoleInfo { - int64 Id; + RoleSimpleInfo Info = 1; //基础信息 +} + +message MapRoleInfo +{ + int64 Id = 1; //用户id + MapRolePositionInfo Location = 2; //位置信息 + RoleStateInfo State = 3; //状态信息 + repeated GearItemInfo Gears = 4; //钓组数据 + MapRoleInfo Info = 5; //玩家信息 + GearStateInfo GearStateInfo = 6; //钓组状态信息 +} + +message MapRolePositionInfo +{ + Vector3Info Position = 1; + QuaternionInfo Rotation = 2; } message C2Map_EnterMapRequest // ICustomRouteRequest,Map2C_EnterMapResponse,MapRoute @@ -17,14 +64,50 @@ message Map2C_EnterMapResponse // ICustomRouteResponse repeated MapRoleInfo Roles = 1;//地图玩家列表 } + +message C2Map_Move // ICustomRouteMessage,MapRoute +{ + MapRolePositionInfo Location = 1; + bool IsStop = 2; +} + + ///用户进入地图 -message Map2C_RoleEnterMap // ICustomRouteMessage,MapRoute +message Map2C_RoleEnterMapNotify // ICustomRouteMessage,MapRoute { MapRoleInfo Info = 1; } ///用户离开地图 -message Map2C_RoleExitMap // ICustomRouteMessage,MapRoute +message Map2C_RoleExitMapNotify // ICustomRouteMessage,MapRoute { int64 Id = 1;//离开人员 +} + +///玩家状态变化同步 +message Map2C_RoleStateNotify // ICustomRouteMessage,MapRoute +{ + int64 Id = 1; + RoleStateInfo State = 2; +} + +///玩家钓组状态变化 +message Map2C_RoleGearStateNotify // ICustomRouteMessage,MapRoute +{ + int64 Id = 1; + GearStateInfo State = 2; +} + +///玩家钓组变化 +message Map2C_RoleGearChangeNotify // ICustomRouteMessage,MapRoute +{ + int64 Id = 1; + repeated GearItemInfo Gears = 2; //钓组数据 +} + +///玩家位置变化 +message Map2C_MoveNotify +{ + int64 Id = 1; + MapRolePositionInfo Location = 2; } \ No newline at end of file