sorts ingredients correctly as either first or second ingredient based on their masks
См. определение в файле PluginRecipesManager.c строка 496
497 {
499
500 for (int i = 0; i < num_of_ingredients; i++)
501 {
505 }
506
508
509 if (result)
510 {
511 for (i = 0; i < num_of_ingredients; i++)
512 {
514 ingredients_sorted[index] = ingredients_unsorted[ i ];
515 }
516 }
517
518 return result;
519 }
eBleedingSourceType GetType()
void PluginRecipesManager()
int m_IngredientBitMaskSize[MAX_INGREDIENTS]
bool ResolveIngredients(int num_of_ingredients, int passes=0)
int m_BitsResults[MAX_INGREDIENTS]
int m_IngredientBitMask[MAX_INGREDIENTS]
Перекрестные ссылки CacheObject(), ClearResults(), GetType(), Math::Log2(), m_BitsResults, m_IngredientBitMask, m_IngredientBitMaskSize, PluginRecipesManager() и ResolveIngredients().
Используется в GetSoundCategory(), IsRecipePossibleToPerform(), PerformRecipeServer() и SortIngredients().