协议定义
This commit is contained in:
@@ -1,12 +1,26 @@
|
||||
syntax = "proto3";
|
||||
package Fantasy.Network.Message;
|
||||
|
||||
message GearItemInfo
|
||||
message RoleGearItemInfo
|
||||
{
|
||||
int64 Id = 1; //唯一id
|
||||
int32 ConfigId = 2; //配置id
|
||||
}
|
||||
|
||||
message RoleGearInfo
|
||||
{
|
||||
RoleGearItemInfo Rod = 1;
|
||||
RoleGearItemInfo Reel = 2;
|
||||
RoleGearItemInfo Bobber = 3;
|
||||
RoleGearItemInfo Hook = 4;
|
||||
RoleGearItemInfo Bait = 5;
|
||||
RoleGearItemInfo Lure = 6;
|
||||
RoleGearItemInfo Weight = 7;
|
||||
RoleGearItemInfo Line = 8;
|
||||
RoleGearItemInfo Leader = 9;
|
||||
RoleGearItemInfo Feeder = 10;
|
||||
}
|
||||
|
||||
message Vector3Info
|
||||
{
|
||||
float x = 1;
|
||||
@@ -21,9 +35,12 @@ message QuaternionInfo
|
||||
float w = 4;
|
||||
}
|
||||
|
||||
message GearStateInfo
|
||||
message RoleFishingInfo
|
||||
{
|
||||
|
||||
float LineLength = 1;//线长度
|
||||
float ReelSpeed = 2;//收线速度
|
||||
bool OpenLight = 3;//打开手电筒
|
||||
int RodSetting = 4;
|
||||
}
|
||||
|
||||
message RoleStateInfo
|
||||
@@ -32,19 +49,14 @@ message RoleStateInfo
|
||||
repeated string Args = 2; //状态参数
|
||||
}
|
||||
|
||||
message MapRoleInfo
|
||||
{
|
||||
RoleSimpleInfo Info = 1; //基础信息
|
||||
}
|
||||
|
||||
message MapRoleInfo
|
||||
{
|
||||
int64 Id = 1; //用户id
|
||||
MapRolePositionInfo Location = 2; //位置信息
|
||||
RoleStateInfo State = 3; //状态信息
|
||||
repeated GearItemInfo Gears = 4; //钓组数据
|
||||
MapRoleInfo Info = 5; //玩家信息
|
||||
GearStateInfo GearStateInfo = 6; //钓组状态信息
|
||||
RoleSimpleInfo RoleInfo = 2; //基础信息
|
||||
MapRolePositionInfo Location = 3; //位置信息
|
||||
RoleStateInfo State = 4; //状态信息
|
||||
RoleGearInfo Gears = 5; //钓组数据
|
||||
RoleFishingInfo FishingInfo = 6; //钓鱼状态信息
|
||||
}
|
||||
|
||||
message MapRolePositionInfo
|
||||
@@ -53,6 +65,17 @@ message MapRolePositionInfo
|
||||
QuaternionInfo Rotation = 2;
|
||||
}
|
||||
|
||||
C2Map_CreateMapRequest // ICustomRouteRequest,Map2C_CreateMapResponse,MapRoute
|
||||
{
|
||||
int32 MapId = 1;//地图id
|
||||
string Password = 2;//进入密码
|
||||
}
|
||||
|
||||
message Map2C_CreateMapResponse // ICustomRouteResponse
|
||||
{
|
||||
repeated MapRoleInfo Roles = 1;//地图玩家列表
|
||||
}
|
||||
|
||||
message C2Map_EnterMapRequest // ICustomRouteRequest,Map2C_EnterMapResponse,MapRoute
|
||||
{
|
||||
int32 MapId = 1;//地图id
|
||||
@@ -95,14 +118,14 @@ message Map2C_RoleStateNotify // ICustomRouteMessage,MapRoute
|
||||
message Map2C_RoleGearStateNotify // ICustomRouteMessage,MapRoute
|
||||
{
|
||||
int64 Id = 1;
|
||||
GearStateInfo State = 2;
|
||||
RoleFishingInfo State = 2;
|
||||
}
|
||||
|
||||
///玩家钓组变化
|
||||
message Map2C_RoleGearChangeNotify // ICustomRouteMessage,MapRoute
|
||||
{
|
||||
int64 Id = 1;
|
||||
repeated GearItemInfo Gears = 2; //钓组数据
|
||||
RoleGearInfo Gears = 2; //钓组数据
|
||||
}
|
||||
|
||||
///玩家位置变化
|
||||
|
||||
Reference in New Issue
Block a user