| 123456789101112131415161718192021222324252627282930313233 |
- using System;
- namespace ScrapYard.API
- {
- public class ShopPlatformEntry
- {
- [Obsolete("Use Id insted (since this now also allows chip Ids)")]
- public int ItemID { get { return Id; } }
- public int Id { get; protected set; }
- public int Price { get; protected set; }
- public int Quantity { get; protected set; }
- public int CurrencyItemID { get; protected set; }
- public ShopPlatformEntryType EntryType { get; protected set; }
- public ShopPlatformEntry(int id, int price, int quantity, int currencyItemID)
- {
- this.Id = id;
- this.Price = price;
- this.CurrencyItemID = currencyItemID;
- this.Quantity = quantity;
- this.EntryType = ShopPlatformEntryType.Item;
- }
- public ShopPlatformEntry(int id, int price, int quantity = 1, int currencyItemID = 57, ShopPlatformEntryType type = ShopPlatformEntryType.Item)
- {
- this.Id = id;
- this.Price = price;
- this.CurrencyItemID = currencyItemID;
- this.Quantity = quantity;
- this.EntryType = type;
- }
- }
- }
|