Пример #1
0
    /// <summary>
    /// construct
    /// </summary>
    protected ProductShop(Master.ShopData master)
        : base(master)
    {
        //支払い方法と値段の設定
        if (this.master.needChargeGem > 0)
        {
            this.payType = ItemType.ChargeGem;
            this.price   = this.master.needChargeGem;
        }
        else if (this.master.needFreeGem > 0)
        {
            this.payType = ItemType.FreeGem;
            this.price   = this.master.needFreeGem;
        }
        else if (this.master.needCoin > 0)
        {
            this.payType = ItemType.Coin;
            this.price   = this.master.needCoin;
        }

        //付与されるアイテム
        this.addItems = Masters.ShopItemDB
                        .GetList()
                        .Where(x => x.shopItemId == this.master.shopItemId)
                        .Select(x => new AddItem {
            itemType = x.itemType, itemId = x.itemId, itemNum = x.itemNum
        })
                        .ToArray();
    }
Пример #2
0
 /// <summary>
 /// construct
 /// </summary>
 public ProductBattleItem(Master.ShopData master)
     : base(master)
 {
 }
Пример #3
0
 /// <summary>
 /// constructor
 /// </summary>
 public ProductGear(Master.ShopData master)
     : base(master)
 {
 }
Пример #4
0
 /// <summary>
 /// constructor
 /// </summary>
 public ProductCoin(Master.ShopData master)
     : base(master)
 {
     this.iconSize = new Vector2(256, 256);
 }
Пример #5
0
 /// <summary>
 /// constructor
 /// </summary>
 public ProductCannon(Master.ShopData master)
     : base(master)
 {
     this.iconSize      = new Vector2(256, 256);
     this.cannonSetData = Masters.CannonSetDB.FindById(this.addItems[0].itemId);
 }