Example #1
0
 public Food(string name, FoodType.Type type, Sprite unPreppedSprite,
             Sprite preppedSprite, Sprite burntSprite)
 {
     this.name            = name;
     this.type            = type;
     this.unPreppedSprite = unPreppedSprite;
     this.preppedSprite   = preppedSprite;
     this.burntSprite     = burntSprite;
 }
Example #2
0
    public JsonFoodContainer GetJsonFood(FoodType.Type foodType)
    {
        switch (foodType)
        {
        case FoodType.Type.main:
            return(mainsList);

        case FoodType.Type.topping:
            return(toppingsList);

        case FoodType.Type.drink:
            return(drinksList);

        default:
            throw new System.Exception("Invalid foodtype config retrieval");
        }
    }