Class FoodType.IngredientSource
An ingredient source represents a place that the ingredients for a FoodType can be aquired from.
public class FoodType.IngredientSource
- Inheritance
-
FoodType.IngredientSource
- Inherited Members
- Extension Methods
Constructors
IngredientSource(string, ContainerType)
Creates a new ingredient source with the given settings.
public IngredientSource(string name, FoodType.ContainerType container = null)
Parameters
name
stringThe name of this ingredient source.
container
FoodType.ContainerTypehe FoodType.ContainerType that this ingredient source creates by default.
Fields
Barbecue
An ingredient source for objects that are created using the GrillFood action
public static readonly FoodType.IngredientSource Barbecue
Field Value
CafeDisplayCase
A cafe display case that a barista employee can get food out of for customers.
public static readonly FoodType.IngredientSource CafeDisplayCase
Field Value
ChildStove
A stove that children can cook at.
public static readonly FoodType.IngredientSource ChildStove
Field Value
CoffeeMachine
A coffee machine.
public static readonly FoodType.IngredientSource CoffeeMachine
Field Value
Container
The FoodType.ContainerType that this ingredient source creates by default.
public readonly FoodType.ContainerType Container
Field Value
Fridge
An ingredient source for objects that are created using the GetIngredientsSingle and GetIngredientsFamily actions
public static readonly FoodType.IngredientSource Fridge
Field Value
MixologyKit
An ingredient source for objects that are created using the MakeDrinks action.
public static readonly FoodType.IngredientSource MixologyKit
Field Value
Name
The name of this ingredient source.
public readonly string Name
Field Value
ProteinShakeMaker
An ingredient source for objects that are created using the MixProteinShake action.
public static readonly FoodType.IngredientSource ProteinShakeMaker
Field Value
Sink
A sink, used for getting water.
public static readonly FoodType.IngredientSource Sink
Field Value
TeaKit
A tea kit that can be used to make tea drinks.
public static readonly FoodType.IngredientSource TeaKit
Field Value
Properties
CanEat
An optional ActionType.CanExecuteDelegate-style function that allows passing additional conditions to CanEat. If this is null, which is also the default value, no additional checks are done in CanEat.
public Func<(PersonLike Person, FoodTypedItem Food, bool Automatic), CanExecuteResult> CanEat { get; init; }
Property Value
OnEaten
An optional action that is invoked when this food object has been eaten. This method is called if the underlying Action is completed after a sufficient amount of time, so the food item has not necessarily been fully finished when this action is invoked. This action is invoked in InvokeOnEaten(ActionInfo, FoodTypedItem).
public Action<ActionInfo, FoodTypedItem> OnEaten { get; init; }
Property Value
RequiredSkill
The SkillType required for this food type, which is linked to the RequiredSkillLevel. This value defaults to null.
public SkillType RequiredSkill { get; init; }