コード例 #1
0
        public override void Init()
        {
            base.Init();
            this.m_Model = Singleton <CGuildModel> .GetInstance();

            this.m_View = Singleton <CGuildListView> .GetInstance();

            Singleton <EventRouter> .GetInstance().AddEventHandler <int, int>("Request_Guild_List", new Action <int, int>(this.OnRequestGuildList));

            Singleton <EventRouter> .GetInstance().AddEventHandler <ListView <GuildInfo>, bool>("Receive_Guild_List_Success", new Action <ListView <GuildInfo>, bool>(this.OnReceiveGuildListSuccess));

            Singleton <EventRouter> .GetInstance().AddEventHandler <int>("Request_PrepareGuild_List", new Action <int>(this.OnRequestPrepareGuildList));

            Singleton <EventRouter> .GetInstance().AddEventHandler <ListView <PrepareGuildInfo>, uint, byte, byte>("Receive_PrepareGuild_List_Success", new Action <ListView <PrepareGuildInfo>, uint, byte, byte>(this.OnReceivePrepareGuildList));

            Singleton <EventRouter> .GetInstance().AddEventHandler("Request_PrepareGuild_Info", new Action(this.OnRequestPrepareGuldInfo));

            Singleton <EventRouter> .GetInstance().AddEventHandler <PrepareGuildInfo>("Receive_PrepareGuild_Info_Success", new Action <PrepareGuildInfo>(this.OnRequestPrepareGuldInfoSuccess));

            Singleton <EventRouter> .GetInstance().AddEventHandler("Receive_PrepareGuild_Info_Failed", new Action(this.OnRequestPrepareGuldInfoFailed));

            Singleton <EventRouter> .GetInstance().AddEventHandler <stPrepareGuildCreateInfo>("PrepareGuild_Create", new Action <stPrepareGuildCreateInfo>(this.OnRequestCreatePrepareGuild));

            Singleton <EventRouter> .GetInstance().AddEventHandler <PrepareGuildInfo>("Receive_PrepareGuild_Create_Success", new Action <PrepareGuildInfo>(this.OnReceivePrepareGuildCreateSuccess));

            Singleton <EventRouter> .GetInstance().AddEventHandler("Receive_PrepareGuild_Create_Failed", new Action(this.OnReceivePrepareGuildCreateFailed));

            Singleton <EventRouter> .GetInstance().AddEventHandler <GuildInfo>("Request_Apply_Guild_Join", new Action <GuildInfo>(this.OnRequestApplyJoinGuild));

            Singleton <EventRouter> .GetInstance().AddEventHandler <stAppliedGuildInfo>("Receive_Apply_Guild_Join_Success", new Action <stAppliedGuildInfo>(this.OnReceiveApplyJoinGuildSuccess));

            Singleton <EventRouter> .GetInstance().AddEventHandler <stAppliedGuildInfo>("Receive_Apply_Guild_Join_Failed", new Action <stAppliedGuildInfo>(this.OnReceiveApplyJoinGuildFailed));

            Singleton <EventRouter> .GetInstance().AddEventHandler <PrepareGuildInfo>("PrepareGuild_Join", new Action <PrepareGuildInfo>(this.OnRequestJoinPrepareGuild));

            Singleton <EventRouter> .GetInstance().AddEventHandler <PrepareGuildInfo>("Receive_PrepareGuild_Join_Success", new Action <PrepareGuildInfo>(this.OnReceivePrepareGuildJoinSuccess));

            Singleton <EventRouter> .GetInstance().AddEventHandler <PrepareGuildInfo>("Receive_PrepareGuild_Join_Rsp", new Action <PrepareGuildInfo>(this.OnReceivePrepareGuildJoinFailed));

            Singleton <EventRouter> .GetInstance().AddEventHandler("Guild_Quit_Success", new Action(this.OnGuildQuitSuccess));

            Singleton <EventRouter> .GetInstance().AddEventHandler <GuildInfo, int>("Receive_Guild_Search_Success", new Action <GuildInfo, int>(this.OnReceiveGuildSearchSuccess));

            Singleton <EventRouter> .GetInstance().AddEventHandler <PrepareGuildInfo, int>("Receive_Search_Prepare_Guild_Success", new Action <PrepareGuildInfo, int>(this.OnReceiveSearchPrepareGuildSuccess));
        }
