/// <summary> /// Create a new recipe /// </summary> /// <param name="ings">The Ingredient collection (really more of a blueprint)</param> /// <param name="resReqs">The research requirements</param> /// <param name="prods">What is produced by the recipe, and how much</param> public Recipe(List <Ingredient <I> > ings, List <Skill> resReqs, Quantified <P> prods) { Ingredients = new List <Ingredient <I> >( ); ings.ForEach((Ingredient <I> ing) => Ingredients.Add(new Ingredient <I>(ing))); ResearchRequirements = resReqs; Produces = prods; }
public Ingredient(Quantified <T> req, uint WorkerTotalCost, uint WorkerFrameCost, uint StationFrameCost) { Requirement = req; WorkerCost = WorkerFrameCost; StationCost = StationFrameCost; Progress = new Bank { Quantity = 0, Maximum = WorkerTotalCost }; }