进入和离开地图和房间协议合并

This commit is contained in:
2025-09-09 00:17:50 +08:00
parent ebb1a467c4
commit a2c5b61ba8
16 changed files with 228 additions and 287 deletions

View File

@@ -55,16 +55,18 @@ message Club2Chat_CreateChannel // IRouteMessage
/// 请求进入房间
message G2Map_EnterRoomRequest // IRouteRequest,Map2G_EnterRoomResponse
message G2Map_EnterMapRequest // IRouteRequest,Map2G_EnterMapResponse
{
string RoomCode = 1; //房间代码
int64 AccountId = 2; //账号id
int32 MapId =3; //地图id
}
/// 请求进入房间响应
message Map2G_EnterRoomResponse // IRouteResponse
message Map2G_EnterMapResponse // IRouteResponse
{
string RoomCode = 1; //房间代码
int32 MapId = 2; //地图id
repeated MapUnitInfo Units = 2; //房间玩家列表
}

View File

@@ -14,41 +14,47 @@ message Map2C_CreateRoomResponse // ICustomRouteResponse
repeated MapUnitInfo Units = 2; //房间玩家列表
}
/// 请求网关进入房间
message C2G_EnterRoomRequest // IRequest,G2C_EnterRoomResponse
{
string RoomCode = 1; //房间代码
}
/// 请求网关进入房间响应
message G2C_EnterRoomResponse // IResponse
{
string RoomCode = 1; //房间代码
repeated MapUnitInfo Units = 2; //房间玩家列表
}
/// 请求网关离开房间
/// 请求网关离开房间(离开房间,但是不离开地图)
message C2G_ExitRoomRequest // IRequest,G2C_ExitRoomResponse
{
string RoomCode = 1; //房间代码
}
/// 请求网关进入离开响应
message G2C_ExitRoomResponse // IResponse
{
string RoomCode = 1; //房间代码
}
message C2Map_EnterMapRequest // ICustomRouteRequest,Map2C_EnterMapResponse,MapRoute
/// 请求网关进入地图
message C2G_EnterMapRequest // IRequest,G2C_EnterMapResponse
{
int32 MapId = 1;//地图id
string RoomId = 2;//房间id如果联机则有
string RoomCode = 1; //房间代码
int32 MapId = 2; //地图id
}
message Map2C_EnterMapResponse // ICustomRouteResponse
/// 请求网关进入房间响应
message G2C_EnterMapResponse // IResponse
{
int32 MapId = 1; //地图id
string RoomCode = 2; //房间代码
repeated MapUnitInfo Units = 3; //房间玩家列表
}
// // 请求进入地图
// message C2Map_EnterMapRequest // ICustomRouteRequest,Map2C_EnterMapResponse,MapRoute
// {
// int32 MapId = 1;//地图id
// string RoomCode = 2;//房间id如果是进入房间
// }
// message Map2C_EnterMapResponse // ICustomRouteResponse
// {
}
// }
/// 通知客户端切换地图
@@ -57,11 +63,3 @@ message Map2C_ChangeMap // ICustomRouteMessage,MapRoute
int32 MapId = 1; //地图id
int32 Node = 2; //站位节点
}
// ///新邮件推送
// message S2C_HaveMail // ICustomRouteMessage,SocialRoute
// {
// MailInfo Mail = 1;
// string Key = 2;
// }

View File

@@ -2,7 +2,7 @@ syntax = "proto3";
package Fantasy.Network.Message;
//************** 进入 离开 **********************
///用户进入地图
message Map2C_RoleEnterRoomNotify // ICustomRouteMessage,MapRoute
{
@@ -15,6 +15,8 @@ message Map2C_RoleExitRoomNotify // ICustomRouteMessage,MapRoute
int64 Id = 1;//离开人员
}
//************** 参数变化 **********************
///玩家状态变化同步
message Map2C_RoleStateNotify // ICustomRouteMessage,MapRoute
{
@@ -22,21 +24,21 @@ message Map2C_RoleStateNotify // ICustomRouteMessage,MapRoute
UnitStateInfo State = 2;
}
///玩家钓组状态变化
message Map2C_RoleGearStateNotify // ICustomRouteMessage,MapRoute
{
int64 Id = 1;
UnitFishingInfo State = 2;
}
///玩家钓组变化
message Map2C_RoleGearChangeNotify // ICustomRouteMessage,MapRoute
{
int64 Id = 1;
GearInfo Gears = 2; //钓组数据
repeated GearInfo Gears = 2; //钓组数据
}
//************** 移动 旋转 **********************
//玩家属性值变化
message Map2C_RolePropertyChangeNotify // ICustomRouteMessage,MapRoute
{
repeated KeyValueInt32 Propertys = 1; //变化的属性信息
}
//************** 移动 旋转 **********************
// 角色移动
message C2Map_Move // ICustomRouteMessage,MapRoute
{

View File

@@ -46,8 +46,7 @@ message MapUnitInfo
Vector3Info Position = 3; //当前位置
Vector3Info Rotation = 4; //角色方向
UnitStateInfo State = 5; //状态信息
GearInfo Gears = 7; //钓组数据
UnitFishingInfo FishingInfo = 8; //钓鱼状态信息
repeated KeyValueInt32 KV = 9; //属性信息
repeated GearInfo Gears = 7; //钓组数据
repeated KeyValueInt32 Propertys = 8; //属性信息
}