コード例 #1
0
    void S2C_ReqArenaRewardData(Pt _info)
    {
        pt_pk_win_d491 info = _info as pt_pk_win_d491;

        CopySettlementDataInfo        = new CopySettlementDataInfo();
        CopySettlementDataInfo.state  = info.state;
        CopySettlementDataInfo.rank   = info.rank;
        CopySettlementDataInfo.upRank = info.up_rank;
        CopySettlementDataInfo.showKo = info.cd_state <= 0;
        for (int i = 0; i < info.reward.Count; i++)
        {
            st.net.NetBase.reward_list data = info.reward[i];
            CopySettlementDataInfo.items.Add(new EquipmentInfo((int)data.type, (int)data.num, EquipmentBelongTo.PREVIEW));
        }
        if (OnOpenArenaSettlement != null)
        {
            OnOpenArenaSettlement();
        }
    }
コード例 #2
0
    void S2C_ReqSettlementRewardData(Pt _info)
    {
        pt_win_list_d467 info = _info as pt_win_list_d467;

        CopySettlementDataInfo           = new CopySettlementDataInfo();
        CopySettlementDataInfo.star      = info.star_num;
        CopySettlementDataInfo.time      = info.time;
        CopySettlementDataInfo.bossCount = info.kill_boss_num;
        CopySettlementDataInfo.coppyId   = info.scene_type;//用于多人副本
        for (int i = 0; i < info.reward_list.Count; i++)
        {
            st.net.NetBase.reward_list data = info.reward_list[i];
            CopySettlementDataInfo.items.Add(new EquipmentInfo((int)data.type, (int)data.num, EquipmentBelongTo.PREVIEW));
        }
        for (int i = 0; i < info.team_reward_list.Count; i++)//多人副本非化身奖励
        {
            st.net.NetBase.team_reward_list data = info.team_reward_list[i];
            CopySettlementDataInfo.teamItems.Add(new EquipmentInfo((int)data.type, (int)data.num, EquipmentBelongTo.PREVIEW));
        }
        if (OnOpenCopySettlement != null)
        {
            OnOpenCopySettlement();
        }
    }