74 if (
m_player.GetActionManager().GetRunningAction() )
89 if ( item1 != item_in_hands && item2 != item_in_hands )
94 item1.GetInventory().GetCurrentInventoryLocation(il1);
95 item2.GetInventory().GetCurrentInventoryLocation(il2);
97 Error(
"Crafting manager - both of items are out of hands - item1: " + il1.
DumpToString() +
" item2: " + il2.
DumpToString() +
" / item in hands: - " + item_in_hands);
113 if (recipeCount == 0)
140 for (
int i = 0; i < recipeCount; i++ )
142 if (recipeID == -1 ||
m_recipes.Get(i) == recipeID)
147 m_player.RPCSingleParam(
ERPCs.RPC_CRAFTING_INVENTORY_INSTANT, craftParam,
true,
m_player.GetIdentity());
void SetInventoryAction(ActionBase action_name, ItemBase target_item, ItemBase main_item)
static ActionVariantManager GetVariantManager(typename actionName)
ref array< int > m_recipes
void CraftingManager(PlayerBase player, PluginRecipesManager recipesManager)
bool SetInventoryCraft(int recipeID, ItemBase item1, ItemBase item2)
void OnUpdate(Object item, Object target, int component_index)
void ResetInventoryCraft()
const int CM_MODE_INVENTORY
bool IsEnableDebugCrafting()
PluginRecipesManager m_recipesManager
int GetRecipeID(int action_index)
void SetRecipeID(int recipeID)
ActionVariantManager m_actionVariantManager
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
void Error(string err)
Messagebox with error message.