房间创建和进入相关逻辑和协议
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
syntax = "proto3";
|
||||
package Fantasy.Network.Message;
|
||||
|
||||
/// 请求创建房间
|
||||
message C2Map_CreateRoomRequest // ICustomRouteRequest,Map2C_CreateRoomResponse,MapRoute
|
||||
{
|
||||
int32 MapId = 1;//地图id
|
||||
}
|
||||
|
||||
/// 请求创建房间成功
|
||||
message Map2C_CreateRoomResponse // ICustomRouteResponse
|
||||
{
|
||||
string RoomCode = 1; //房间代码
|
||||
repeated MapUnitInfo Units = 2; //房间玩家列表
|
||||
}
|
||||
|
||||
/// 请求网关进入房间
|
||||
message C2G_EnterRoomRequest // IRequest,G2C_EnterRoomResponse
|
||||
{
|
||||
string RoomCode = 1; //房间代码
|
||||
}
|
||||
/// 请求网关进入房间响应
|
||||
message G2C_EnterRoomResponse // IResponse
|
||||
{
|
||||
string RoomCode = 1; //房间代码
|
||||
repeated MapUnitInfo Units = 2; //房间玩家列表
|
||||
}
|
||||
|
||||
|
||||
|
||||
message C2Map_EnterMapRequest // ICustomRouteRequest,Map2C_EnterMapResponse,MapRoute
|
||||
{
|
||||
int32 MapId = 1;//地图id
|
||||
int64 RoomId = 2;//房间id,如果联机则有
|
||||
}
|
||||
|
||||
message Map2C_EnterMapResponse // ICustomRouteResponse
|
||||
{
|
||||
int32 MapId = 1; //地图id
|
||||
}
|
||||
Reference in New Issue
Block a user