Files
Fishing2Server/Config/NetworkProtocol/Outer/data/MapProtoData.proto

66 lines
1.4 KiB
Protocol Buffer

message UnitGearItemInfo
{
int64 Id = 1; //唯一id
int32 ConfigId = 2; //配置id
}
message UnitGearInfo
{
UnitGearItemInfo Rod = 1;
UnitGearItemInfo Reel = 2;
UnitGearItemInfo Bobber = 3;
UnitGearItemInfo Hook = 4;
UnitGearItemInfo Bait = 5;
UnitGearItemInfo Lure = 6;
UnitGearItemInfo Weight = 7;
UnitGearItemInfo Line = 8;
UnitGearItemInfo Leader = 9;
UnitGearItemInfo Feeder = 10;
}
message Vector3Info
{
float x = 1;
float y = 2;
float z = 3;
}
message QuaternionInfo
{
float x = 1;
float y = 2;
float z = 3;
float w = 4;
}
message UnitFishingInfo
{
float LineLength = 1;//线长度
float ReelSpeed = 2;//收线速度
bool OpenLight = 3;//打开手电筒
int RodSetting = 4;
}
message UnitStateInfo
{
int32 State = 1; //状态id
repeated string Args = 2; //状态参数
}
message MapUnitInfo
{
int64 Id = 1; //用户id
RoleSimpleInfo RoleInfo = 2; //基础信息
MapUnitPositionInfo Location = 3; //位置信息
UnitStateInfo State = 4; //状态信息
UnitGearInfo Gears = 5; //钓组数据
UnitFishingInfo FishingInfo = 6; //钓鱼状态信息
repeated KeyValueInt32 KV = 7; //属性信息
}
message MapUnitPositionInfo
{
Vector3Info Position = 1;
QuaternionInfo Rotation = 2;
}