См. определение в файле PluginRecipesManager.c строка 212
213 {
214
216 {
218 if (recipe)
219 {
220
221 int recipe_id = recipe.GetID();
223 {
224 array<string> list = recipe.m_Ingredients[i];
225
226 for (
int x = 0;
x < list.Count();
x++)
227 {
228 string ingredient = list.Get(
x);
229 int mask = Math.Pow(2,i);
231
232 if (!co)
233 {
236 }
237 co.AddRecipe(recipe_id, mask);
238 }
239 }
240 }
241 }
242 }
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().