CommandCallbackType ReceiveTeamRejectError(byte[] dataBuffer, int socketId) { SMsgTeamMemberJoin_CS sMsgTeamMemberJoin_CS = SMsgTeamMemberJoin_CS.ParsePackage(dataBuffer); var friendList = UI.Friend.FriendDataManager.Instance.GetFriendListData; var friendData = friendList.SingleOrDefault(p => p.sMsgRecvAnswerFriends_SC.dwFriendID == sMsgTeamMemberJoin_CS.dwActorID); if (friendData != null) { if (MessageBox.Instance != null) { MessageBox.Instance.ShowTips(4, friendData.sMsgRecvAnswerFriends_SC.Name + LanguageTextManager.GetString("IDS_H2_22"), 1); } } return(CommandCallbackType.Continue); }
//加入队伍 public void SendTeamMemberJoinMsg(SMsgTeamMemberJoin_CS sMsgTeamMemberJoin) { Package pkg = sMsgTeamMemberJoin.GeneratePackage(); this.Request(pkg); }