/// <summary> /// Adds a given itemDefinition item with a given quantity to the package sale. /// </summary> /// <param name="Item">The itemDefinition object of the item to add to the package.</param> /// <param name="Amount">The amount of times this item should be added to the package.</param> public void addPackageItem(itemDefinition Item, int Amount, int specialSpriteID) { if (!this.isPackage) { return; } storeCataloguePackageItem pPackageItem = new storeCataloguePackageItem(Item, Amount, specialSpriteID); this.pPackageItems.Add(pPackageItem); }
/// <summary> /// Adds a given itemDefinition item with a given quantity to the package sale. /// </summary> /// <param name="Item">The itemDefinition object of the item to add to the package.</param> /// <param name="Amount">The amount of times this item should be added to the package.</param> public void addPackageItem(itemDefinition Item, int Amount, int specialSpriteID) { if (!this.isPackage) return; storeCataloguePackageItem pPackageItem = new storeCataloguePackageItem(Item, Amount, specialSpriteID); this.pPackageItems.Add(pPackageItem); }