1
This commit is contained in:
parent
5d871e61ce
commit
8a6f99576c
@ -39,7 +39,6 @@ func (this *player) init(req *pendingLoginRequest, name string, avatarUrl string
|
||||
this.avatarUrl = avatarUrl
|
||||
this.heroId = heroId
|
||||
this.headFrame = headFrame
|
||||
this.internalSetPing(req.msg.GetPing())
|
||||
}
|
||||
|
||||
func (this *player) onOffline(){
|
||||
|
@ -7,8 +7,6 @@ enum CMMessageId_e
|
||||
_CMPing = 101;
|
||||
_CMLogin = 103;
|
||||
_CMReconnect = 104;
|
||||
_CMCreateTeam = 105;
|
||||
_CMJoinTeam = 106;
|
||||
_CMLeaveTeam = 107;
|
||||
_CMDisbandTeam = 108;
|
||||
_CMKickOut = 109;
|
||||
@ -17,7 +15,6 @@ enum CMMessageId_e
|
||||
_CMCancel = 112;
|
||||
_CMSetReady = 113;
|
||||
_CMGrantInvitePermission = 114;
|
||||
_CMSetCustomRoomInfo = 115;
|
||||
}
|
||||
|
||||
enum SMMessageId_e
|
||||
@ -26,8 +23,6 @@ enum SMMessageId_e
|
||||
_SMRpcError = 102;
|
||||
_SMLogin = 103;
|
||||
_SMReconnect = 104;
|
||||
_SMCreateTeam = 105;
|
||||
_SMJoinTeam = 106;
|
||||
_SMLeaveTeam = 107;
|
||||
_SMDisbandTeam = 108;
|
||||
_SMKickOut = 109;
|
||||
@ -36,5 +31,4 @@ enum SMMessageId_e
|
||||
_SMCancel = 112;
|
||||
_SMSetReady = 113;
|
||||
_SMGrantInvitePermission = 114;
|
||||
_SMSetCustomRoomInfo = 115;
|
||||
}
|
||||
|
@ -90,6 +90,18 @@ message MFPagination
|
||||
optional int32 total_page = 4; //总页数
|
||||
}
|
||||
|
||||
//创建队伍参数
|
||||
message MFCreateTeamParams
|
||||
{
|
||||
optional int32 map_id = 1; //地图id
|
||||
}
|
||||
|
||||
//加入队伍参数
|
||||
message MFJoinTeamParams
|
||||
{
|
||||
optional string team_uuid = 1; //队伍唯一id
|
||||
}
|
||||
|
||||
//登录
|
||||
message CMLogin
|
||||
{
|
||||
@ -100,7 +112,10 @@ message CMLogin
|
||||
optional string session_id = 20; //账号id
|
||||
optional int32 zone_id = 21; //国家Id
|
||||
optional int32 node_id = 22; //节点id
|
||||
optional int32 ping = 23; //节点id
|
||||
|
||||
//以下二者只能2选一赋值
|
||||
optional MFCreateTeamParams create_team_param = 30;
|
||||
optional MFJoinTeamParams join_team_param = 31;
|
||||
}
|
||||
|
||||
//登录回复
|
||||
@ -109,6 +124,7 @@ message SMLogin
|
||||
optional int32 errcode = 7; //错误码 0:成功 1:重连失败
|
||||
optional string errmsg = 10; //错误描述
|
||||
optional string server_info = 9; //服务器信息(重连时使用)
|
||||
optional string team_uuid = 20; //队伍唯一id
|
||||
}
|
||||
|
||||
//断线重连
|
||||
@ -129,24 +145,6 @@ message SMReconnect
|
||||
optional string errmsg = 2; //错误描述
|
||||
}
|
||||
|
||||
//创建队伍
|
||||
message CMCreateTeam
|
||||
{
|
||||
}
|
||||
|
||||
message SMCreateTeam
|
||||
{
|
||||
}
|
||||
|
||||
//加入队伍
|
||||
message CMJoinTeam
|
||||
{
|
||||
}
|
||||
|
||||
message SMJoinTeam
|
||||
{
|
||||
}
|
||||
|
||||
//离开队伍
|
||||
message CMLeaveTeam
|
||||
{
|
||||
@ -218,12 +216,3 @@ message CMGrantInvitePermission
|
||||
message SMGrantInvitePermission
|
||||
{
|
||||
}
|
||||
|
||||
//设置自定义房间信息
|
||||
message CMSetCustomRoomInfo
|
||||
{
|
||||
}
|
||||
|
||||
message SMSetCustomRoomInfo
|
||||
{
|
||||
}
|
||||
|
@ -39,7 +39,6 @@ func (this *team) init(req *pendingLoginRequest, name string, avatarUrl string,
|
||||
this.avatarUrl = avatarUrl
|
||||
this.heroId = heroId
|
||||
this.headFrame = headFrame
|
||||
this.internalSetPing(req.msg.GetPing())
|
||||
}
|
||||
|
||||
func (this *team) onOffline(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user