コード例 #2
0
        public override void Init()
        {
            base.Init();
            this.m_Model = Singleton <CGuildModel> .GetInstance();

            this.m_View = Singleton <CGuildInfoView> .GetInstance();

            Singleton <EventRouter> .GetInstance().AddEventHandler <GuildInfo>("Receive_Guild_Info_Success", new Action <GuildInfo>(this.OnReceiveGuildInfoSuccess));

            Singleton <EventRouter> .GetInstance().AddEventHandler("Receive_Guild_Info_Failed", new Action(this, (IntPtr)this.OnReceiveGuildInfoFailed));

            Singleton <EventRouter> .GetInstance().AddEventHandler <GuildInfo>("Guild_Create_Or_Add_Success", new Action <GuildInfo>(this.OnCreateOrAddSuccess));

            Singleton <EventRouter> .GetInstance().AddEventHandler("Guild_New_Applicant", new Action(this, (IntPtr)this.OnNewApplicant));

            Singleton <EventRouter> .GetInstance().AddEventHandler <RES_GUILD_DONATE_TYPE>("Request_Guild_Donate", new Action <RES_GUILD_DONATE_TYPE>(this.OnRequestGuildDonate));

            Singleton <EventRouter> .GetInstance().AddEventHandler("Guild_Get_Guild_Dividend", new Action(this, (IntPtr)this.OnGuildGetGuildDividend));

            Singleton <EventRouter> .GetInstance().AddEventHandler <uint>("Request_Guild_Setting_Modify", new Action <uint>(this.OnRequestGuildSettingModify));

            Singleton <EventRouter> .GetInstance().AddEventHandler("Guild_Setting_Modify_Success", new Action(this, (IntPtr)this.OnGuildSettingModifySuccess));

            Singleton <EventRouter> .GetInstance().AddEventHandler <uint>("Guild_Setting_Modify_Failed", new Action <uint>(this.OnGuildSettingModifyFailed));

            Singleton <EventRouter> .GetInstance().AddEventHandler <uint>("Guild_Setting_Modify_Icon", new Action <uint>(this.OnGuildSettingModifyIcon));

            Singleton <EventRouter> .GetInstance().AddEventHandler("Guild_Setting_Modify_Icon_Success", new Action(this, (IntPtr)this.OnGuildSettingModifyIconSuccess));

            Singleton <EventRouter> .GetInstance().AddEventHandler <string>("Guild_Modify_Bulletin", new Action <string>(this.OnGuildModifyBulletin));

            Singleton <EventRouter> .GetInstance().AddEventHandler("Guild_Modify_Bulletin_Success", new Action(this, (IntPtr)this.OnGuildModifyBulletinSuccess));

            Singleton <EventRouter> .GetInstance().AddEventHandler("Guild_Request_Extend_Member_Limit", new Action(this, (IntPtr)this.OnGuildRequestExtendMemberLimit));

            Singleton <EventRouter> .GetInstance().AddEventHandler <ulong, byte>("Guild_Approve", new Action <ulong, byte>(this, (IntPtr)this.OnGuildApprove));

            Singleton <EventRouter> .GetInstance().AddEventHandler("Guild_New_Member", new Action(this, (IntPtr)this.OnNewMember));

            Singleton <EventRouter> .GetInstance().AddEventHandler("Request_Apply_List", new Action(this, (IntPtr)this.OnRequestApplyList));

            Singleton <EventRouter> .GetInstance().AddEventHandler <List <stApplicantInfo>, uint, byte, byte>("Receive_Apply_List_Success", new Action <List <stApplicantInfo>, uint, byte, byte>(this, (IntPtr)this.OnReceiveApplyListSuccess));

            Singleton <EventRouter> .GetInstance().AddEventHandler("Guild_Quit", new Action(this, (IntPtr)this.OnGuildQuit));

            Singleton <EventRouter> .GetInstance().AddEventHandler("Guild_Quit_Success", new Action(this, (IntPtr)this.OnGuildQuitSuccess));

            Singleton <EventRouter> .GetInstance().AddEventHandler("Guild_Quit_Failed", new Action(this, (IntPtr)this.OnGuildQuitFailed));

            Singleton <EventRouter> .GetInstance().AddEventHandler("Guild_Member_Quit", new Action(this, (IntPtr)this.OnMemberQuit));

            Singleton <EventRouter> .GetInstance().AddEventHandler <ulong>("Guild_Apply_Time_Up", new Action <ulong>(this.OnGuildApplyTimeUp));

            Singleton <EventRouter> .GetInstance().AddEventHandler <ulong>("Guild_Invite", new Action <ulong>(this.OnGuildInvite));

            Singleton <EventRouter> .GetInstance().AddEventHandler <ulong>("Guild_Recommend", new Action <ulong>(this.OnGuildRecommend));

            Singleton <EventRouter> .GetInstance().AddEventHandler("Request_Recommend_List", new Action(this, (IntPtr)this.OnRequestRecommendList));

            Singleton <EventRouter> .GetInstance().AddEventHandler <List <stRecommendInfo>, uint, byte, byte>("Receive_Recommend_List_Success", new Action <List <stRecommendInfo>, uint, byte, byte>(this, (IntPtr)this.OnReceiveRecommendListSuccess));

            Singleton <EventRouter> .GetInstance().AddEventHandler <ulong>("Guild_Reject_Recommend", new Action <ulong>(this.OnGuildRejectRecommend));

            Singleton <EventRouter> .GetInstance().AddEventHandler <int>("Guild_Building_Upgrade", new Action <int>(this.OnGuildBuildingUpgrade));

            Singleton <EventRouter> .GetInstance().AddEventHandler <ulong, byte, ulong>("Guild_Position_Appoint", new Action <ulong, byte, ulong>(this, (IntPtr)this.OnGuildPositionAppoint));

            Singleton <EventRouter> .GetInstance().AddEventHandler <ulong>("Guild_Position_Confirm_Fire_Member", new Action <ulong>(this.OnGuildPositionConfirmFireMember));

            Singleton <EventRouter> .GetInstance().AddEventHandler("Guild_Position_Confirm_Recommend_Self_As_Chairman", new Action(this, (IntPtr)this.OnGuildPositionConfirmRecommendSelfAsChairman));

            Singleton <EventRouter> .GetInstance().AddEventHandler <ulong, bool>("Guild_Position_Deal_Self_Recommend", new Action <ulong, bool>(this, (IntPtr)this.OnGuildPositionDealSelfRecommend));

            Singleton <EventRouter> .GetInstance().AddEventHandler <enGuildRankpointRankListType, bool>("Guild_Request_Rankpoint_Rank_List", new Action <enGuildRankpointRankListType, bool>(this, (IntPtr)this.OnGuildRankpointRequestRankList));

            Singleton <EventRouter> .GetInstance().AddEventHandler <int, uint>("Guild_Symbol_Operate_Symbol", new Action <int, uint>(this, (IntPtr)this.OnGuildSymbolOperateSymbol));

            Singleton <EventRouter> .GetInstance().AddEventHandler <int, int>("Guild_Preview_Get_Ranking_List", new Action <int, int>(this, (IntPtr)this.OnGuildPreviewRequestRankingList));

            Singleton <EventRouter> .GetInstance().AddEventHandler <ListView <GuildInfo>, bool>("Receive_Guild_List_Success", new Action <ListView <GuildInfo>, bool>(this, (IntPtr)this.OnReceiveGuildListSuccess));

            Singleton <EventRouter> .GetInstance().AddEventHandler <GuildInfo, int>("Receive_Guild_Search_Success", new Action <GuildInfo, int>(this, (IntPtr)this.OnReceiveGuildSearchSuccess));

            Singleton <EventRouter> .GetInstance().AddEventHandler("Guild_Accept_Invite", new Action(this, (IntPtr)this.OnAcceptInvite));

            Singleton <CUIEventManager> .GetInstance().AddUIEventListener(enUIEventID.Guild_Hyperlink_Search_Guild, new CUIEventManager.OnUIEventHandler(this.OnHyperLinkSearchGuild));

            Singleton <CUIEventManager> .GetInstance().AddUIEventListener(enUIEventID.Guild_Hyperlink_Search_PrepareGuild, new CUIEventManager.OnUIEventHandler(this.OnHyperLinkSearchPrepareGuild));

            Singleton <EventRouter> .GetInstance().AddEventHandler("Guild_Sign", new Action(this, (IntPtr)this.OnGuildSignIn));

            Singleton <EventRouter> .GetInstance().AddEventHandler <bool>("Guild_Sign_State_Changed", new Action <bool>(this.OnGuildSignStateChanged));

            Singleton <EventRouter> .GetInstance().AddEventHandler("Guild_QQGroup_Refresh_QQGroup_Panel", new Action(this, (IntPtr)this.OnRefreshQQGroupPanel));

            Singleton <EventRouter> .GetInstance().AddEventHandler("Guild_QQGroup_Request_Group_Guild_Id", new Action(this, (IntPtr)this.OnRequestGroupGuildId));

            Singleton <EventRouter> .GetInstance().AddEventHandler <string>("Guild_QQGroup_Set_Guild_Group_Open_Id", new Action <string>(this.OnSetGuildGroupOpenId));

            Singleton <EventRouter> .GetInstance().AddEventHandler("MasterPvpLevelChanged", new Action(this, (IntPtr)this.OnMasterPvpLevelChanged));

            Singleton <EventRouter> .GetInstance().AddEventHandler(EventID.NAMECHANGE_GUILD_NAME_CHANGE, new Action(this, (IntPtr)this.OnGuildNameChange));

            Singleton <EventRouter> .GetInstance().AddEventHandler(EventID.GLOBAL_REFRESH_TIME, new Action(this, (IntPtr)this.OnGlobalRefreshTime));
        }
コード例 #3
0
        public CGuildListView()
        {
            this.m_Model = Singleton <CGuildModel> .GetInstance();

            this.Init();
        }