Ejemplo n.º 1
0
 public ShopSlot(User user, Resource.Data_Shop data_shop, Dictionary <Resource.PriceType, Currency> currencies)
 {
     this.user      = user;
     this.data_shop = data_shop;
     this.currencyForPurchaseSlot = currencies[data_shop.priceType];
     this.lockOpen = true;
 }
        // DB LOAD
        public CardShopSlot(User user, Resource.Data_Shop data_shop, Dictionary <Resource.PriceType, Currency> currencies, Table.TblShopSlot tblShop, List <Table.TblShopSlotCard> tblShopCard) : base(user, data_shop, currencies)
        {
            logger.Debug($"Init UserID={UID} ShopType={data_shop?.shopType} SlotIndex={tblShop?.slotIndex} cardCount={tblShopCard?.Count}");

            this.tblShop     = tblShop;
            this.tblShopCard = tblShopCard;
            this.lockOpen    = true;
        }
 public CardShopSlot(User user, Resource.Data_Shop data_shop, Dictionary <Resource.PriceType, Currency> currencies, int level, bool lockOpen) : base(user, data_shop, currencies)
 {
     logger.Debug($"Init UserID={UID} ShopType={data_shop?.shopType} SlotIndex={data_shop?.slotIndex} Level={level} LockOpen={lockOpen}");
     this.lockOpen = lockOpen;
     if (data_shop.slotUnlockLevel < 2)
     {
         this.lockOpen = true;
     }
 }
 public CurrencyShopSlot(User user, Resource.Data_Shop data_shop, Dictionary <Resource.PriceType, Currency> currencies) : base(user, data_shop, currencies)
 {
     data_price       = TCGGameSrv.ResourceDataLoader.Data_Price_List.Where(x => x.priceType == (Resource.PriceType)data_shop.productSubType).FirstOrDefault();
     product_currency = currencies[data_price.priceType];
 }
Ejemplo n.º 5
0
 public EtcShopSlot(User user, Resource.Data_Shop data_shop, Dictionary <Resource.PriceType, Currency> currencies) : base(user, data_shop, currencies)
 {
 }