Adventure Creator  1.68.2
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2018
AC.Ingredient Class Reference

Public Member Functions

 Ingredient ()
 

Public Attributes

int itemID
 
int amount
 
int slotNumber
 

Detailed Description

A data container for an ingredient within a Recipe. If multiple instances of the associated inventory item can be carried, then the amount needed of that item can also be set.

Constructor & Destructor Documentation

◆ Ingredient()

AC.Ingredient.Ingredient ( )

The default Constructor.

Member Data Documentation

◆ amount

int AC.Ingredient.amount

The amount needed, if the InvItem's canCarryMultiple = True

◆ itemID

int AC.Ingredient.itemID

The ID number of the associated inventory item (InvItem)

◆ slotNumber

int AC.Ingredient.slotNumber

The recipe's required slot, if the Recipe's useSpecificSlots = True