ShopPlatformEntry.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. namespace ScrapYard.API
  3. {
  4. public class ShopPlatformEntry
  5. {
  6. [Obsolete("Use Id insted (since this now also allows chip Ids)")]
  7. public int ItemID { get { return Id; } }
  8. public int Id { get; protected set; }
  9. public int Price { get; protected set; }
  10. public int Quantity { get; protected set; }
  11. public int CurrencyItemID { get; protected set; }
  12. public ShopPlatformEntryType EntryType { get; protected set; }
  13. public ShopPlatformEntry(int id, int price, int quantity, int currencyItemID)
  14. {
  15. this.Id = id;
  16. this.Price = price;
  17. this.CurrencyItemID = currencyItemID;
  18. this.Quantity = quantity;
  19. this.EntryType = ShopPlatformEntryType.Item;
  20. }
  21. public ShopPlatformEntry(int id, int price, int quantity = 1, int currencyItemID = 57, ShopPlatformEntryType type = ShopPlatformEntryType.Item)
  22. {
  23. this.Id = id;
  24. this.Price = price;
  25. this.CurrencyItemID = currencyItemID;
  26. this.Quantity = quantity;
  27. this.EntryType = type;
  28. }
  29. }
  30. }