Beispiel #1
0
        public void OnRecvMailBaseInfoList(IntPtr ptr, int nLen)
        {
            IntPtrVaArgParseHelper helper = new IntPtrVaArgParseHelper(ptr, nLen);

            GameLogic.gameview_mail_req_basedatalist infoListHead = helper.get <GameLogic.gameview_mail_req_basedatalist>();

            m_MailBaseInfoList.Clear();
            m_MailDetailInfoList.Clear();
            m_PlusMailList.Clear();
            m_MailCount = 0;
            for (int i = 0; i < infoListHead.nCount; ++i)
            {
                GameLogic.gameview_mail_baseinfo cmdNodeData = helper.get <GameLogic.gameview_mail_baseinfo>();
                m_MailBaseInfoList.Add(cmdNodeData);

                if (cmdNodeData.nIsPlusData == 1 && (cmdNodeData.nType == (int)EMMailType.emMailType_Player || cmdNodeData.nType == (int)EMMailType.emMailType_System))
                {
                    m_PlusMailList.Add(cmdNodeData.nMailID);
                }

                if (cmdNodeData.nIsRead == 0)
                {
                    m_MailCount++;
                }
            }

            sortMailBaseInfoList();

            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_MAIL_REQUESTMAILBASELIST, null);
        }
Beispiel #2
0
        public void OnRecvMasterPrenticeList(IntPtr ptr, int nLen)
        {
            IntPtrVaArgParseHelper helper = new IntPtrVaArgParseHelper(ptr, nLen);

            GameLogic.cmd_mentorship_prenticelist_head prenticeListHead = helper.get <GameLogic.cmd_mentorship_prenticelist_head>();

            m_MasterFPrenticeList.Clear();
            m_MasterIPrenticeList.Clear();

            for (int i = 0; i < prenticeListHead.nCount; ++i)
            {
                GameLogic.cmd_mentorship_prenticeinfo cmdNodeData = helper.get <GameLogic.cmd_mentorship_prenticeinfo>();
                if (cmdNodeData.nRelationType == (int)EMMentorshipType.emMentorshipType_Formal)
                {
                    m_MasterFPrenticeList.Add(cmdNodeData);
                }
                else
                {
                    m_MasterIPrenticeList.Add(cmdNodeData);
                }
            }

            sortMasterFPrenticeList();
            sortMasterIPrenticeList();
            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_MENTORSHIP_UPDATEMASTERFPRENTICELIST, null);
            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_MENTORSHIP_UPDATEMASTERIPRENTICELIST, null);
        }
Beispiel #3
0
        /// <summary>
        /// 某个玩家(不包括自己)有物品栏有更新的时候存储他的物品栏数据
        /// </summary>
        /// <param name="_nPtrParam"></param>
        /// <param name="_nPtrLen"></param>
        public void UpdatePlayersGoods(IntPtr _nPtrParam, int _nPtrLen)
        {
            IntPtrVaArgParseHelper        helper    = new IntPtrVaArgParseHelper(_nPtrParam, _nPtrLen);
            cmd_war_persongoodsinfo_count dataCount = helper.get <cmd_war_persongoodsinfo_count>();
            uint pdbid = dataCount.idActor;

            if (dataCount.nCount == 0 || pdbid == 0)
            {
                return;
            }

            if (!m_dicPlayersGoodsTable.ContainsKey(pdbid))
            {
                m_dicPlayersGoodsTable.Add(pdbid, new List <cmd_war_persongoodsinfo>());
            }

            m_dicPlayersGoodsTable[pdbid].Clear();

            for (int i = 0; i < dataCount.nCount; ++i)
            {
                cmd_war_persongoodsinfo data = helper.get <cmd_war_persongoodsinfo>();
                m_dicPlayersGoodsTable[pdbid].Add(data);
            }

            if (LogicDataCenter.recordTableDataManager.isOneRequest == true)
            {
                LogicDataCenter.recordTableDataManager.OnTabClick();
            }

            //通知战绩表更新数据
            if (LogicDataCenter.recordTableDataManager.IsWarRecordTableVisible)
            {
                UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_RECORDTABLE_FIGHTING_UPDATERECORDINFO, null);
            }
        }
