sorts ingredients correctly as either first or second ingredient based on their masks
См. определение в файле PluginRecipesManager.c строка 489
490 {
492
493 for (int i = 0; i < num_of_ingredients; i++)
494 {
498 }
499
501
502 if (result)
503 {
504 for (i = 0; i < num_of_ingredients; i++)
505 {
507 ingredients_sorted[index] = ingredients_unsorted[ i ];
508 }
509 }
510
511 return result;
512 }
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().