コード例 #1
0
        public void Init()
        {
            // 查看玩家信息
            m_viewPlayerRegistInfo = new PopupMenuDataManager.UPopupItemRegisterInfo(PopupMenuDataManager.EPopupItemInfoKey.EInfo_ViewPlayer, ProcessViewPlayer);
            PopupMenuDataManager.Instance.RegisterPopupupItem(ref m_viewPlayerRegistInfo);

            // 邀请组队
            m_teamInviteRegistInfo = new PopupMenuDataManager.UPopupItemRegisterInfo(PopupMenuDataManager.EPopupItemInfoKey.EInfo_TeamInvite, ProcessTeamInivite);
            PopupMenuDataManager.Instance.RegisterPopupupItem(ref m_teamInviteRegistInfo);

            // 请求组队
            m_teamRequestRegistInfo = new PopupMenuDataManager.UPopupItemRegisterInfo(PopupMenuDataManager.EPopupItemInfoKey.EInfo_TeamRequest, ProcessTeamRequest);
            PopupMenuDataManager.Instance.RegisterPopupupItem(ref m_teamRequestRegistInfo);

            // 战队邀请
            m_kinInviteRegistInfo = new PopupMenuDataManager.UPopupItemRegisterInfo(PopupMenuDataManager.EPopupItemInfoKey.EInfo_KinInvite, ProcessKinInivite);
            PopupMenuDataManager.Instance.RegisterPopupupItem(ref m_kinInviteRegistInfo);

            // 联盟邀请
            m_clanInviteRegistInfo = new PopupMenuDataManager.UPopupItemRegisterInfo(PopupMenuDataManager.EPopupItemInfoKey.EInfo_ClanInvite, ProcessClanInivite);
            PopupMenuDataManager.Instance.RegisterPopupupItem(ref m_clanInviteRegistInfo);

            // 添加/删除好友
            m_AddOrDelBuddyInfo = new PopupMenuDataManager.UPopupItemRegisterInfo(PopupMenuDataManager.EPopupItemInfoKey.EInfo_AddOrDelBuddy, processAddOrDelBuddy);
            PopupMenuDataManager.Instance.RegisterPopupupItem(ref m_AddOrDelBuddyInfo);

            // 加入黑名单
            m_AddBlackListInfo = new PopupMenuDataManager.UPopupItemRegisterInfo(PopupMenuDataManager.EPopupItemInfoKey.EInfo_AddBlackList, processAddBlackList);
            PopupMenuDataManager.Instance.RegisterPopupupItem(ref m_AddBlackListInfo);

            // 好友聊听
            m_BuddyChatInfo = new PopupMenuDataManager.UPopupItemRegisterInfo(PopupMenuDataManager.EPopupItemInfoKey.EInfo_BuddyChat, processBuddyChat);
            PopupMenuDataManager.Instance.RegisterPopupupItem(ref m_BuddyChatInfo);

            // 私聊
            m_PrivateChatInfo = new PopupMenuDataManager.UPopupItemRegisterInfo(PopupMenuDataManager.EPopupItemInfoKey.EInfo_PrivateChat, processPrivateChat);
            PopupMenuDataManager.Instance.RegisterPopupupItem(ref m_PrivateChatInfo);

            // PK
            m_PKInfo = new PopupMenuDataManager.UPopupItemRegisterInfo(PopupMenuDataManager.EPopupItemInfoKey.EInfo_PK, processPK);
            PopupMenuDataManager.Instance.RegisterPopupupItem(ref m_PKInfo);
        }
コード例 #2
0
        public void Init()
        {
            m_MasterIssueCount     = 0;
            m_PrenticeIssueCount   = 0;
            m_MentorshipPersonData = new cmd_mentorship_person_baseinfo();
            m_MasterIssueList      = new List <cmd_mentorship_issueinfo>();
            m_PrenticeIssueList    = new List <cmd_mentorship_issueinfo>();
            m_MasterList           = new List <cmd_mentorship_personshipinfo>();
            m_FPrenticeList        = new List <cmd_mentorship_personshipinfo>();
            m_IPrenticeList        = new List <cmd_mentorship_personshipinfo>();
            m_MasterFPrenticeList  = new List <cmd_mentorship_prenticeinfo>();
            m_MasterIPrenticeList  = new List <cmd_mentorship_prenticeinfo>();
            m_ApplyAnwserList      = new Dictionary <int, cmd_mentorship_request_applyanswer>();
            m_MApplyRecordList     = new Dictionary <int, float>();
            m_PApplyRecordList     = new Dictionary <int, float>();

            m_AddMasterInfo = new PopupMenuDataManager.UPopupItemRegisterInfo(PopupMenuDataManager.EPopupItemInfoKey.EInfo_AddMaster, processRightClickAddMaster);
            PopupMenuDataManager.Instance.RegisterPopupupItem(ref m_AddMasterInfo);

            m_AddPrenticeInfo = new PopupMenuDataManager.UPopupItemRegisterInfo(PopupMenuDataManager.EPopupItemInfoKey.EInfo_AddPrentice, processRightClickAddPrentice);
            PopupMenuDataManager.Instance.RegisterPopupupItem(ref m_AddPrenticeInfo);
        }