Table of Contents

Class FoodType.IngredientSource

Namespace
TinyLife.Skills
Assembly
Tiny Life.dll

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 string

The name of this ingredient source.

container FoodType.ContainerType

he 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

FoodType.IngredientSource

CafeDisplayCase

A cafe display case that a barista employee can get food out of for customers.

public static readonly FoodType.IngredientSource CafeDisplayCase

Field Value

FoodType.IngredientSource

ChildStove

A stove that children can cook at.

public static readonly FoodType.IngredientSource ChildStove

Field Value

FoodType.IngredientSource

CoffeeMachine

A coffee machine.

public static readonly FoodType.IngredientSource CoffeeMachine

Field Value

FoodType.IngredientSource

Container

The FoodType.ContainerType that this ingredient source creates by default.

public readonly FoodType.ContainerType Container

Field Value

FoodType.ContainerType

Fridge

An ingredient source for objects that are created using the GetIngredientsSingle and GetIngredientsFamily actions

public static readonly FoodType.IngredientSource Fridge

Field Value

FoodType.IngredientSource

MixologyKit

An ingredient source for objects that are created using the MakeDrinks action.

public static readonly FoodType.IngredientSource MixologyKit

Field Value

FoodType.IngredientSource

Name

The name of this ingredient source.

public readonly string Name

Field Value

string

ProteinShakeMaker

An ingredient source for objects that are created using the MixProteinShake action.

public static readonly FoodType.IngredientSource ProteinShakeMaker

Field Value

FoodType.IngredientSource

Sink

A sink, used for getting water.

public static readonly FoodType.IngredientSource Sink

Field Value

FoodType.IngredientSource

TeaKit

A tea kit that can be used to make tea drinks.

public static readonly FoodType.IngredientSource TeaKit

Field Value

FoodType.IngredientSource

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

Func<(PersonLike Person, FoodTypedItem Food, bool Automatic), CanExecuteResult>

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

Action<ActionInfo, FoodTypedItem>

RequiredSkill

The SkillType required for this food type, which is linked to the RequiredSkillLevel. This value defaults to null.

public SkillType RequiredSkill { get; init; }

Property Value

SkillType