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

◆ GetValidRecipes()

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

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

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

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