协议修改

This commit is contained in:
2025-09-25 23:22:07 +08:00
parent ddffaac7b3
commit 5218bc7585
16 changed files with 159 additions and 125 deletions

View File

@@ -6,7 +6,7 @@ package Fantasy.Network.Message;
///用户进入地图
message Map2C_RoleEnterRoomNotify // ICustomRouteMessage,MapRoute
{
MapUnitInfo Info = 1;
MapUnitInfo Info = 2;
}
///用户离开地图
@@ -16,6 +16,10 @@ message Map2C_RoleExitRoomNotify // ICustomRouteMessage,MapRoute
}
//************** 参数变化 **********************
message C2Map_RolePropertyChange // ICustomRouteMessage,MapRoute
{
repeated KeyValueInt64 Propertys = 1; //变化的属性信息
}
///玩家状态变化同步
message Map2C_RoleStateNotify // ICustomRouteMessage,MapRoute
@@ -34,9 +38,12 @@ message Map2C_RoleGearChangeNotify // ICustomRouteMessage,MapRoute
//玩家属性值变化
message Map2C_RolePropertyChangeNotify // ICustomRouteMessage,MapRoute
{
repeated KeyValueInt32 Propertys = 1; //变化的属性信息
int64 Id = 1;
repeated KeyValueInt64 Propertys = 2; //变化的属性信息
}
//************** 移动 旋转 **********************
// 角色移动
@@ -46,7 +53,8 @@ message C2Map_Move // ICustomRouteMessage,MapRoute
Vector3Info Rotation = 2; //角色方向
Vector3Info Direction = 3; // 移动方向
bool IsStop = 4; // 是否是停止移动
int64 Timestamp = 5; // 时间点
bool IsRun = 5;
int64 Timestamp = 6; // 时间点
}
// 角色朝向变化

View File

@@ -13,26 +13,12 @@ message RoleBaseInfo
VipInfo VipInfo = 7; //vip信息
}
message KeyValueStringInt64
{
string Key = 1; //键
int64 Value = 2; //值
}
message KeyValueInt32
{
int32 Key = 1; //键
int32 Value = 2; //值
}
message KeyValueInt64
{
int64 Key = 1; //键
int64 Value = 2; //值
}
message KeyValueString
{
string Key = 1; //键
string Value = 2; //值
int32 Key = 1; //键
int64 Value = 2; //
}
@@ -105,7 +91,7 @@ message ActivityInfo
int64 Id = 1; //活动id
int64 StartTime = 2; //开始时间
int64 EndTime = 3; //结束时间
repeated KeyValueStringInt64 Data = 4; //活动数据
repeated KeyValueInt64 Data = 4; //活动数据
}
///技能情况

View File

@@ -23,20 +23,17 @@ message QuaternionInfo
message GearInfo
{
int64 Rod = 1;
repeated int64 Rigs = 2; //钓组配件
float LineLength = 3; //线长度
float ReelSpeed = 4; //收线速度
int32 State = 5; //杆子状态
Vector3Info Position = 6; //钓组当前位置
Vector3Info Rotation = 7; //钓组方向
repeated int64 Rigs = 2; //钓组配件
Vector3Info Position = 3; //钓组当前位置
Vector3Info Rotation = 4; //钓组方向
repeated KeyValueInt64 Propertys = 5; //钓组参数信息
}
message UnitStateInfo
{
int32 State = 1; //状态id
repeated string Args = 2; //状态参数
repeated KeyValueInt64 Propertys = 2; //状态参数信息
}
message MapUnitInfo
@@ -46,7 +43,7 @@ message MapUnitInfo
Vector3Info Position = 3; //当前位置
Vector3Info Rotation = 4; //角色方向
UnitStateInfo State = 5; //状态信息
repeated GearInfo Gears = 7; //钓组数据
repeated KeyValueInt32 Propertys = 8; //属性信息
repeated GearInfo Gears = 6; //钓组数据
repeated KeyValueInt64 Propertys = 7; //属性信息
}