Beispiel #4
0
        public void OnRecvMentorshipIssueList(IntPtr ptr, int nLen)
        {
            IntPtrVaArgParseHelper helper = new IntPtrVaArgParseHelper(ptr, nLen);

            GameLogic.cmd_mentorship_issuelist_head issueListHead = helper.get <GameLogic.cmd_mentorship_issuelist_head>();

            if (issueListHead.nIssueType == (int)EMMentorshipIssueType.emMentorshipIssueType_Master)
            {
                m_MasterIssueList.Clear();
                m_MasterIssueCount = issueListHead.nCount;
                for (int i = 0; i < issueListHead.nCount; ++i)
                {
                    GameLogic.cmd_mentorship_issueinfo cmdNodeData = helper.get <GameLogic.cmd_mentorship_issueinfo>();
                    m_MasterIssueList.Add(cmdNodeData);
                }

                UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_MENTORSHIP_MASTERISSUELIST, null);
            }
            else
            {
                m_PrenticeIssueList.Clear();
                m_PrenticeIssueCount = issueListHead.nCount;
                for (int i = 0; i < issueListHead.nCount; ++i)
                {
                    GameLogic.cmd_mentorship_issueinfo cmdNodeData = helper.get <GameLogic.cmd_mentorship_issueinfo>();
                    m_PrenticeIssueList.Add(cmdNodeData);
                }

                UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_MENTORSHIP_PRENTICEISSUELIST, null);
            }
        }
Beispiel #5
0
        public void InitHeroSkinInfo(IntPtr ptrParam, int nPtrLen)
        {
            if (dicSkinInfoData == null)
            {
                return;
            }

            dicSkinInfoData.Clear();
            IntPtrVaArgParseHelper helper = new IntPtrVaArgParseHelper(ptrParam, nPtrLen);
            cmd_count heroCount           = helper.get <cmd_count>();

            for (int i = 0; i < heroCount.nCount; ++i)
            {
                cmd_count talentCount = helper.get <cmd_count>();
                for (int j = 0; j < talentCount.nCount; ++j)
                {
                    cmd_Hero_Skin_Info cmdInfo = helper.get <cmd_Hero_Skin_Info>();
                    int nHeroId = cmdInfo.nHeroId;

                    if (dicSkinInfoData.ContainsKey(cmdInfo.nHeroId))
                    {
                        dicSkinInfoData[nHeroId].Add(cmdInfo);
                    }
                    else
                    {
                        List <cmd_Hero_Skin_Info> listInfo = new List <cmd_Hero_Skin_Info>();
                        listInfo.Add(cmdInfo);
                        dicSkinInfoData[nHeroId] = listInfo;
                    }
                }
            }

            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_HEROSKINVIEW_INITSKINDATA, null);
        }
Beispiel #6
0
        /// <summary>
        /// 接受逻辑层数据
        /// </summary>
        /// <param name="ptr"></param>
        /// <param name="nLen"></param>
        /// <param name="utn">头顶信息实例</param>
        private void SetNameInfo(IntPtr ptr, int nLen, UTopName utn)
        {
            if (null == utn)
            {
                return;
            }
            utn.ClearName();
            IntPtrVaArgParseHelper helper = new IntPtrVaArgParseHelper(ptr, nLen);
            cmd_count cmdCount            = helper.get <cmd_count>();

            for (int i = 0; i < cmdCount.nCount; ++i)
            {
                cmd_entity_show_title_node node = helper.get <cmd_entity_show_title_node>();
                switch (node.nTitleID)
                {
                case 0:
                    utn.SetRoleName(node.szTitleName);
                    break;

                case 1:
                    utn.SetKinName(node.szTitleName);
                    break;

                case 2:
                    utn.SetClanName(node.szTitleName);
                    break;

                default:
                    break;
                }
            }
        }
Beispiel #7
0
        public void updateHeroCard(IntPtr ptrParam, int nPtrLen)
        {
            IntPtrVaArgParseHelper helper = new IntPtrVaArgParseHelper(ptrParam, nPtrLen);
            int nCount  = helper.get <int>();
            int dwPDBID = EntityFactory.MainHeroView.Property.GetNumProp(ENTITY_PROPERTY.PROPERTY_ID);

            for (int i = 0; i < nCount; i++)
            {
                cmd_entity_update_card_info node = helper.get <cmd_entity_update_card_info>();
                // Hero更新
                ActorHeroInfo info = null;
                if (actorHero.TryGetValue(dwPDBID, out info))
                {
                    if (info.dicEntityHeroInfo.ContainsKey(node.nCardID))
                    {
                        cmd_entity_hero_info temp = info.dicEntityHeroInfo[node.nCardID];
                        temp.nCardCount = node.nCardCount;
                        info.dicEntityHeroInfo[node.nCardID] = temp;
                    }
                    if (info.dicEntityNoHaveHeroInfo.ContainsKey(node.nCardID))
                    {
                        cmd_entity_nohanve_hero temp = info.dicEntityNoHaveHeroInfo[node.nCardID];
                        temp.nHaveCardCount = node.nCardCount;
                        info.dicEntityNoHaveHeroInfo[node.nCardID] = temp;
                    }
                }
            }

            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_HEROPREVIEWFRAME_GETHEROINFO, null);
            checkAllHeroIsHaveCanUpStar();
        }
