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

◆ GetValidRecipes()

int PluginRecipesManagerBase::GetValidRecipes ( ItemBase item1,
ItemBase item2,
array< int > ids,
PlayerBase player )
inlineprivate

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

87 {
88 if ( item1 == NULL || item2 == NULL )
89 {
90 if (ids) ids.Clear();
91 return 0;
92 }
93
94 if ( ( item1.GetInventory().IsAttachment() && item1.GetHierarchyParent().DisassembleOnLastDetach() ) || ( item2.GetInventory().IsAttachment() && item2.GetHierarchyParent().DisassembleOnLastDetach() ) )
95 {
96 if (ids) ids.Clear();
97 return 0;
98 }
99 m_Ingredients[0] = item1;
100 m_Ingredients[1] = item2;
101
102 return GetValidRecipesProper(2,m_Ingredients, ids, player);
103 }
override bool DisassembleOnLastDetach()
Определения KitBase.c:34
int GetValidRecipesProper(int num_of_items, ItemBase items[], array< int > ids, PlayerBase player)
Определения PluginRecipesManager.c:105
ItemBase m_Ingredients[MAX_INGREDIENTS]
Определения PluginRecipesManager.c:27

Перекрестные ссылки ItemBase::DisassembleOnLastDetach(), GetValidRecipesProper() и m_Ingredients.