ORK Framework  2.22.0
API Documentation
ORKFramework.CraftingHandler Class Reference
Inheritance diagram for ORKFramework.CraftingHandler:
ORKFramework.ISaveData

Public Member Functions

 CraftingHandler (Inventory inventory)
 
void Clear ()
 
void CheckDataChanged ()
 
void MarkDataChanged (bool fireChanged)
 
bool HasNewTypes (bool checkParent, List< int > types)
 
bool HasType (bool checkParent, int typeID, bool checkNewContent)
 
List< int > GetTypes (int parentType)
 
void GetItemTypes (int parentType, ref List< int > list, bool onlySellable)
 
bool HasItemType (bool checkParent, int itemTypeID, bool onlySellable, bool checkNewContent)
 
bool HasNewItemTypes (bool checkParent, List< int > types, bool onlySellable)
 
void GetRecipesByItemType (int itemTypeID, bool checkParent, ref List< IShortcut > list)
 
void GetRecipesByItemType (int itemTypeID, bool checkParent, ref List< IInventoryShortcut > list)
 
void AddCraftingType (int typeID, bool checkParent, int quantity, bool showNotification, bool showConsole)
 
void AddRecipe (int recipeID, int quantity, bool showNotification, bool showConsole)
 
void RemoveCraftingType (int typeID, bool checkParent, int quantity, bool showNotification, bool showConsole)
 
void RemoveRecipe (int recipeID, int quantity, bool showNotification, bool showConsole)
 
bool HasRecipe (int recipeID, int quantity)
 
void GetRecipe (int recipeID, int quantity, ref List< IShortcut > list)
 
List< CraftingRecipeShortcutGetRecipesByType (int typeID, bool checkParent)
 
void GetRecipesByType (int typeID, bool checkParent, ref List< CraftingRecipeShortcut > list)
 
int GetRecipeQuantity (int recipeID)
 
bool AddItem (IShortcut item, bool unused, bool unused2, bool unused3)
 
void RemoveItem (IShortcut item)
 
List< IShortcutGetItemList ()
 
void ClearItemList ()
 
void CreateItemList (Combatant combatant, CraftingListCreationType creationType, bool consumeUnused, bool onlyKnownRecipes)
 
void FireCraftingListChanged ()
 
bool HasSellable (List< int > itemTypes)
 
bool HasSellable (int itemTypeID, bool checkParent)
 
void GetSellable (ref List< ShopWrapperShortcut > list, List< int > itemTypes)
 
DataObject SaveGame ()
 Used to save the data - you need to add the data to a ORKFramework.DataObject. More...
 
void LoadGame (DataObject data)
 Used to load the data - you need to get the data from the ORKFramework.DataObject. More...
 

Properties

Notify CraftingListChanged
 
int Count [get]
 
bool IsEmpty [get]
 

Member Function Documentation

void ORKFramework.CraftingHandler.LoadGame ( DataObject  data)

Used to load the data - you need to get the data from the ORKFramework.DataObject.

Parameters
dataA ORKFramework.DataObject containing the data.

Implements ORKFramework.ISaveData.

DataObject ORKFramework.CraftingHandler.SaveGame ( )

Used to save the data - you need to add the data to a ORKFramework.DataObject.

Returns
A ORKFramework.DataObject containing the data.

Implements ORKFramework.ISaveData.