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

◆ IsRecipePossibleToPerform()

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

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

297 {
298 if ( !itemA || !itemB )
299 {
300 return false;
301 }
302
303 m_Ingredients[0] = itemA;
304 m_Ingredients[1] = itemB;
305
307
308 bool result = CheckRecipe(id, m_sortedIngredients[0], m_sortedIngredients[1], player);
309 if (result)
310 {
311 result = RecipeSanityCheck(2, m_sortedIngredients, player);
312 }
313
314 return result;
315 }
ItemBase m_sortedIngredients[MAX_NUMBER_OF_INGREDIENTS]
Определения PluginRecipesManager.c:37
bool CheckRecipe(int id, ItemBase item1, ItemBase item2, PlayerBase player)
Определения PluginRecipesManager.c:477
bool RecipeSanityCheck(int num_of_ingredients, InventoryItemBase items[], PlayerBase player)
Определения PluginRecipesManager.c:407
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:496

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