Exemplo n.º 1
0
        public GCScripShopItem(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
        {
            GCScripShopCategory = Sheet.Collection.GetSheet <GCScripShopCategory>()[ParentKey];
            GCShop = Sheet.Collection.GetSheet <GCShop>().FirstOrDefault(_ => _.GrandCompany.Key == GCScripShopCategory.GrandCompany.Key);

            var sealItem = GCShop.GrandCompany.SealItem;

            Cost = new ShopListingItem(this, sealItem, GCSealsCost, false, 0);
        }
        public GrandCompanySealShopItem(IXivSheet sheet, IRelationalRow sourceRow)
            : base(sheet, sourceRow)
        {
            GCShop = Sheet.Collection.GetSheet<GCShop>().FirstOrDefault(_ => _.Min <= Key && _.Max >= Key);

            if (GCShop == null) return;

            var sealItem = GCShop.GrandCompany.SealItem;
            Cost = new ShopListingItem(this, sealItem, AsInt32("Cost"), false);
        }
Exemplo n.º 3
0
        public GrandCompanySealShopItem(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
        {
            GCShop = Sheet.Collection.GetSheet <GCShop>().FirstOrDefault(_ => _.Min <= Key && _.Max >= Key);

            if (GCShop == null)
            {
                return;
            }

            var sealItem = GCShop.GrandCompany.SealItem;

            Cost = new ShopListingItem(this, sealItem, AsInt32("Cost"), false);
        }
Exemplo n.º 4
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="ShopItem" /> class.
 /// </summary>
 /// <param name="sheet"><see cref="IXivSheet" /> containing this object.</param>
 /// <param name="sourceRow"><see cref="IRelationalRow" /> to read data from.</param>
 public GilShopItem(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
     _Cost = new ShopListingItem(this, Sheet.Collection.GetSheet <Item>()[GilItemKey],
                                 Item.Ask, false, 0);
 }
Exemplo n.º 5
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="ShopItem" /> class.
 /// </summary>
 /// <param name="sheet"><see cref="IXivSheet" /> containing this object.</param>
 /// <param name="sourceRow"><see cref="IRelationalRow" /> to read data from.</param>
 public ShopItem(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow)
 {
     _Cost = new ShopListingItem(this, Sheet.Collection.GetSheet <Item>()[GilItemKey],
                                 (PriceFactor * Item.Ask) / 100, false);
 }
Exemplo n.º 6
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="ShopItem" /> class.
 /// </summary>
 /// <param name="sheet"><see cref="IXivSheet" /> containing this object.</param>
 /// <param name="sourceRow"><see cref="IRelationalRow" /> to read data from.</param>
 public ShopItem(IXivSheet sheet, IRelationalRow sourceRow)
     : base(sheet, sourceRow)
 {
     _Cost = new ShopListingItem(this, Sheet.Collection.GetSheet<Item>()[GilItemKey],
         (PriceFactor * Item.Ask) / 100, false);
 }