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

◆ InsertIngredientEx()

void InsertIngredientEx ( int index,
string ingredient,
string soundCategory,
DayZPlayerConstants uid = BASE_CRAFT_ANIMATION_ID,
bool showItem = false )
protected

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

165 {
166 array<string> ptr = m_Ingredients[index];
167 ptr.Insert(ingredient);
168 m_SoundCategories[index].Insert(soundCategory);
169
170 if(uid != BASE_CRAFT_ANIMATION_ID)
171 {
172 RecipeAnimationInfo rai = new RecipeAnimationInfo(ingredient, uid, showItem);
173 int animationIndex;
174 for(animationIndex = 0; animationIndex < m_AnimationInfos.Count(); animationIndex++)
175 {
176 if(GetGame().IsKindOf(ingredient, m_AnimationInfos[animationIndex].m_IngredientName))
177 break;
178 }
179 m_AnimationInfos.InsertAt(rai, animationIndex);
180 }
181 }
class RecipeAnimationInfo BASE_CRAFT_ANIMATION_ID
ref array< string > m_SoundCategories[MAX_NUMBER_OF_INGREDIENTS]
Определения RecipeBase.c:25
ref array< string > m_Ingredients[MAX_NUMBER_OF_INGREDIENTS]
Определения RecipeBase.c:24
ref array< ref RecipeAnimationInfo > m_AnimationInfos
Определения RecipeBase.c:26
Определения RecipeBase.c:6
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()

Перекрестные ссылки BASE_CRAFT_ANIMATION_ID, GetGame(), m_AnimationInfos, m_Ingredients и m_SoundCategories.

Используется в RecipeBase::Init() и InsertIngredient().