Beispiel #8
0
        //接收上周学徒榜数据
        public void OnRecvRequestLastWeekPrenticeRankData(IntPtr ptr, int nLen)
        {
            IntPtrVaArgParseHelper    helper = new IntPtrVaArgParseHelper(ptr, nLen);
            cmd_Entity_Rank_Info_head head   = helper.get <cmd_Entity_Rank_Info_head>();

            LastWeekPrenticeChartList.AllDataList.Clear();
            for (int i = 0; i < head.nCount; i++)
            {
                cmd_entity_mentorship_order_info data = helper.get <cmd_entity_mentorship_order_info>();
                //如果有自己数据,存一下排名
                if (EntityFactory.MainHeroView != null && EntityFactory.MainHeroView.Property != null)
                {
                    if (data.dwPDBID == EntityFactory.MainHeroView.Property.GetNumProp(ENTITY_PROPERTY.PROPERTY_ID))
                    {
                        LastWeekPrenticeChartList.PersonalRank = data.nOrder;
                    }
                }
                LastWeekPrenticeChartList.AllDataList.Add(data);
            }
            if (LastWeekPrenticeChartList.AllDataList.Count > 0)
            {
                LastWeekPrenticeChartList.LastScore = (int)LastWeekPrenticeChartList.AllDataList[head.nCount - 1].dwShipVal;
            }
            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_RECVREQUESTLASTWEEKPRENTICECHARTDATA, null);
        }
Beispiel #9
0
        public void TeammateInfoUpdate(IntPtr ptrParam, int nParam)
        {
            nItemIndex = 0;
            IntPtrVaArgParseHelper         helper       = new IntPtrVaArgParseHelper(ptrParam, nParam);
            cmd_entity_teammate_info_count teamBaseData = helper.get <cmd_entity_teammate_info_count>();

            nTeammateCount = teamBaseData.nteammateCount;

            for (int i = 0; i < nTeammateCount; i++)
            {
                cmd_entity_teammate_info teammateData = helper.get <cmd_entity_teammate_info>();
                bool isCaptain = teammateData.nPDBID == teamBaseData.nCaptainPDBID;
                if (teammateData.nPDBID == EntityFactory.MainHeroView.Property.GetNumProp(ENTITY_PROPERTY.PROPERTY_ID))
                {
                    actorInfo.SetData(teammateData);
                    actorInfo.SetCaptainFlag(isCaptain);
                    actorInfo.SetPopupAction(isCaptain);
                }
                else
                {
                    teammateInfo[nItemIndex].SetData(teammateData);
                    teammateInfo[nItemIndex].SetCaptainFlag(isCaptain);
                    teammateInfo[nItemIndex].SetPopupAction(isCaptain);
                    teammateInfo[nItemIndex].gameObject.SetActive(true);
                    nItemIndex++;
                }
            }

            for (int i = nItemIndex; i < TEAM_MEMBER_MAXCOUNT - 1; i++)
            {
                teammateInfo[i].gameObject.SetActive(false);
            }
        }
Beispiel #10
0
        public void TeammateInfoUpdate(IntPtr ptrParam, int nParam)
        {
            IntPtrVaArgParseHelper         helper = new IntPtrVaArgParseHelper(ptrParam, nParam);
            cmd_entity_teammate_info_count head   = helper.get <cmd_entity_teammate_info_count>();

            if (EntityFactory.MainHeroView == null)
            {
                return;
            }
            int  nSelfID      = EntityFactory.MainHeroView.Property.GetNumProp(ENTITY_PROPERTY.PROPERTY_ID);
            bool bSelfCaptain = nSelfID == head.nCaptainPDBID;
            int  nIndex       = 0;

            for (int i = 0; i < head.nteammateCount; i++)
            {
                cmd_entity_teammate_info node = helper.get <cmd_entity_teammate_info>();
                m_playerItems[nIndex].SetData(bSelfCaptain, node);
                nIndex++;
            }

            for (int i = nIndex; i < PLAYER_ITEM_COUNT; i++)
            {
                m_playerItems[nIndex].SetClear();
                nIndex++;
            }
        }
