Files
Fishing2Server/Tools/NetworkProtocol/Outer/RoomMessage.proto
2026-03-11 10:15:34 +08:00

105 lines
2.8 KiB
Protocol Buffer

syntax = "proto3";
package Fantasy.Network.Message;
//************** 进入 离开 **********************
///用户进入地图
message Game2C_RoleEnterRoomNotify // ICustomRouteMessage,GameRoute
{
MapUnitInfo Info = 2;
}
///用户离开地图
message Game2C_RoleExitRoomNotify // ICustomRouteMessage,GameRoute
{
int64 Id = 1;//离开人员
}
//************** 物品变化 **********************
/// 请求拿起物品
message C2Game_TakeItemRequest // ICustomRouteRequest,Game2C_TakeItemResponse,GameRoute
{
int32 Id = 1; //物品id
bool Task = 2; //拿起
}
/// 请求拿起物品响应
message Game2C_TakeItemResponse // ICustomRouteResponse
{
int32 Id = 1; //物品id
bool Task = 2; //拿起
}
//************** 参数变化 **********************
message C2Game_RolePropertyChange // ICustomRouteMessage,GameRoute
{
repeated KeyValueInt64 Propertys = 1; //变化的属性信息
}
///玩家状态变化同步
message Game2C_RoleStateNotify // ICustomRouteMessage,GameRoute
{
int64 Id = 1;
UnitStateInfo State = 2;
}
///玩家钓组变化
message Game2C_RoleGearChangeNotify // ICustomRouteMessage,GameRoute
{
int64 Id = 1;
repeated GearInfo Gears = 2; //钓组数据
}
//玩家属性值变化
message Game2C_RolePropertyChangeNotify // ICustomRouteMessage,GameRoute
{
int64 Id = 1;
repeated KeyValueInt64 Propertys = 2; //变化的属性信息
}
//************** 移动 旋转 **********************
// 角色移动
message C2Game_Move // ICustomRouteMessage,GameRoute
{
Vector3Info Position = 1; //当前位置
Vector3Info Rotation = 2; //角色方向
Vector3Info Direction = 3; // 移动方向
bool IsStop = 4; // 是否是停止移动
bool IsRun = 5;
int64 Timestamp = 6; // 时间点
}
// 角色朝向变化
message C2Game_Look // ICustomRouteMessage,GameRoute
{
Vector3Info Rotation = 1; //角色方向
int64 Timestamp = 2; // 时间点
}
///玩家移动推送
message Game2C_MoveNotify // ICustomRouteMessage,GameRoute
{
int64 Id = 1; // id
Vector3Info Position = 2; //当前位置
Vector3Info Rotation = 3; //角色方向
Vector3Info Direction = 4; // 移动方向
bool IsStop = 5; // 是否停止移动
bool IsRun = 6; //是否奔跑
int64 Timestamp = 7; // 时间点
}
///玩家旋转推送
message Game2C_LookeNotify // ICustomRouteMessage,GameRoute
{
int64 Id = 1; // id
Vector3Info Rotation = 2; //角色方向
int64 Timestamp = 3; // 时间点
}