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

◆ GetRecipesActions()

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

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

2283 {
2284 PlayerBase p = PlayerBase.Cast(player);
2285
2286 array<int> recipesIds = p.m_Recipes;
2287 PluginRecipesManager moduleRecipesManager = PluginRecipesManager.Cast(GetPlugin(PluginRecipesManager));
2288 if (moduleRecipesManager)
2289 {
2290 EntityAI itemInHands = player.GetHumanInventory().GetEntityInHands();
2291 moduleRecipesManager.GetValidRecipes(ItemBase.Cast(this), ItemBase.Cast(itemInHands), recipesIds, p);
2292 }
2293
2294 for (int i = 0;i < recipesIds.Count(); i++)
2295 {
2296 int key = recipesIds.Get(i);
2297 string recipeName = moduleRecipesManager.GetRecipeName(key);
2298 outputList.Insert(new TSelectableActionInfo(SAT_CRAFTING, key, recipeName));
2299 }
2300 }
Param3 TSelectableActionInfo
class LogManager EntityAI
PluginBase GetPlugin(typename plugin_type)
Определения PluginManager.c:316
void ItemBase()
Определения ItemBase.c:140
const int SAT_CRAFTING
Определения constants.c:451

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