public StockEntry(Mod owner, BigCraftableInformation bigCraftableInformation, int price = 0, int stock = ShopUtilities.Infinite)
 {
     Owner = owner;
     BigCraftableInformation = bigCraftableInformation;
     Price = price;
     Stock = stock;
 }
 public StockEntry(Mod owner, BigCraftableInformation bigCraftableInformation, ShopUtilities.CheckIfAddShopStock checkDelegate, int price = 0, int stock = ShopUtilities.Infinite)
 {
     Owner = owner;
     BigCraftableInformation = bigCraftableInformation;
     CheckDelegate           = checkDelegate;
     Price = price;
     Stock = stock;
 }
Example #3
0
 public TestBigCraftable(BigCraftableInformation information, Vector2 vector, bool isRecipe = false) :
     base(information, vector, isRecipe)
 {
 }
Example #4
0
 /// <summary>
 /// Add a big craftable to a registered custom shop. This method will NOT add stock to vanilla shops!
 /// </summary>
 /// <param name="owner">Instance of the mod which is submitting this request</param>
 /// <param name="shopName">String identifier of the shop to add stock to</param>
 /// <param name="item">BigCraftableInformation of item to add</param>
 /// <param name="checkDelegate">Delegate method which checks if this item should be in stock</param>
 /// <param name="price">optional, price of item</param>
 /// <param name="stock">optional, amount of item in stock</param>
 public static void AddToShopStock(Mod owner, string shopName, BigCraftableInformation item, CheckIfAddShopStock checkDelegate, int price = 0, int stock = Infinite)
 {
     AddToShopStock(owner, shopName, new StockEntry(owner, item, checkDelegate, price, stock));
 }
Example #5
0
 /// <summary>
 /// Add a big craftable to a shop
 /// </summary>
 /// <param name="owner">Instance of the mod which is submitting this request</param>
 /// <param name="shop">Shop to add the item to</param>
 /// <param name="item">BigCraftableInformation of item to add</param>
 /// <param name="price">optional, price of item</param>
 /// <param name="stock">optional, amount of item in stock</param>
 public static void AddToShopStock(Mod owner, Shops shop, BigCraftableInformation item, int price = 0, int stock = Infinite)
 {
     AddToShopStock(shop, new StockEntry(owner, item, price, stock));
 }
Example #6
0
 public BigCraftable(BigCraftableInformation information, Vector2 vector, bool isRecipe = false) :
     base(vector, information.Id, isRecipe)
 {
     this.Information = information;
 }
 public BigCraftable(BigCraftableInformation information) :
     base(Vector2.Zero, information.Id, false)
 {
     Information = information;
 }