/// <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)); }
/// <summary> /// Add an item 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="stockType">The type of Id the item being added is</param> /// <param name="Id">Id of the item being added</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, StockType stockType, int Id, CheckIfAddShopStock checkDelegate, int price = 0, int stock = Infinite) { AddToShopStock(owner, shopName, new StockEntry(owner, stockType, Id, checkDelegate, price, stock)); }
/// <summary> /// Add an item 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">ItemInformation 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, Shops shop, ItemInformation item, CheckIfAddShopStock checkDelegate, int price = 0, int stock = Infinite) { AddToShopStock(shop, new StockEntry(owner, item, checkDelegate, price, stock)); }