52 lines
1.2 KiB
Protocol Buffer
52 lines
1.2 KiB
Protocol Buffer
message Vector3Info
|
|
{
|
|
float x = 1;
|
|
float y = 2;
|
|
float z = 3;
|
|
}
|
|
|
|
message Vector2Info
|
|
{
|
|
float x = 1;
|
|
float y = 2;
|
|
}
|
|
|
|
message QuaternionInfo
|
|
{
|
|
float x = 1;
|
|
float y = 2;
|
|
float z = 3;
|
|
float w = 4;
|
|
}
|
|
|
|
///玩家当前使用钓组信息
|
|
message GearInfo
|
|
{
|
|
ItemInfo Item = 1; //主物品id
|
|
repeated ItemInfo Binds = 2; //物品配件
|
|
Vector3Info Position = 3; //物品当前位置
|
|
Vector3Info Rotation = 4; //物品方向
|
|
repeated KeyValueInt64 Propertys = 5; //物品参数信息
|
|
bool InUse = 6; //使用中
|
|
bool InHand = 7; //在手中
|
|
}
|
|
|
|
|
|
message UnitStateInfo
|
|
{
|
|
int32 State = 1; //状态id
|
|
repeated KeyValueInt64 Propertys = 2; //状态参数信息
|
|
}
|
|
|
|
message MapUnitInfo
|
|
{
|
|
int64 Id = 1; //用户id
|
|
RoleSimpleInfo RoleInfo = 2; //基础信息
|
|
Vector3Info Position = 3; //当前位置
|
|
Vector3Info Rotation = 4; //角色方向
|
|
UnitStateInfo State = 5; //状态信息
|
|
repeated GearInfo Gears = 6; //钓组数据
|
|
repeated KeyValueInt64 Propertys = 7; //属性信息
|
|
}
|
|
|