Esempio n. 1
0
        /// <summary>
        /// Creates a new weighted ingredient.
        /// </summary>
        /// <param name="ingredient">The ingredient to add</param>
        /// <param name="kilograms">How many kilograms of the ingredient to add.</param>
        public WeightedIngredient(Ingredient ingredient, decimal kilograms)
        {
            Kilograms = kilograms;

            CommonData = new CommonIngredientData {
                Ingredient    = ingredient,
                ScalingFactor = 1
            };
        }
Esempio n. 2
0
        /// <summary>
        /// Creates a new hop ingredient
        /// </summary>
        /// <param name="hop">The hop</param>
        /// <param name="aau">How much hop must be added, in AAU</param>
        /// <param name="cookingTime">The cooking time of the hop, in minutes</param>
        public HopIngredient(Ingredient hop, decimal aau, int cookingTime)
        {
            CommonData = new CommonIngredientData {
                Ingredient    = hop,
                ScalingFactor = 1
            };

            AAU         = aau;
            CookingTime = cookingTime;
        }