syntax = "proto3"; package Fantasy.Network.Message; 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; } message C2Map_EnterRoomRequest // ICustomRouteRequest,Map2C_EnterRoomResponse,MapRoute { int32 MapId = 1;//房间id string Password = 2;//进入密码 } message Map2C_EnterRoomResponse // ICustomRouteResponse { int32 MapId = 1;//地图id int64 RoomId = 2;//房间id } message C2Map_EnterMapRequest // ICustomRouteRequest,Map2C_EnterMapResponse,MapRoute { int32 MapId = 1;//地图id int64 RoomId = 2;//房间id,如果联机则有 } message Map2C_EnterMapResponse // ICustomRouteResponse { repeated MapUnitInfo Roles = 1; //地图玩家列表 int64 MapId = 2; //地图id } message C2Map_Move // ICustomRouteMessage,MapRoute { MapUnitPositionInfo Location = 1; bool IsStop = 2; } ///用户进入地图 message Map2C_RoleEnterMapNotify // ICustomRouteMessage,MapRoute { MapUnitInfo Info = 1; } ///用户离开地图 message Map2C_RoleExitMapNotify // ICustomRouteMessage,MapRoute { int64 Id = 1;//离开人员 } ///玩家状态变化同步 message Map2C_RoleStateNotify // ICustomRouteMessage,MapRoute { int64 Id = 1; UnitStateInfo State = 2; } ///玩家钓组状态变化 message Map2C_RoleGearStateNotify // ICustomRouteMessage,MapRoute { int64 Id = 1; UnitFishingInfo State = 2; } ///玩家钓组变化 message Map2C_RoleGearChangeNotify // ICustomRouteMessage,MapRoute { int64 Id = 1; UnitGearInfo Gears = 2; //钓组数据 } ///玩家位置变化 message Map2C_MoveNotify { int64 Id = 1; MapUnitPositionInfo Location = 2; }