Beispiel #11
0
    // 添加200个天梯排名数据,一起发过来解析,刷新也用这个
    public void AddHighLadderItem(ref IntPtr ptrParam, ref int nPtrLen)
    {
        if (!Value.IsValueValid(vRoomItemStruct) || !Value.IsValueValid(vRoomListFrame))
        {
            return;
        }
        // 更新数据的时候先移除旧数据,再加载新数据
        if (vRoomListFrame.Invoke("RemoveHallRoomAllItem") == null)
        {
            Trace.LogError("call RemoveHallRoomAllItem error!!");
        }
        IntPtrVaArgParseHelper    helper     = new IntPtrVaArgParseHelper(ptrParam, nPtrLen);
        cmd_Entity_Rank_Info_head nCountdata = helper.get <cmd_Entity_Rank_Info_head>();

        for (uint i = 1; i <= nCountdata.nCount; ++i)
        {
            // 暂时用这个结构体
            cmd_Entity_HighLadder_Rank_Info data = helper.get <cmd_Entity_HighLadder_Rank_Info>();
            vRoomItemStruct.ClearElements();
            vRoomItemStruct.SetElement(0, data.nOrderID);
            vRoomItemStruct.SetElement(1, data.szPlayerName);
            vRoomItemStruct.SetElement(2, data.nRankGrade);
            vRoomItemStruct.SetElement(3, data.nRankScore);
            vRoomItemStruct.SetElement(4, data.szGradeName);
            // vRoomItemStruct.SetElement(i, data);
            if (vRoomListFrame.Invoke("AddHallRoomItem") == null)
            {
                Trace.LogError("call AddHallRoomItem failed!!");
            }
        }
    }
Beispiel #12
0
        public void OnRecvClanBaseData(IntPtr ptr, int nLen)
        {
            IntPtrVaArgParseHelper helper = new IntPtrVaArgParseHelper(ptr, nLen);

            m_clanBaseData = helper.get <cmd_clan_basedata>();

            m_clanMemberData.Clear();
            for (int i = 0; i < m_clanBaseData.nMemberCount; ++i)
            {
                cmd_clan_memberlist cmdMemberlist = helper.get <cmd_clan_memberlist>();
                m_clanMemberData.Add(cmdMemberlist);
            }
            SortClanMember();

            m_clanApplyMemberData.Clear();
            for (int i = 0; i < m_clanBaseData.nApplyMemberNum; ++i)
            {
                cmd_clan_applymember cmdApplyMemberlist = helper.get <cmd_clan_applymember>();
                m_clanApplyMemberData.Add(cmdApplyMemberlist);
            }

            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_CLAN_BASEDATA, null);
            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_CLAN_UPDATEMEMBER, null);
            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_CLAN_APPLY_MEMBER_TIP, null);
        }
Beispiel #13
0
        public void OnRecvClanListData(IntPtr ptr, int nLen)
        {
            IntPtrVaArgParseHelper helper = new IntPtrVaArgParseHelper(ptr, nLen);

            m_clanListHeadData = helper.get <cmd_clan_list_head>();
            if (m_clanListHeadData.nTotalNum > 0)
            {
                m_clanListHeadData.nTotalNum = (m_clanListHeadData.nTotalNum - 1) / (int)EMCLAN_LIST.CLAN_LIST_PAGE_SIZE + 1;
            }
            if (m_clanListHeadData.nPageNum > m_clanListHeadData.nTotalNum)
            {
                m_clanListHeadData.nPageNum = m_clanListHeadData.nTotalNum;
            }

            m_clanListData.Clear();
            for (int i = 0; i < m_clanListHeadData.nClanCount; ++i)
            {
                cmd_clan_clanlist_node cmdNodeData = helper.get <cmd_clan_clanlist_node>();
                m_clanListData.Add(cmdNodeData);
            }

            SortClanList();

            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_CLAN_REQUESTCLANLIST, null);
        }
