DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ IsRecipePossibleToPerform()

bool PluginRecipesManagerBase::IsRecipePossibleToPerform ( int id,
ItemBase itemA,
ItemBase itemB,
PlayerBase player )
inlineprotected

См. определение в файле PluginRecipesManager.c строка 289

290 {
291 if ( !itemA || !itemB )
292 {
293 return false;
294 }
295
296 m_Ingredients[0] = itemA;
297 m_Ingredients[1] = itemB;
298
300
301 bool result = CheckRecipe(id, m_sortedIngredients[0], m_sortedIngredients[1], player);
302 if (result)
303 {
304 result = RecipeSanityCheck(2, m_sortedIngredients, player);
305 }
306
307 return result;
308 }
ItemBase m_sortedIngredients[MAX_NUMBER_OF_INGREDIENTS]
Определения PluginRecipesManager.c:37
bool CheckRecipe(int id, ItemBase item1, ItemBase item2, PlayerBase player)
Определения PluginRecipesManager.c:470
bool RecipeSanityCheck(int num_of_ingredients, InventoryItemBase items[], PlayerBase player)
Определения PluginRecipesManager.c:400
ItemBase m_Ingredients[MAX_INGREDIENTS]
Определения PluginRecipesManager.c:27
bool SortIngredientsInRecipe(int id, int num_of_ingredients, ItemBase ingredients_unsorted[], ItemBase ingredients_sorted[])
sorts ingredients correctly as either first or second ingredient based on their masks
Определения PluginRecipesManager.c:489

Перекрестные ссылки CheckRecipe(), m_Ingredients, m_sortedIngredients, RecipeSanityCheck() и SortIngredientsInRecipe().