CraftBook class
CraftBook
Inheritance
Base: IScriptable
Derived
None.
Properties
| Property | Type | |
|---|---|---|
knownRecipes | ItemRecipe[] | scripted |
newRecipes | TDBID[] | scripted |
owner | WeakHandle<game.Object> | scripted |
Functions
void InitializeCraftBookOwner(WeakHandle<game.Object> owner)RTTIvoid InitializeCraftBook(WeakHandle<game.Object> owner, WeakHandle<game.data.Craftable_Record> recipes)RTTIWeakHandle<game.data.Item_Record>[] GetCraftableItems()RTTIItemRecipe GetRecipeData(TDBID Recipe)RTTIint GetRecipeIndex(TDBID recipe)RTTIbool KnowsRecipe(TDBID recipe)RTTIvoid HideRecipesForOwnedItems()RTTIvoid AddRecipe(TDBID targetItem, WeakHandle<game.data.Item_Record>[]? hideOnItemsAdded, int? amount)RTTIvoid SetRecipeInspected(TDBID itemID)RTTIbool IsRecipeNew(TDBID itemID)RTTIbool HideRecipe(TDBID recipe, bool shouldHide)RTTIWeakHandle<game.Object> GetOwner()RTTIvoid ResetRecipeCraftedAmount()RTTI