Beispiel #14
0
        //接收捐卡榜数据
        public void OnRecvRequestDonateRankData(IntPtr ptr, int nLen)
        {
            IntPtrVaArgParseHelper    helper = new IntPtrVaArgParseHelper(ptr, nLen);
            cmd_Entity_Rank_Info_head head   = helper.get <cmd_Entity_Rank_Info_head>();

            DonateChartList.AllDataList.Clear();
            for (int i = 0; i < head.nCount; i++)
            {
                cmd_entity_donate_order_info data = helper.get <cmd_entity_donate_order_info>();
                if (EntityFactory.MainHeroView != null && EntityFactory.MainHeroView.Property != null)
                {
                    if ((int)data.nPDBID == EntityFactory.MainHeroView.Property.GetNumProp(ENTITY_PROPERTY.PROPERTY_ID))
                    {
                        DonateChartList.PersonalRank = (int)data.nOrder;
                    }
                    ;
                }
                DonateChartList.AllDataList.Add(data);
            }
            if (DonateChartList.AllDataList.Count > 0)
            {
                DonateChartList.LastScore = DonateChartList.AllDataList[head.nCount - 1].nTotalClanCtrb;
            }
            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_RECVREQUESTDONATECHARTDATA, null);
        }
Beispiel #15
0
        public void UpdateCrownAllPageData(IntPtr ptrParam, int nPtrLen)
        {
            CrownPageDic.Clear();
            //curPageItemData = null;
            IntPtrVaArgParseHelper helper = new IntPtrVaArgParseHelper(ptrParam, nPtrLen);
            cmd_count countData           = helper.get <cmd_count>();
            int       nCount = countData.nCount;

            for (int i = 0; i < nCount; i++)
            {
                cmd_Crown_Page_Item_Info data     = helper.get <cmd_Crown_Page_Item_Info>();
                CrownPageItemData        pageData = new CrownPageItemData();
                pageData.nPageTextIndex = i + 1;
                pageData.reviseData     = data;
                pageData.DoSaveData();

                CrownPageDic[data.nPageDBID] = pageData;

                if (curPageItemData == null)
                {
                    curPageItemData = pageData;
                }
            }

            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_CROWNPAGE_UPDATEVIEW, null);
            RefreshGemstoneRedPoint();
        }
Beispiel #16
0
        /// 实现相对阵营中 杀敌数 等级 助攻数更新
        public void UpdatePlayerInfo(IntPtr recordInfo, int nPtrLen)
        {
            IntPtrVaArgParseHelper   helper = new IntPtrVaArgParseHelper(recordInfo, nPtrLen);
            cmd_war_personInfo_count obj    = helper.get <cmd_war_personInfo_count>();

            for (int i = 0; i < obj.nCount; ++i)
            {
                cmd_war_personinfo data = helper.get <cmd_war_personinfo>();
                ulong uPdBid            = data.uPDBID;
                if (uPdBid == 0)
                {
                    continue;
                }
                int uCamp = data.nCamp;

                // 如果找到这个元素就清空重新把元素加入进去
                if (recordInfoArry.ContainsKey(uPdBid))
                {
                    // 找到的更新
                    WarPersonInfo tmpRecordInfo = recordInfoArry[uPdBid];
                    doPersonAliveAssistBrodcast(tmpRecordInfo, data.nAliveContAssist);
                    tmpRecordInfo.nLevel           = data.nLevel;
                    tmpRecordInfo.nID              = data.uID;
                    tmpRecordInfo.nKillNum         = data.nKillNum;
                    tmpRecordInfo.nDeadNum         = data.nDeadNum;
                    tmpRecordInfo.nAssists         = data.nAssists;
                    tmpRecordInfo.nMobaWarMoney    = data.nKillMonsterNum;
                    tmpRecordInfo.bIsHero          = data.isProtag;
                    tmpRecordInfo.nAliveContAssist = data.nAliveContAssist;
                    tmpRecordInfo.nDestroyTower    = data.nDestroyTower;
                    if (tmpRecordInfo.nSummerIconID <= 0)
                    {
                        tmpRecordInfo.nSummerIconID = data.nSummerIconID;
                        tmpRecordInfo.sSummerDesc   = data.szSummerDesc;
                    }

                    recordInfoArry[uPdBid] = tmpRecordInfo;
                }
                else
                {
                    WarPersonInfo warPersonInfo = new WarPersonInfo();
                    FillWarPersonInfo(ref warPersonInfo, data);
                    recordInfoArry.Add(data.uPDBID, warPersonInfo);
                }
            }
            if (this.IsWarRecordTableVisible == true)
            {
                UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_RECORDTABLE_FIGHTING_UPDATERECORDINFO, null);
            }

            if (m_bUpdateTeamInfo)
            {
                UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_TEAMMATEINFO_UPDATETEAMINFO, null);
            }

            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_WAR_UPDATEPLAYERINFO, null);
        }
