Exemplo n.º 1
0
    //开启深渊ack..
    private static void msg_SC_ABYSS_OPEN_ACK(int iMsgID, ref CMessage msg)
    {
        CliProto.SC_ABYSS_OPEN_ACK refMsg = (CliProto.SC_ABYSS_OPEN_ACK)msg;
        sdActGameMgr.Instance.SetLapBossEnterAckInfo(refMsg);


        GameObject wnd = sdGameLevel.instance.NGUIRoot;

        if (wnd)
        {
            sdUILapBossWnd bossWnd = wnd.GetComponentInChildren <sdUILapBossWnd>();
            if (bossWnd)
            {
                bossWnd.RefreshLBItemListPage();
                bossWnd.RefreshRKItemListPage();
                bossWnd.RefreshRecordItemListPage();

                bossWnd.SetShowPanelType(1);
                bossWnd.OnActivePnlSetRadioButton();
                sdActGameMsg.Send_CS_GET_ABYSS_OPEN_LIST_REQ();

                bNeedShowFirstEnterIcon = false;
                uuShowID = refMsg.m_Info.m_AbyssInfo.m_ActDBID;
            }
        }
    }
Exemplo n.º 2
0
    public void SetLapBossEnterAckInfo(CliProto.SC_ABYSS_OPEN_ACK msg)
    {
        CliProto.SC_ABYSS_OPEN_ACK refMSG = msg;
        UInt64 uuDBID = refMSG.m_Info.m_AbyssInfo.m_ActDBID;

        if (uuDBID != UInt64.MaxValue)
        {
            if (m_LapBossEnterInfo[uuDBID] != null)
            {
                ((SAbyssLockInfo)m_LapBossEnterInfo[uuDBID]).m_ActDBID  = refMSG.m_Info.m_AbyssInfo.m_ActDBID;
                ((SAbyssLockInfo)m_LapBossEnterInfo[uuDBID]).m_ActTmpId = refMSG.m_Info.m_AbyssInfo.m_ActTmpId;
                ((SAbyssLockInfo)m_LapBossEnterInfo[uuDBID]).m_Blood    = refMSG.m_Info.m_AbyssInfo.m_Blood;
                ((SAbyssLockInfo)m_LapBossEnterInfo[uuDBID]).m_Roleid   = refMSG.m_Info.m_AbyssInfo.m_Roleid;
                ((SAbyssLockInfo)m_LapBossEnterInfo[uuDBID]).m_RoleName = System.Text.Encoding.UTF8.GetString(refMSG.m_Info.m_AbyssInfo.m_Rolename);
                int iCount = (int)refMSG.m_Info.m_AbyssInfo.m_Atkcount;
                ((SAbyssLockInfo)m_LapBossEnterInfo[uuDBID]).m_Atkcount = iCount;
                for (int i = 0; i < iCount; i++)
                {
                    ((SAbyssLockInfo)m_LapBossEnterInfo[uuDBID]).m_Atklist[i] = refMSG.m_Info.m_AbyssInfo.m_Atklist[i];
                }
                ((SAbyssLockInfo)m_LapBossEnterInfo[uuDBID]).m_Status            = refMSG.m_Info.m_AbyssInfo.m_Status;
                ((SAbyssLockInfo)m_LapBossEnterInfo[uuDBID]).m_Tritime           = refMSG.m_Info.m_AbyssInfo.m_Tritime;
                ((SAbyssLockInfo)m_LapBossEnterInfo[uuDBID]).m_Opentime          = refMSG.m_Info.m_AbyssInfo.m_Opentime;
                ((SAbyssLockInfo)m_LapBossEnterInfo[uuDBID]).m_Killtime          = refMSG.m_Info.m_AbyssInfo.m_Killtime;
                ((SAbyssLockInfo)m_LapBossEnterInfo[uuDBID]).m_EntranceExistTime = refMSG.m_Info.m_AbyssInfo.m_EntranceExistTime;
                ((SAbyssLockInfo)m_LapBossEnterInfo[uuDBID]).m_AbyssExistTime    = refMSG.m_Info.m_AbyssInfo.m_AbyssExistTime;
            }
            else
            {
                SAbyssLockInfo info = new SAbyssLockInfo();

                info.m_ActDBID  = refMSG.m_Info.m_AbyssInfo.m_ActDBID;
                info.m_ActTmpId = refMSG.m_Info.m_AbyssInfo.m_ActTmpId;
                info.m_Blood    = refMSG.m_Info.m_AbyssInfo.m_Blood;
                info.m_Roleid   = refMSG.m_Info.m_AbyssInfo.m_Roleid;
                info.m_RoleName = System.Text.Encoding.UTF8.GetString(refMSG.m_Info.m_AbyssInfo.m_Rolename);
                int iCount = (int)refMSG.m_Info.m_AbyssInfo.m_Atkcount;
                info.m_Atkcount = iCount;
                for (int i = 0; i < iCount; i++)
                {
                    info.m_Atklist[i] = refMSG.m_Info.m_AbyssInfo.m_Atklist[i];
                }
                info.m_Status            = refMSG.m_Info.m_AbyssInfo.m_Status;
                info.m_Tritime           = refMSG.m_Info.m_AbyssInfo.m_Tritime;
                info.m_Opentime          = refMSG.m_Info.m_AbyssInfo.m_Opentime;
                info.m_Killtime          = refMSG.m_Info.m_AbyssInfo.m_Killtime;
                info.m_EntranceExistTime = refMSG.m_Info.m_AbyssInfo.m_EntranceExistTime;
                info.m_AbyssExistTime    = refMSG.m_Info.m_AbyssInfo.m_AbyssExistTime;

                m_LapBossEnterInfo[uuDBID] = info;
            }

            //深渊入口列表中的要删除..
            if (m_LapBossLockInfo.ContainsKey(uuDBID))
            {
                m_LapBossLockInfo.Remove(uuDBID);
            }
        }
    }