public void OnGuildApprove(ulong uulUid, byte result) { stApplicantInfo applicantByUid = this.m_Model.GetApplicantByUid(uulUid); COMDT_GUILD_MEMBER_BRIEF_INFO info = new COMDT_GUILD_MEMBER_BRIEF_INFO(); if (applicantByUid.stBriefInfo.uulUid == 0) { this.m_View.RefreshApplyListPanel(); } else { this.m_Model.RemoveApplicant(applicantByUid.stBriefInfo.uulUid); info.dwGameEntity = applicantByUid.stBriefInfo.dwGameEntity; StringHelper.StringToUTF8Bytes(applicantByUid.stBriefInfo.szHeadUrl, ref info.szHeadUrl); info.dwLevel = applicantByUid.stBriefInfo.dwLevel; info.dwAbility = applicantByUid.stBriefInfo.dwAbility; info.iLogicWorldID = applicantByUid.stBriefInfo.dwLogicWorldId; StringHelper.StringToUTF8Bytes(applicantByUid.stBriefInfo.sName, ref info.szName); info.ullUid = applicantByUid.stBriefInfo.uulUid; info.stVip.dwScore = applicantByUid.stBriefInfo.stVip.score; info.stVip.dwCurLevel = applicantByUid.stBriefInfo.stVip.level; info.stVip.dwHeadIconId = applicantByUid.stBriefInfo.stVip.headIconId; this.GuildApprove(info, result); } }
private void GuildApprove(COMDT_GUILD_MEMBER_BRIEF_INFO info, byte result) { CSPkg msg = NetworkModule.CreateDefaultCSPKG(0x8b1); msg.stPkgData.stApproveJoinGuildApply.stApplyInfo = info; msg.stPkgData.stApproveJoinGuildApply.bAgree = result; Singleton <NetworkModule> .GetInstance().SendLobbyMsg(ref msg, false); Singleton <CUIManager> .GetInstance().CloseSendMsgAlert(); this.m_View.RefreshApplyListPanel(); }