Beispiel #17
0
        public void UpdateCupCompetitionInfo(IntPtr ptrParam, int nPtrLen)
        {
            IntPtrVaArgParseHelper helper            = new IntPtrVaArgParseHelper(ptrParam, nPtrLen);
            long llegendCupId                        = helper.get <long>();
            cmd_legendcup_recv_competition_node node = helper.get <cmd_legendcup_recv_competition_node>();

            // 自己战队dida相关
            if (!(CheckIsSelfInCompetitionMember(node.nKin1ID) == false && CheckIsSelfInCompetitionMember(node.nKin2ID) == false))
            {
                bool bDida = (node.byCompetitionNodeState == (byte)ECompetitionNodeState.emNodeState_CanEnter);
                SetLegendCupDIDA(bDida, llegendCupId, node.nRoundID, node.nSearchID);
            }

            // 更新节点信息
            cmd_legendcup_recv_cuplist_node cupBaseData = LogicDataCenter.legendCupDataManager.GetSingleLegendCupNode(llegendCupId);

            if (cupBaseData.nLegendCupID == 0)
            {
                return;
            }

            if (!m_legendCupCompetitionDic.ContainsKey(llegendCupId))
            {
                return;
            }
            SingleCompetitionInfo competitionInfo = m_legendCupCompetitionDic[llegendCupId];

            if (competitionInfo == null || competitionInfo.nodeInfo == null)
            {
                return;
            }

            for (int i = 0; i < competitionInfo.nodeInfo.Count; i++)
            {
                if (competitionInfo.nodeInfo[i].nSearchID == node.nSearchID)
                {
                    competitionInfo.nodeInfo[i] = node;
                    break;
                }
            }

            // 通知相应界面
            LegendCupIDData uiData = new LegendCupIDData();

            uiData.nLegendCupID = competitionInfo.headInfo.nLegendCupID;
            if (competitionInfo.headInfo.byCompetitionType == (int)ERoundCompetitionType.emType_GroupCompetition)
            {
                UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_LEGENDCUP_GROUP_UPDATE, uiData);
            }
            else if (competitionInfo.headInfo.byCompetitionType == (int)ERoundCompetitionType.emType_KnockoutCompetition)
            {
                // 大淘汰赛、小淘汰赛界面合并
                UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_LEGENDCUP_SMALLKNOCKOUT_UPDATE, uiData);
            }
        }
Beispiel #18
0
    // 保存召唤师技能信息
    public void saveAllSummonerSkill(IntPtr ptrParam, int nPtrLen)
    {
        IntPtrVaArgParseHelper helper = new IntPtrVaArgParseHelper(ptrParam, nPtrLen);
        cmd_count cmdCount            = helper.get <cmd_count>();

        for (int i = 0; i < cmdCount.nCount; ++i)
        {
            cmd_SmAllSkillInfo cmdInfo = helper.get <cmd_SmAllSkillInfo>();
            SmAllSkillInfoList.Insert(i, cmdInfo);
        }
    }
Beispiel #19
0
    // 功能型快捷键消息储存
    public void SaveFuntionShortCutCtrl(IntPtr nShortCutInfo, int nPtrLen)
    {
        IntPtrVaArgParseHelper helper = new IntPtrVaArgParseHelper(nShortCutInfo, nPtrLen);
        cmd_count nCountdata          = helper.get <cmd_count>();

        for (int i = 0; i < nCountdata.nCount; ++i)
        {
            cmd_Slot_Shortcut data = helper.get <cmd_Slot_Shortcut>();
            SaveKeyCodeToDic(data.nSlotId, data.szShortcut);
        }
    }
Beispiel #20
0
        public void ShowActorUnlockPrize(IntPtr ptrParam, int nPtrLen)
        {
            IntPtrVaArgParseHelper helper = new IntPtrVaArgParseHelper(ptrParam, nPtrLen);

            m_nWarEndActorLv = helper.get <int>();
            int nPrizeCount = helper.get <int>();

            for (int i = 0; i < nPrizeCount; i++)
            {
                int nPrizeID = helper.get <int>();
                m_listActorUnlockPrizeID.Add(nPrizeID);
            }
        }
