This commit is contained in:
aozhiwei 2024-03-08 16:50:37 +08:00
parent 5d871e61ce
commit 8a6f99576c
4 changed files with 17 additions and 36 deletions

View File

@ -39,7 +39,6 @@ func (this *player) init(req *pendingLoginRequest, name string, avatarUrl string
this.avatarUrl = avatarUrl this.avatarUrl = avatarUrl
this.heroId = heroId this.heroId = heroId
this.headFrame = headFrame this.headFrame = headFrame
this.internalSetPing(req.msg.GetPing())
} }
func (this *player) onOffline(){ func (this *player) onOffline(){

View File

@ -7,8 +7,6 @@ enum CMMessageId_e
_CMPing = 101; _CMPing = 101;
_CMLogin = 103; _CMLogin = 103;
_CMReconnect = 104; _CMReconnect = 104;
_CMCreateTeam = 105;
_CMJoinTeam = 106;
_CMLeaveTeam = 107; _CMLeaveTeam = 107;
_CMDisbandTeam = 108; _CMDisbandTeam = 108;
_CMKickOut = 109; _CMKickOut = 109;
@ -17,7 +15,6 @@ enum CMMessageId_e
_CMCancel = 112; _CMCancel = 112;
_CMSetReady = 113; _CMSetReady = 113;
_CMGrantInvitePermission = 114; _CMGrantInvitePermission = 114;
_CMSetCustomRoomInfo = 115;
} }
enum SMMessageId_e enum SMMessageId_e
@ -26,8 +23,6 @@ enum SMMessageId_e
_SMRpcError = 102; _SMRpcError = 102;
_SMLogin = 103; _SMLogin = 103;
_SMReconnect = 104; _SMReconnect = 104;
_SMCreateTeam = 105;
_SMJoinTeam = 106;
_SMLeaveTeam = 107; _SMLeaveTeam = 107;
_SMDisbandTeam = 108; _SMDisbandTeam = 108;
_SMKickOut = 109; _SMKickOut = 109;
@ -36,5 +31,4 @@ enum SMMessageId_e
_SMCancel = 112; _SMCancel = 112;
_SMSetReady = 113; _SMSetReady = 113;
_SMGrantInvitePermission = 114; _SMGrantInvitePermission = 114;
_SMSetCustomRoomInfo = 115;
} }

View File

@ -90,6 +90,18 @@ message MFPagination
optional int32 total_page = 4; // optional int32 total_page = 4; //
} }
//
message MFCreateTeamParams
{
optional int32 map_id = 1; //id
}
//
message MFJoinTeamParams
{
optional string team_uuid = 1; //id
}
// //
message CMLogin message CMLogin
{ {
@ -100,7 +112,10 @@ message CMLogin
optional string session_id = 20; //id optional string session_id = 20; //id
optional int32 zone_id = 21; //Id optional int32 zone_id = 21; //Id
optional int32 node_id = 22; //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 int32 errcode = 7; // 0 1:
optional string errmsg = 10; // optional string errmsg = 10; //
optional string server_info = 9; //使 optional string server_info = 9; //使
optional string team_uuid = 20; //id
} }
//线 //线
@ -129,24 +145,6 @@ message SMReconnect
optional string errmsg = 2; // optional string errmsg = 2; //
} }
//
message CMCreateTeam
{
}
message SMCreateTeam
{
}
//
message CMJoinTeam
{
}
message SMJoinTeam
{
}
// //
message CMLeaveTeam message CMLeaveTeam
{ {
@ -218,12 +216,3 @@ message CMGrantInvitePermission
message SMGrantInvitePermission message SMGrantInvitePermission
{ {
} }
//
message CMSetCustomRoomInfo
{
}
message SMSetCustomRoomInfo
{
}

View File

@ -39,7 +39,6 @@ func (this *team) init(req *pendingLoginRequest, name string, avatarUrl string,
this.avatarUrl = avatarUrl this.avatarUrl = avatarUrl
this.heroId = heroId this.heroId = heroId
this.headFrame = headFrame this.headFrame = headFrame
this.internalSetPing(req.msg.GetPing())
} }
func (this *team) onOffline(){ func (this *team) onOffline(){