public void ReplaceIngredient(IngredientsType newValue)
    {
        var index     = GameComponentsLookup.Ingredient;
        var component = CreateComponent <IngredientComponent>(index);

        component.value = newValue;
        ReplaceComponent(index, component);
    }
Exemple #2
0
 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;
 }
Exemple #3
0
 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);
 }
Exemple #6
0
 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));
 }