/// <summary> /// Creates an itemForSave for a given CraftingMaterialItem /// </summary> /// <param name="item"></param> /// <returns></returns> private ItemForSave ConvertFromItem(CraftingMaterialItem item) { ItemForSave itemForSave = new ItemForSave(); SetCommonProperties(item, itemForSave); return(itemForSave); }
/// <summary> /// Create an crafting material item from a given itemForSave /// </summary> /// <param name="itemForSave"></param> /// <returns></returns> private CraftingMaterialItem CreateCraftingMaterialItem(ItemForSave itemForSave) { CraftingMaterialItem item = new CraftingMaterialItem(); SetCommonProperties(itemForSave, item); return(item); }
/// <summary> /// Handles the usage of CraftingItems /// </summary> /// <param name="craftingMaterial"></param> public void UseCraftingMaterialItem(CraftingMaterialItem craftingMaterial) { ClearWeapon(); //do sth //e.g. show for wich items this craftingMaterial is needed to craft them }