Example #1
0
        public float TestRecipe(IRecipe recipe)
        {
            float result = 0.0f;
            var sp = new RecipeGroups (recipe.GetGroups ());

            foreach (var permutation in _resultPermutations) {
                var match = sp.TestMatch (permutation);
                if (match > 0) {
                    result = Math.Max (result, match);
                }
            }

            return result;
        }