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

◆ WalkRecipes()

void PluginRecipesManagerBase::WalkRecipes ( )
inlineprotected

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

220 {
221 //Print("------------- WalkRecipes --------------");
222 for (int c = 0; c < m_RecipeList.Count(); c++)
223 {
224 RecipeBase recipe = m_RecipeList.Get(c);
225 if (recipe)
226 {
227 //Print(recipe.ClassName());
228 int recipe_id = recipe.GetID();
229 for (int i = 0; i < MAX_NUMBER_OF_INGREDIENTS; i++)
230 {
231 array<string> list = recipe.m_Ingredients[i];
232
233 for (int x = 0; x < list.Count(); x++)
234 {
235 string ingredient = list.Get(x);
236 int mask = Math.Pow(2,i);
237 CacheObject co = m_RecipeCache.Get(ingredient);
238
239 if (!co)
240 {
241 co = new CacheObject;
242 m_RecipeCache.Insert(ingredient,co);
243 }
244 co.AddRecipe(recipe_id, mask);
245 }
246 }
247 }
248 }
249 }
void CacheObject()
Определения CacheObject.c:35
Icon x
void RecipeBase()
Определения RecipeBase.c:67
const int MAX_NUMBER_OF_INGREDIENTS
Определения RecipeBase.c:1
static ref map< string, ref CacheObject > m_RecipeCache
Определения PluginRecipesManager.c:14
ref array< ref RecipeBase > m_RecipeList
Определения PluginRecipesManager.c:42

Перекрестные ссылки CacheObject(), m_RecipeCache, m_RecipeList, MAX_NUMBER_OF_INGREDIENTS, Math::Pow() и x.

Используется в GenerateRecipeCache().