Beispiel #21
0
        //接收英雄类型榜数据
        public void OnRecvRequestHeroTypeRankData(IntPtr ptr, int nLen)
        {
            IntPtrVaArgParseHelper    helper = new IntPtrVaArgParseHelper(ptr, nLen);
            cmd_Entity_Rank_Info_head head   = helper.get <cmd_Entity_Rank_Info_head>();

            HeroTypeChartList.Clear();
            for (int i = 0; i < head.nCount; i++)
            {
                cmd_entity_herotype_order_info data = helper.get <cmd_entity_herotype_order_info>();
                HeroTypeChartList.Add(data);
            }
            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_RECVREQUESTHEROTYPECHARTDATA, null);
        }
Beispiel #22
0
        public void SetRoomListData(IntPtr ptrParam, int nPtrLen)
        {
            IntPtrVaArgParseHelper    helper = new IntPtrVaArgParseHelper(ptrParam, nPtrLen);
            cmd_match_hall_rooms_head head   = helper.get <GameLogic.cmd_match_hall_rooms_head>();

            for (int i = 0; i < head.nRoomCount; ++i)
            {
                GameLogic.cmd_match_hall_add_room cmdNodeData = helper.get <GameLogic.cmd_match_hall_add_room>();

                UListItemHallData hallData = new UListItemHallData();
                hallData.nRoomIndex        = cmdNodeData.nRoomIndex;
                hallData.nRoomId           = cmdNodeData.nRoomIndex;
                hallData.RoomName          = cmdNodeData.szRoomName;
                hallData.GameMap           = cmdNodeData.szMapDes;
                hallData.nCurPlayerCount   = cmdNodeData.nCurPlayerNum;
                hallData.nTotalPlayerCount = cmdNodeData.nMaxPlayerNum;
                hallData.bLock             = cmdNodeData.bLock > 0 ? true : false;
                ListHall.DataSource.Add(hallData);
                UListItemHallData hallDataCpy = hallData;

                AllDataSource.Add(hallDataCpy);
            }

            if (m_CurSelectRoomID > 0)
            {
                for (int i = 0; i < ListHall.DataSource.Count; i++)
                {
                    UListItemHallData temp = ListHall.DataSource[i];
                    if (temp.nRoomId == m_CurSelectRoomID)
                    {
                        ListHall.Select(i);
                        break;
                    }
                }
            }
            else
            {
                // 默认选中一个无密码、人数不足的房间
                for (int i = 0; i < ListHall.DataSource.Count; i++)
                {
                    UListItemHallData temp = ListHall.DataSource[i];
                    if (temp.nCurPlayerCount < temp.nTotalPlayerCount && !temp.bLock)
                    {
                        m_CurHallItem     = temp;
                        m_CurSelectRoomID = temp.nRoomId;
                        ListHall.Select(i);
                        break;
                    }
                }
            }
        }
Beispiel #23
0
        public void OnRecvCardList(IntPtr ptr, int nLen)
        {
            IntPtrVaArgParseHelper         helper  = new IntPtrVaArgParseHelper(ptr, nLen);
            cmd_clan_request_cardlist_head cmdhead = helper.get <cmd_clan_request_cardlist_head>();

            m_cardListData.Clear();
            for (int i = 0; i < cmdhead.nCount; ++i)
            {
                cmd_clan_request_cardlist cmdRequestCardlist = helper.get <cmd_clan_request_cardlist>();
                m_cardListData.Add(cmdRequestCardlist);
            }

            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_CLAN_REQUEST_CARDLIST, null);
        }
Beispiel #24
0
        // LegendCupWarRecordWnd
        public void RecvTotalWarRecord(IntPtr ptrParam, int nPtrLen)
        {
            IntPtrVaArgParseHelper helper = new IntPtrVaArgParseHelper(ptrParam, nPtrLen);
            int nCount = helper.get <int>();

            m_totalWarRecordList.Clear();
            for (int i = 0; i < nCount; ++i)
            {
                cmd_kin_warrecord_total_warnode data = helper.get <cmd_kin_warrecord_total_warnode>();
                m_totalWarRecordList.Add(data);
            }

            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_LEGENDCUP_WARRECORD_TOTAL, null);
        }
