CookableCollectionDefinition
A class in Root.Township, Alta.Cooking.
A stew ingredient slot that accepts any cookable from a fixed list.
Constructors
| Member | What it is |
|---|
CookableCollectionDefinition() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
2 private and internal fields
| Member | What it is |
|---|
private HashSet<CookableItem> cookableLookup | Set built from cookables on first check. |
private List<CookableItem> cookables | Serialized list of accepted cookables. |
Properties
| Member | What it is |
|---|
override IEnumerable<CookableItem> Cookables { get; } | The cookables this ingredient accepts. |
Methods
| Member | What it is |
|---|
override bool ContainsCookable(CookableItem cookable, out int score) | True if the cookable is in the list. A match scores 2. |