public void ReplaceIngredient(IngredientsType newValue) { var index = GameComponentsLookup.Ingredient; var component = CreateComponent <IngredientComponent>(index); component.value = newValue; ReplaceComponent(index, component); }
public Entree(string name, string description, decimal price, IngredientsType protein, IngredientsType dishBase, IngredientsType topping, IngredientsType cheese) { Name = name; Description = description; Price = price; Protein = protein; DishBase = dishBase; Topping = topping; Cheese = cheese; }
public Side(string name, string description, decimal price, IngredientsType protein, IngredientsType dishBase, IngredientsType topping, IngredientsType cheese) : base(name, description, price, protein, dishBase, topping, cheese) { }
public BuilderFunctional WithIngredient(IngredientsType ingredient) { Actions.Add(pizza => pizza.Ingredients.Add(ingredient)); return(this); }
public T WithIngredient(IngredientsType ingredient) { pizza.Ingredients.Add(ingredient); return((T)this); }
public static long GetId(IngredientsType type, ColorType colorType) { return(((int)type << sizeof(IngredientsType)) | (int)colorType); }
public IngredientDesc ById(IngredientsType type, ColorType colorType) { return(Descs.First(x => x.Type == type && x.ColorType == colorType)); }