Example #1
0
 List<WeightedGroupItem> SupplementForPiza(WeightedValue value)
 {
     return new List<WeightedGroupItem> {
         new WeightedGroupItem {
             Name = value.Name,
             Type = value.Type,
             Weight = 1,
         }
     };
 }
Example #2
0
 List<WeightedGroupItem> IngredientsSupplementsProvider(WeightedValue group)
 {
     var ingredients = Definitions.All.Ingredients.GetByGroup (group.Name);
     return ingredients.Count > 0 ? ingredients [0].SupplementGroups : new List<WeightedGroupItem> ();
 }