private void InitRewardList()
        {
            RewardData data = this._rewardDataList[0];

            this._missionRewardList.Clear();
            if (data.get_exp() > 0)
            {
                RewardUIData playerExpData = RewardUIData.GetPlayerExpData((int)data.get_exp());
                this._missionRewardList.Add(playerExpData);
            }
            if (data.get_scoin() > 0)
            {
                RewardUIData scoinData = RewardUIData.GetScoinData((int)data.get_scoin());
                this._missionRewardList.Add(scoinData);
            }
            if (data.get_hcoin() > 0)
            {
                RewardUIData hcoinData = RewardUIData.GetHcoinData((int)data.get_hcoin());
                this._missionRewardList.Add(hcoinData);
            }
            if (data.get_stamina() > 0)
            {
                RewardUIData staminaData = RewardUIData.GetStaminaData((int)data.get_stamina());
                this._missionRewardList.Add(staminaData);
            }
            if (data.get_skill_point() > 0)
            {
                RewardUIData skillPointData = RewardUIData.GetSkillPointData((int)data.get_skill_point());
                this._missionRewardList.Add(skillPointData);
            }
            if (data.get_friends_point() > 0)
            {
                RewardUIData friendPointData = RewardUIData.GetFriendPointData((int)data.get_friends_point());
                this._missionRewardList.Add(friendPointData);
            }
            foreach (RewardItemData data8 in data.get_item_list())
            {
                RewardUIData data9 = new RewardUIData(ResourceType.Item, (int)data8.get_num(), RewardUIData.ITEM_ICON_TEXT_ID, string.Empty, (int)data8.get_id(), (int)data8.get_level());
                this._missionRewardList.Add(data9);
                StorageDataItemBase dummyStorageDataItem = Singleton <StorageModule> .Instance.GetDummyStorageDataItem((int)data8.get_id(), (int)data8.get_level());

                if (dummyStorageDataItem is AvatarCardDataItem)
                {
                    this._avatarData = dummyStorageDataItem as AvatarCardDataItem;
                }
            }
            if (this._dropItemList != null)
            {
                foreach (DropItem item in this._dropItemList)
                {
                    RewardUIData data10 = new RewardUIData(ResourceType.Item, (int)item.get_num(), RewardUIData.ITEM_ICON_TEXT_ID, string.Empty, (int)item.get_item_id(), (int)item.get_level());
                    this._missionRewardList.Add(data10);
                }
            }
        }
예제 #2
0
        private void InitRewardList()
        {
            RewardData data = this._rewardData.get_reward_list()[0];

            this._gotRewardList.Clear();
            if (data.get_exp() > 0)
            {
                RewardUIData playerExpData = RewardUIData.GetPlayerExpData((int)data.get_exp());
                this._gotRewardList.Add(playerExpData);
            }
            if (data.get_scoin() > 0)
            {
                RewardUIData scoinData = RewardUIData.GetScoinData((int)data.get_scoin());
                this._gotRewardList.Add(scoinData);
            }
            if (data.get_hcoin() > 0)
            {
                RewardUIData hcoinData = RewardUIData.GetHcoinData((int)data.get_hcoin());
                this._gotRewardList.Add(hcoinData);
            }
            if (data.get_stamina() > 0)
            {
                RewardUIData staminaData = RewardUIData.GetStaminaData((int)data.get_stamina());
                this._gotRewardList.Add(staminaData);
            }
            if (data.get_skill_point() > 0)
            {
                RewardUIData skillPointData = RewardUIData.GetSkillPointData((int)data.get_skill_point());
                this._gotRewardList.Add(skillPointData);
            }
            if (data.get_friends_point() > 0)
            {
                RewardUIData friendPointData = RewardUIData.GetFriendPointData((int)data.get_friends_point());
                this._gotRewardList.Add(friendPointData);
            }
            foreach (RewardItemData data8 in data.get_item_list())
            {
                RewardUIData item = new RewardUIData(ResourceType.Item, (int)data8.get_num(), RewardUIData.ITEM_ICON_TEXT_ID, string.Empty, (int)data8.get_id(), (int)data8.get_level());
                this._gotRewardList.Add(item);
            }
            foreach (RewardUIData data10 in this._gotRewardList)
            {
            }
        }
예제 #3
0
 private void SetupRewardList()
 {
     this._rewardUIDataList = new List <RewardUIData>();
     if (((this._inviteType != InviteTab.InviteeTab) || (this._inviteeRewardData.get_reward_list().Count >= 1)) && ((this._inviteType != InviteTab.InviterTab) || (this._inviterRewardData.get_reward_list().Count >= 1)))
     {
         RewardData data = (this._inviteType != InviteTab.InviteeTab) ? this._inviterRewardData.get_reward_list()[0] : this._inviteeRewardData.get_reward_list()[0];
         if (data.get_exp() > 0)
         {
             RewardUIData playerExpData = RewardUIData.GetPlayerExpData((int)data.get_exp());
             this._rewardUIDataList.Add(playerExpData);
         }
         if (data.get_scoin() > 0)
         {
             RewardUIData scoinData = RewardUIData.GetScoinData((int)data.get_scoin());
             this._rewardUIDataList.Add(scoinData);
         }
         if (data.get_hcoin() > 0)
         {
             RewardUIData hcoinData = RewardUIData.GetHcoinData((int)data.get_hcoin());
             this._rewardUIDataList.Add(hcoinData);
         }
         if (data.get_stamina() > 0)
         {
             RewardUIData staminaData = RewardUIData.GetStaminaData((int)data.get_stamina());
             this._rewardUIDataList.Add(staminaData);
         }
         if (data.get_skill_point() > 0)
         {
             RewardUIData skillPointData = RewardUIData.GetSkillPointData((int)data.get_skill_point());
             this._rewardUIDataList.Add(skillPointData);
         }
         if (data.get_friends_point() > 0)
         {
             RewardUIData friendPointData = RewardUIData.GetFriendPointData((int)data.get_friends_point());
             this._rewardUIDataList.Add(friendPointData);
         }
         foreach (RewardItemData data8 in data.get_item_list())
         {
             RewardUIData item = new RewardUIData(ResourceType.Item, (int)data8.get_num(), RewardUIData.ITEM_ICON_TEXT_ID, string.Empty, (int)data8.get_id(), (int)data8.get_level());
             this._rewardUIDataList.Add(item);
         }
     }
 }