Skip to main content

CookableCollectionDefinition

A class in Root.Township, Alta.Cooking.

A stew ingredient slot that accepts any cookable from a fixed list.

Constructors​

MemberWhat it is
CookableCollectionDefinition()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

2 private and internal fields
MemberWhat it is
private HashSet<CookableItem> cookableLookupSet built from cookables on first check.
private List<CookableItem> cookablesSerialized list of accepted cookables.

Properties​

MemberWhat it is
override IEnumerable<CookableItem> Cookables { get; }The cookables this ingredient accepts.

Methods​

MemberWhat it is
override bool ContainsCookable(CookableItem cookable, out int score)True if the cookable is in the list. A match scores 2.