См. определение в файле PluginRecipesManager.c строка 219
220 {
221
223 {
225 if (recipe)
226 {
227
228 int recipe_id = recipe.GetID();
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);
238
239 if (!co)
240 {
243 }
244 co.AddRecipe(recipe_id, mask);
245 }
246 }
247 }
248 }
249 }
const int MAX_NUMBER_OF_INGREDIENTS
static ref map< string, ref CacheObject > m_RecipeCache
ref array< ref RecipeBase > m_RecipeList
Перекрестные ссылки CacheObject(), m_RecipeCache, m_RecipeList, MAX_NUMBER_OF_INGREDIENTS, Math::Pow() и x.
Используется в GenerateRecipeCache().