Exemple #1
0
        public List <Goods> GetAccessoriesGoods()
        {
            List <Goods> goods = new List <Goods>();

            if (IsHaveAccessories())
            {
                foreach (var acc in netEmailAttachs)
                {
                    if (acc.type == GameConst.GIVE_TYPE_EQUIP)
                    {
                        Goods equip = GoodsHelper.CreateEquipFromNet(acc.goods);
                        goods.Add(equip);
                    }
                    else if (acc.type == GameConst.GIVE_TYPE_GOODS)
                    {
                        Goods goodsItem = GoodsHelper.GetGoodsFromPkgInfo(acc.goods);
                        goods.Add(goodsItem);
                    }
                }
            }
            return(goods);
        }