Files
Fishing2Server/Config/NetworkProtocol/Outer/RoomMessage.proto

65 lines
1.2 KiB
Protocol Buffer

syntax = "proto3";
package Fantasy.Network.Message;
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_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;
}