public ShopItem(int id, ICurrency price, ISellableItem item, List <ShopItemOption> shopItemOptions) { Id = id; Price = price; Item = item; ShopItemOptions = shopItemOptions; }
public ShopItem(int id, ICurrency price, ISellableItem item) { Id = id; Price = price; Item = item; ShopItemOptions = new List <ShopItemOption>(); }
public Disposal(IShift shift, ISellableItem item) { ShiftID = shift.ID; ItemID = item.ID; Basis = string.Empty; Quantity = 0; }
public ReceiptItem(ISellableItem item) { this.ItemID = item.ID; this.ItemName = item.Name; this.Quantity = 1; this.Price = item.Price; this.Discount = item.Discount; this.Item = item as Item; }
public Supply(IShift shift, ISellableItem item) { this.ShiftID = shift.ID; this.ItemID = item.ID; this.Basis = string.Empty; this.Quantity = 0; this.Price = 0; this.SupplyDT = default; }
public async Task Register(ISellableItem item) { try { using (CashRegisterContext ctx = new CashRegisterContext()) { DisposalDT = DateTime.Now; await ctx.RegisterDisposal(this, item); } } catch (Exception ex) { throw new Exception(ex.Message); } }
public override void Reload() { if (Reloading) { return; } Reloading = true; int i; if (ItemList == null || (i = ItemList.IndexOf(ShopItem)) == -1) { Owner.LeaveWorld(this); return; } if (ShopItem.Count == 0) { ItemList.Remove(ShopItem); if (ItemList.Count <= 0) { Owner.LeaveWorld(this); return; } } i++; if (ItemList.Count <= i) { i = 0; } var nextItem = ItemList[i]; ShopItem = nextItem; Item = nextItem.ItemId; Price = nextItem.Price; Count = nextItem.Count; //TimeLeft = Rand.Next(30000, 60000); Reloading = false; }
public CustomShopItem(int id, ICurrency price, ISellableItem item, Player.Player seller) : base(id, price, item) { Seller = seller; }
public GenericShopItem(int id, string articleNumber, ICurrency price, ISellableItem item) : base(id, price, item) { ArticleNumber = articleNumber; }
public Reward(ISellableItem shopReward) { ShopReward = shopReward; }