Пример #1
0
        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);
            }
        }
Пример #2
0
        public stApplicantInfo GetApplicantByUid(ulong uid)
        {
            stApplicantInfo result = default(stApplicantInfo);

            if (this.m_ApplicantDic.ContainsKey(uid))
            {
                this.m_ApplicantDic.TryGetValue(uid, ref result);
            }
            return(result);
        }
Пример #3
0
        public stApplicantInfo GetApplicantByUid(ulong uid)
        {
            stApplicantInfo info = new stApplicantInfo();

            if (this.m_ApplicantDic.ContainsKey(uid))
            {
                this.m_ApplicantDic.TryGetValue(uid, out info);
            }
            return(info);
        }
Пример #4
0
 public void AddApplicant(stApplicantInfo applicant)
 {
     if (!this.m_ApplicantDic.ContainsKey(applicant.stBriefInfo.uulUid))
     {
         try
         {
             this.m_ApplicantDic.Add(applicant.stBriefInfo.uulUid, applicant);
         }
         catch (Exception)
         {
         }
     }
 }