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

Public Member Functions

 Ingredient ()
 
void ShowGUI (int itemIndex, string[] labelList, string apiPrefix, Recipe recipe)
 

Properties

string EditorLabel [get]
 
InvItem InvItem [get]
 
int ItemID [get, set]
 
int CraftingIndex [get]
 
int Amount [get]
 

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.

Property Documentation

◆ Amount

int AC.Ingredient.Amount
get

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

◆ CraftingIndex

int AC.Ingredient.CraftingIndex
get

Which index in an InvCollection that the item must be placed in, if the Rrecipe's useSpecificSlots = True

◆ InvItem

InvItem AC.Ingredient.InvItem
get

The associated Inventory item

◆ ItemID

int AC.Ingredient.ItemID
getset

The ID number of the associated Inventory item