90 {
92 {
93 if (!action_data.m_Target.GetObject() || !action_data.m_MainItem)
94 return false;
95
96 PluginRecipesManager moduleRecipesManager;
97 Class.CastTo(moduleRecipesManager,
GetPlugin(PluginRecipesManager) );
98
99 WorldCraftActionData action_data_wc = WorldCraftActionData.Cast(action_data);
100
102 Class.CastTo(item2, action_data_wc.m_Target.GetObject());
103 if(!moduleRecipesManager.IsRecipePossibleToPerform(action_data_wc.m_RecipeID, action_data.m_MainItem, item2, action_data.m_Player))
104 {
105 return false;
106 }
107 }
108
109 return true;
110 }
class GP5GasMask extends MaskBase ItemBase
PluginBase GetPlugin(typename plugin_type)
proto native CGame GetGame()