Beispiel #1
0
        static List <ItemInfoEntity> GetPackItemList(Guid mid, ItemPackageFrame pack = null)
        {
            var packList = new List <ItemInfoEntity>();

            if (null == pack)
            {
                pack = ItemCore.Instance.GetPackageWithoutShadow(mid);
            }
            DicMallItemDataEntity mallCfg = null;

            foreach (var item in pack.GetItemsByType(0))
            {
                if (item.ItemType != (int)EnumItemType.MallItem)
                {
                    continue;
                }
                mallCfg = CacheFactory.ItemsdicCache.GetMallEntityWithoutPointByItemCode(item.ItemCode);
                if (null == mallCfg || mallCfg.EffectType != (int)EnumMallEffectType.SkillCardExp)
                {
                    continue;
                }
                packList.Add(item);
            }
            return(packList);
        }
Beispiel #2
0
        /// <summary>
        /// BuildPackageData
        /// </summary>
        /// <param name="package"></param>
        /// <param name="itemType"></param>
        /// <returns></returns>
        public ItemPackageData BuildPackageData(ItemPackageFrame package, int itemType = 0)
        {
            var data = new ItemPackageData();

            data.Items = package.GetItemsByType(itemType);
            var teammember = MatchDataHelper.GetSolutionTeammembers(package.ManagerId);

            ItemPackageFrame.CaluPackageCardKpi(data.Items, teammember);
            data.PackageSize = package.PackageSize;
            return(data);
        }