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

◆ GetRecipeAnimationInfo()

RecipeAnimationInfo GetRecipeAnimationInfo ( PlayerBase player,
ItemBase mainItem,
ItemBase target )
protected

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

647 {
648 RecipeAnimationInfo recipeAnimationInfo;
649
650 int found = false;
651
652 for(int i = 0; i < m_AnimationInfos.Count();i++)
653 {
654 recipeAnimationInfo = m_AnimationInfos[i];
655 if(g_Game.IsKindOf(mainItem.GetType(), recipeAnimationInfo.m_IngredientName))
656 {
657 found = true;
658 break;
659 }
660 }
661
662 if(!found)
663 {
664 recipeAnimationInfo = new RecipeAnimationInfo("ItemBase", BASE_CRAFT_ANIMATION_ID, false);
665 }
666
667 return recipeAnimationInfo;
668 }
DayZGame g_Game
Определения DayZGame.c:3942
class RecipeAnimationInfo BASE_CRAFT_ANIMATION_ID
ref array< ref RecipeAnimationInfo > m_AnimationInfos
Определения RecipeBase.c:26
string m_IngredientName
Определения RecipeBase.c:7
Определения RecipeBase.c:6

Перекрестные ссылки BASE_CRAFT_ANIMATION_ID, g_Game, m_AnimationInfos и RecipeAnimationInfo::m_IngredientName.