|
Adventure Creator 1.85.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2025
|
Public Member Functions | |
| Recipe (int[] idArray) | |
| The default Constructor. | |
| bool | CanBeCrafted (InvCollection invCollection, int[] limitToCategoryIDs=null) |
| Checks if a collection of inventory item instances has all the items necessary to craft this recipe's item. | |
| int | GetNumItemReferences (int itemID) |
| int | UpdateItemReferences (int oldItemID, int newItemID) |
Public Attributes | |
| string | label |
| int | id |
| List< Ingredient > | ingredients = new List<Ingredient> () |
| int | resultID |
| bool | useSpecificSlots |
| OnCreateRecipe | onCreateRecipe = OnCreateRecipe.JustMoveToInventory |
| ActionListAsset | invActionList |
| ActionListAsset | actionListOnCreate |
Properties | |
| string | EditorLabel [get] |
A data container for a recipe. A recipe requires multiple inventory items, optionally arranged in a specific pattern, and replaces them with a new inventory item.
| AC.Recipe.Recipe | ( | int[] | idArray | ) |
The default Constructor.
| idArray | An array of already-used ID numbers, so that a unique one can be generated |
| bool AC.Recipe.CanBeCrafted | ( | InvCollection | invCollection, |
| int[] | limitToCategoryIDs = null ) |
Checks if a collection of inventory item instances has all the items necessary to craft this recipe's item.
| invCollection | The collection of inventory item instances to check |
| limitToCategoryIDs | If set, an array of item categories that the resulting item must be within for the recipe to be valid |
| int AC.Recipe.GetNumItemReferences | ( | int | itemID | ) |
Implements AC.IItemReferencer.
| int AC.Recipe.UpdateItemReferences | ( | int | oldItemID, |
| int | newItemID ) |
Implements AC.IItemReferencer.
| ActionListAsset AC.Recipe.actionListOnCreate |
The ActionListAsset to run when the recipe is created
| int AC.Recipe.id |
A unique identifier
| List<Ingredient> AC.Recipe.ingredients = new List<Ingredient> () |
The required ingredients
| ActionListAsset AC.Recipe.invActionList |
The ActionListAsset to run, if onCreateRecipe = OnCreateRecipe.RunActionList
| string AC.Recipe.label |
The recipe's editor name
| OnCreateRecipe AC.Recipe.onCreateRecipe = OnCreateRecipe.JustMoveToInventory |
What happens when the recipe is created (JustMoveToInventory, SelectItem, RunActionList)
| int AC.Recipe.resultID |
The ID number of the associated inventory item (InvItem) created when the recipe is complete
| bool AC.Recipe.useSpecificSlots |
If True, then the ingredients must be placed in specific slots within a MenuCrafting element