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

◆ GetRecipesActions()

void InventoryItem::GetRecipesActions ( Man player,
out TSelectableActionInfoArray outputList )
inlineprotected

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

2317 {
2318 PlayerBase p = PlayerBase.Cast(player);
2319
2320 array<int> recipesIds = p.m_Recipes;
2321 PluginRecipesManager moduleRecipesManager = PluginRecipesManager.Cast(GetPlugin(PluginRecipesManager));
2322 if (moduleRecipesManager)
2323 {
2324 EntityAI itemInHands = player.GetHumanInventory().GetEntityInHands();
2325 moduleRecipesManager.GetValidRecipes(ItemBase.Cast(this), ItemBase.Cast(itemInHands), recipesIds, p);
2326 }
2327
2328 for (int i = 0;i < recipesIds.Count(); i++)
2329 {
2330 int key = recipesIds.Get(i);
2331 string recipeName = moduleRecipesManager.GetRecipeName(key);
2332 outputList.Insert(new TSelectableActionInfo(SAT_CRAFTING, key, recipeName));
2333 }
2334 }
Param3 TSelectableActionInfo
class LogManager EntityAI
PluginBase GetPlugin(typename plugin_type)
Определения PluginManager.c:316
void ItemBase()
Определения ItemBase.c:140
const int SAT_CRAFTING
Определения 3_Game/constants.c:453

Перекрестные ссылки HumanInventory::GetEntityInHands(), EntityAI::GetHumanInventory(), GetPlugin(), ItemBase() и SAT_CRAFTING.