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

◆ GetRecipesActions()

void GetRecipesActions ( Man player,
out TSelectableActionInfoArray outputList )
protected

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

2278 {
2279 PlayerBase p = PlayerBase.Cast(player);
2280
2281 array<int> recipesIds = p.m_Recipes;
2282 PluginRecipesManager moduleRecipesManager = PluginRecipesManager.Cast(GetPlugin(PluginRecipesManager));
2283 if (moduleRecipesManager)
2284 {
2285 EntityAI itemInHands = player.GetEntityInHands();
2286 moduleRecipesManager.GetValidRecipes(ItemBase.Cast(this), ItemBase.Cast(itemInHands), recipesIds, p);
2287 }
2288
2289 for (int i = 0;i < recipesIds.Count(); i++)
2290 {
2291 int key = recipesIds.Get(i);
2292 string recipeName = moduleRecipesManager.GetRecipeName(key);
2293 outputList.Insert(new TSelectableActionInfo(SAT_CRAFTING, key, recipeName));
2294 }
2295 }
ActionOverrideData TSelectableActionInfo
PluginBase GetPlugin(typename plugin_type)
Определения PluginManager.c:326
Определения PlayerBaseClient.c:2
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
const int SAT_CRAFTING
Определения 3_Game/DayZ/constants.c:485

Перекрестные ссылки GetPlugin(), SAT_CRAFTING и TSelectableActionInfo.