syntax = "proto3";
package Sining.Message;

///通知游戏服角色进入该游戏服
message G2Common_EnterRequest // IRouteRequest,G2Common_EnterResponse
{
    int64 AccountId = 1;    //账号id
    int64 GateRouteId = 2;  //网关路由地址
    int32 RouteType = 3;      //登陆的路由类型
}

message G2Common_EnterResponse // IRouteResponse
{
    int64 UnitRouteId = 1; //实体的路由id
    int32 RouteType = 2;   //登陆的场景类型
}

message G2Common_ExitRequest // IRouteRequest,Common2G_ExitResponse
{
    int64 AccountId = 1; //账号id
    int64 GateRouteId = 2;//网关路由地址
}

message Common2G_ExitResponse // IRouteResponse
{
    
}


///获取玩家基础信息
message S2G_GetPlayerBasicInfoRequest // IRouteRequest,G2S_GetPlayerBasicInfoResponse
{
    repeated int64 IdList = 1; // 查询列表
}
///获取玩家基础信息响应
message G2S_GetPlayerBasicInfoResponse // IRouteResponse
{
    repeated RoleSimpleInfo RoleList = 1; 
}



message S2G_ChatMessage // IRouteMessage
{
    ChatMessageInfo Message = 1; //聊天内容
    repeated int64 IdList = 2; // 群发列表
}

///创建聊天频道
message Club2Chat_CreateChannel // IRouteMessage
{
    int64 ChannelId = 1; //频道id
}



/// 请求进入房间
message G2Map_EnterMapRequest // IRouteRequest,Map2G_EnterMapResponse
{
    string RoomCode = 1;                //房间代码
    int64 AccountId = 2;                //账号id
    int32 MapId =3;                     //地图id
}

/// 请求进入房间响应
message Map2G_EnterMapResponse // IRouteResponse
{
    string RoomCode = 1;                //房间代码
    int32 MapId = 2;                    //地图id
    repeated MapUnitInfo Units = 2;     //房间玩家列表
}


/// 请求离开房间
message G2Map_ExitRoomRequest // IRouteRequest,Map2G_ExiRoomResponse
{
    string RoomCode = 1;                //房间代码
    int64 AccountId = 2;                //账号id
}

/// 请求离开房间响应
message Map2G_ExiRoomResponse // IRouteResponse
{
}
