44 lines
1.1 KiB
Protocol Buffer
44 lines
1.1 KiB
Protocol Buffer
syntax = "proto3";
|
|
package Fantasy.Network.Message;
|
|
|
|
/// 请求创建房间
|
|
message C2Game_CreateRoomRequest // ICustomRouteRequest,Game2C_CreateRoomResponse,MapRoute
|
|
{
|
|
int32 MapId = 1;//地图id
|
|
string Password = 2;//进入密码
|
|
}
|
|
|
|
/// 请求创建房间成功
|
|
message Game2C_CreateRoomResponse // ICustomRouteResponse
|
|
{
|
|
int32 MapId = 1;//地图id
|
|
int64 RoomId = 2;//房间id
|
|
}
|
|
|
|
/// 请求进入地图
|
|
message C2Game_EnterMapRequest // ICustomRouteRequest,Game2C_EnterMapResponse,MapRoute
|
|
{
|
|
int32 MapId = 1; //房间id
|
|
int32 Type = 2; //进入地图方式
|
|
}
|
|
|
|
/// 请求进入地图响应
|
|
message Game2C_EnterMapResponse // ICustomRouteResponse
|
|
{
|
|
int32 MapId = 1; //地图id
|
|
int Pos = 2; //位置
|
|
}
|
|
|
|
/// 请求进入房间
|
|
message C2Game_EnterRoomRequest // ICustomRouteRequest,Game2C_EnterRoomResponse,MapRoute
|
|
{
|
|
int32 MapId = 1;//房间id
|
|
string Password = 2;//进入密码
|
|
}
|
|
|
|
/// 请求进入房间响应
|
|
message Game2C_EnterRoomResponse // ICustomRouteResponse
|
|
{
|
|
int32 MapId = 1;//地图id
|
|
int64 RoomId = 2;//房间id
|
|
} |