From 07a11f3260e960df29eb7be5e0e52343eb53fd8f Mon Sep 17 00:00:00 2001 From: BobSong <605277374@qq.com> Date: Wed, 20 Aug 2025 23:57:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E5=8D=8F=E8=AE=AE=E5=AE=9A?= =?UTF-8?q?=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Config/NetworkProtocol/Outer/MapMessage.proto | 26 +++++++++++++++++++ .../NetworkProtocol/Outer/OuterMessage.proto | 11 +++----- .../NetworkProtocol/Outer/data/Account.proto | 6 +++-- 3 files changed, 33 insertions(+), 10 deletions(-) diff --git a/Config/NetworkProtocol/Outer/MapMessage.proto b/Config/NetworkProtocol/Outer/MapMessage.proto index faf316a..61c27fe 100644 --- a/Config/NetworkProtocol/Outer/MapMessage.proto +++ b/Config/NetworkProtocol/Outer/MapMessage.proto @@ -1,4 +1,30 @@ syntax = "proto3"; package Fantasy.Network.Message; +message MapRoleInfo +{ + int64 Id; +} +message C2Map_EnterMapRequest // ICustomRouteRequest,Map2C_EnterMapResponse,MapRoute +{ + int32 MapId = 1;//地图id + int64 RoomId = 2;//房间id,如果联机则有 +} + +message Map2C_EnterMapResponse // ICustomRouteResponse +{ + repeated MapRoleInfo Roles = 1;//地图玩家列表 +} + +///用户进入地图 +message Map2C_RoleEnterMap // ICustomRouteMessage,MapRoute +{ + MapRoleInfo Info = 1; +} + +///用户离开地图 +message Map2C_RoleExitMap // ICustomRouteMessage,MapRoute +{ + int64 Id = 1;//离开人员 +} \ No newline at end of file diff --git a/Config/NetworkProtocol/Outer/OuterMessage.proto b/Config/NetworkProtocol/Outer/OuterMessage.proto index 88236dc..5ca1bfb 100644 --- a/Config/NetworkProtocol/Outer/OuterMessage.proto +++ b/Config/NetworkProtocol/Outer/OuterMessage.proto @@ -28,19 +28,13 @@ message C2G_LoginRequest // IRequest,G2C_LoginResponse } message G2C_LoginResponse // IResponse { - GameAccountInfo GameAccountInfo = 1; + int64 RoleId = 1; } /// 通知客户端重复登录 message G2C_RepeatLogin // IMessage { } -/// GameAccount实体类 -message GameAccountInfo -{ - int64 CreateTime = 1; - int64 LoginTime = 2; -} message C2Game_GetRoleInfoRequest // ICustomRouteRequest,Game2C_GetRoleInfoResponse,GameRoute @@ -50,5 +44,6 @@ message C2Game_GetRoleInfoRequest // ICustomRouteRequest,Game2C_GetRoleInfoRespo message Game2C_GetRoleInfoResponse // ICustomRouteResponse { - RoleSimpleInfo Roles = 1; //角色列表 + RoleInfo RoleInfo = 1; //账号信息 + int64 RoomId = 2; //所在房间 } \ No newline at end of file diff --git a/Config/NetworkProtocol/Outer/data/Account.proto b/Config/NetworkProtocol/Outer/data/Account.proto index 88f3808..51cbf5d 100644 --- a/Config/NetworkProtocol/Outer/data/Account.proto +++ b/Config/NetworkProtocol/Outer/data/Account.proto @@ -41,8 +41,9 @@ message RoleInfo repeated FishInfo Fishs = 4; //鱼护 repeated ActivityInfo Activities = 5; //活动信息 repeated KeyValueInt64 Currency = 6; //货币信息 - repeated KeyValueInt64 Slots = 7; //插槽使用情况 + repeated KeyValueInt64 Slots = 7; //插槽使用情况 repeated SkillInfo Skills = 8; //技能信息 + int32 MapId = 9; //当前所在地图 } /// 角色信息 @@ -53,7 +54,8 @@ message RoleSimpleInfo string Head = 3; //头像 string Country = 4; //国家 int32 Level = 5; //等级 - bool Vip = 6; //是否vip + bool Vip = 6; //是否vip + int32 MapId = 7; //当前所在地图 } /// VIP信息