角色控制和房间进入推送

This commit is contained in:
2025-09-07 23:51:17 +08:00
parent 61d20b5729
commit 7dad49bf5f
28 changed files with 432 additions and 221 deletions

View File

@@ -2,36 +2,15 @@ syntax = "proto3";
package Fantasy.Network.Message;
message C2Map_EnterRoomRequest // ICustomRouteRequest,Map2C_EnterRoomResponse,MapRoute
{
int32 MapId = 1;//房间id
string Password = 2;//进入密码
}
message Map2C_EnterRoomResponse // ICustomRouteResponse
{
int32 MapId = 1;//地图id
int64 RoomId = 2;//房间id
}
message C2Map_Move // ICustomRouteMessage,MapRoute
{
MapUnitPositionInfo Location = 1;
bool IsStop = 2;
}
///用户进入地图
message Map2C_RoleEnterMapNotify // ICustomRouteMessage,MapRoute
message Map2C_RoleEnterRoomNotify // ICustomRouteMessage,MapRoute
{
MapUnitInfo Info = 1;
}
///用户离开地图
message Map2C_RoleExitMapNotify // ICustomRouteMessage,MapRoute
message Map2C_RoleExitRoomNotify // ICustomRouteMessage,MapRoute
{
int64 Id = 1;//离开人员
}
@@ -57,9 +36,39 @@ message Map2C_RoleGearChangeNotify // ICustomRouteMessage,MapRoute
GearInfo Gears = 2; //钓组数据
}
///玩家位置变化
message Map2C_MoveNotify
//************** 移动 旋转 **********************
// 角色移动
message C2Map_Move // ICustomRouteMessage,MapRoute
{
int64 Id = 1;
MapUnitPositionInfo Location = 2;
Vector3Info Position = 1; //当前位置
Vector3Info Rotation = 2; //角色方向
Vector3Info Direction = 3; // 移动方向
bool IsStop = 4; // 是否是停止移动
int64 Timestamp = 5; // 时间点
}
// 角色朝向变化
message C2Map_Look // ICustomRouteMessage,MapRoute
{
Vector3Info Rotation = 1; //角色方向
int64 Timestamp = 2; // 时间点
}
///玩家移动推送
message Map2C_MoveNotify // ICustomRouteMessage,MapRoute
{
int64 Id = 1; // id
Vector3Info Position = 2; //当前位置
Vector3Info Rotation = 3; //角色方向
Vector3Info Direction = 4; // 移动方向
bool IsStop = 5; // 是否停止移动
int64 Timestamp = 6; // 时间点
}
///玩家旋转推送
message Map2C_LookeNotify // ICustomRouteMessage,MapRoute
{
int64 Id = 1; // id
Vector3Info Rotation = 2; //角色方向
int64 Timestamp = 3; // 时间点
}