Beispiel #25
0
        public void OnRecvRequestDonateLog(IntPtr ptr, int nLen)
        {
            IntPtrVaArgParseHelper          helper  = new IntPtrVaArgParseHelper(ptr, nLen);
            cmd_clan_request_donatelog_head cmdhead = helper.get <cmd_clan_request_donatelog_head>();

            m_donateLog.Clear();
            for (int i = 0; i < cmdhead.nCount; ++i)
            {
                cmd_clan_update_donatelog cmdDonateLog = helper.get <cmd_clan_update_donatelog>();
                m_donateLog.Add(cmdDonateLog);
            }

            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_CLAN_UPDATE_DONATELOG, null);
        }
Beispiel #26
0
        // 接收战场结束时玩家获得的奖励信息
        public void recvWarEndAwake(IntPtr ptr, int nLen)
        {
            IntPtrVaArgParseHelper         helper = new IntPtrVaArgParseHelper(ptr, nLen);
            cmd_entity_return_player_awark obj    = helper.get <cmd_entity_return_player_awark>();

            m_cmdPlayerAwake = obj;
            int nCount = obj.nCount;

            for (int i = 0; i < nCount; ++i)
            {
                cmd_entity_hero_card cmdInfo = helper.get <cmd_entity_hero_card>();
                m_listHeroCard.Add(cmdInfo);
            }
            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_WAR_RECORDTABLE_END_INITAWAKEINFO, null);
        }
Beispiel #27
0
        public void OnRecvClanApplyList(IntPtr ptr, int nLen)
        {
            IntPtrVaArgParseHelper helper = new IntPtrVaArgParseHelper(ptr, nLen);

            m_clanApplyMemberData.Clear();
            GameLogic.cmd_clan_applymember_head cmdHead = helper.get <GameLogic.cmd_clan_applymember_head>();
            for (int i = 0; i < cmdHead.nCount; ++i)
            {
                cmd_clan_applymember cmdApplyMemberlist = helper.get <cmd_clan_applymember>();
                m_clanApplyMemberData.Add(cmdApplyMemberlist);
            }

            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_CLAN_APPLY_MEMBER_TIP, null);
            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_CLAN_APPLY_LIST, null);
        }
Beispiel #28
0
        // 接收杯赛战队荣誉
        public void OnRecvLegendKinGlory(IntPtr ptr, int nLen)
        {
            IntPtrVaArgParseHelper helper = new IntPtrVaArgParseHelper(ptr, nLen);

            m_LegendGloryHead = helper.get <cmd_kin_glory_head>();

            m_LegendGloryNodeList.Clear();
            for (int i = 0; i < m_LegendGloryHead.nCount; i++)
            {
                cmd_kin_glory_node nodeData = helper.get <cmd_kin_glory_node>();
                m_LegendGloryNodeList.Add(nodeData);
            }

            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_LEGENDCUP_KINGLORY_RECV, null);
        }
Beispiel #29
0
        public void OnRecevKinApplyList(IntPtr ptr, int nLen)
        {
            IntPtrVaArgParseHelper helper = new IntPtrVaArgParseHelper(ptr, nLen);

            m_ApplyListHead = helper.get <GameLogic.cmd_kin_applylist_head>();

            m_ApplyListNode.Clear();
            for (int i = 0; i < m_ApplyListHead.nCount; ++i)
            {
                GameLogic.cmd_kin_applylist_node cmdNodeData = helper.get <GameLogic.cmd_kin_applylist_node>();
                // 添加到数据管理中心
                m_ApplyListNode.Add(cmdNodeData);
            }
            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_KIN_RECEV_APPLY_LIST, null);
        }
Beispiel #30
0
        public void OnRecvKinListData(IntPtr ptr, int nLen)
        {
            IntPtrVaArgParseHelper helper = new IntPtrVaArgParseHelper(ptr, nLen);

            m_KinListHead = helper.get <GameLogic.cmd_kin_list_head>();

            for (int i = 0; i < m_KinListHead.nKinCount; ++i)
            {
                GameLogic.cmd_kin_list_node cmdNodeData = helper.get <GameLogic.cmd_kin_list_node>();
                // 添加到数据管理中心
                m_KinListNode[cmdNodeData.dwID] = cmdNodeData;
            }

            UISystem.Instance.SendWndMessage(WndMsgID.WND_MSG_KIN_REQUESTKINLIST, null);
        }