55 lines
1.3 KiB
Protocol Buffer
55 lines
1.3 KiB
Protocol Buffer
syntax = "proto3";
|
|
package Fantasy.Network.Message;
|
|
|
|
/// 请求创建房间
|
|
message C2Map_CreateRoomRequest // ICustomRouteRequest,Map2C_CreateRoomResponse,GameRoute
|
|
{
|
|
int32 MapId = 1;//地图id
|
|
}
|
|
|
|
/// 请求创建房间成功
|
|
message Map2C_CreateRoomResponse // ICustomRouteResponse
|
|
{
|
|
string RoomCode = 1; //房间代码
|
|
repeated MapUnitInfo Units = 2; //房间玩家列表
|
|
}
|
|
|
|
|
|
/// 请求网关离开房间(离开房间,但是不离开地图)
|
|
message C2G_ExitRoomRequest // IRequest,G2C_ExitRoomResponse
|
|
{
|
|
string RoomCode = 1; //房间代码
|
|
}
|
|
|
|
/// 请求网关进入离开响应
|
|
message G2C_ExitRoomResponse // IResponse
|
|
{
|
|
string RoomCode = 1; //房间代码
|
|
}
|
|
|
|
/// 请求网关进入地图
|
|
message C2G_EnterMapRequest // IRequest,G2C_EnterMapResponse
|
|
{
|
|
string RoomCode = 1; //房间代码
|
|
int32 MapId = 2; //地图id
|
|
}
|
|
|
|
/// 请求网关进入房间响应
|
|
message G2C_EnterMapResponse // IResponse
|
|
{
|
|
int32 MapId = 1; //地图id
|
|
string RoomCode = 2; //房间代码
|
|
repeated MapUnitInfo Units = 3; //房间玩家列表
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// 通知客户端切换地图
|
|
message Map2C_ChangeMap // ICustomRouteMessage,GameRoute
|
|
{
|
|
int32 MapId = 1; //地图id
|
|
int32 Node = 2; //站位节点
|
|
}
|