CookingSettings
A class in Root.Township, Alta.Cooking.
Global settings for cooking and stews. Get it with GlobalSettings<CookingSettings>.Instance.
- Listed in Crafting and making
- Inherits or implements
GlobalSettings<CookingSettings> - Derived types
CookingSettings,CookingSettings.Create - Nested types
Create - Attributes
GlobalSettings - Documented in Cooking
Constructors
| Member | What it is |
|---|---|
CookingSettings() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
19 private and internal fields
| Member | What it is |
|---|---|
private PooledObjectDefinition androidBoilingParticlesDefinition | Boiling particles meant for Android. Nothing exposes it in this build. |
private PooledObjectDefinition boilingParticlesDefinition | Pooled boiling particle effect for hot liquids. |
private float cookableAddedToStewFadeoutDuration | Seconds an ingredient takes to dissolve into a stew. |
private float cookableDecayDuration | Seconds for a cookable's cooked progress to drop by one full step when decaying. |
private AnimationCurve cookingBubblesTransparencyByLiquidTransparency | Maps a liquid's transparency to the boiling bubbles' transparency. |
private RTPC cookingTemperatureRTPC | Wwise parameter fed the cooking temperature. |
private StewComponent defaultStew | Stew prefab spawned when a pot starts a new stew. |
private EffectDefinitionApplication[] globalStewEffects | Effects applied to every stew recipe. |
private float ingredientRejectionForce | Force used to throw a rejected ingredient out of a pot (random, half to full on each axis). |
private bool isAssumingNoEffectModificationOnMissing | When a stew recipe has no modifier for an effect, use 1 (no change) instead of 0. |
private bool isDisplayingHeatPointDebugText | Debug: show heat point text popups. |
private int maxNumberOfItemsInStew | Most items a stew can hold; used for network sync sizes. |
private float minimumStewingTemperature | Liquid and ingredient temperature needed before ingredients turn into stew. |
private NetworkPrefab nonRecipeStewPrefab | Stew prefab used when the ingredients match no recipe. |
private Shader stewIngredientDissolveShader | Shader used to dissolve ingredients into a stew. |
private Texture stewIngredientDissolveTexture | Noise texture for the ingredient dissolve. |
private PooledObjectDefinition stewIngredientsFilledEffect | Effect played on the pot surface when the stew's ingredients are filled. |
private PooledObjectDefinition stewRecipeStartedEffect | Effect played when a cookable turns into a recipe stew. |
private PooledObjectDefinition textPopupDefinition | Debug text popup effect. |
Properties
| Member | What it is |
|---|---|
PooledObjectDefinition BoilingParticlesDefinition { get; } | Pooled boiling particle effect for hot liquid. |
float CookableAddedToStewFadeoutDuration { get; } | How long an ingredient takes to dissolve into a stew, in seconds. |
float CookableDecayDuration { get; } | Seconds for a cookable's cooked progress to fall from 1 to 0 once it stops being heated. |
AnimationCurve CookingBubblesTransparencyByLiquidTransparency { get; } | Curve mapping the liquid's transparency to the bubbles' transparency. |
RTPC CookingTemperatureRTPC { get; } | Wwise parameter set from the cooking temperature, for sound. |
StewComponent DefaultStew { get; } | The stew prefab spawned when a pot starts stewing. |
EffectDefinitionApplication[] GlobalStewEffects { get; } | Effects every stew gets, added before ingredient effects. |
bool IsAssumingNoEffectModificationOnMissing { get; } | If true, effects a recipe does not list keep their strength; if false, they drop to 0. |
bool IsDisplayingHeatPointDebugText { get; } | Debug flag for heat point text. Not read anywhere in this build. |
int MaxNumberOfItemsInStew { get; } | Most items in a stew, for networking (31). Not read anywhere in this build. |
float MinimumStewingTemperature { get; } | Temperature the liquid and an ingredient must pass before the ingredient goes into the stew. |
NetworkPrefab NonRecipeStewPrefab { get; } | Prefab for a stew that matches no recipe. |
Shader StewIngredientDissolveShader { get; } | Shader used while an ingredient dissolves into a stew. |
Texture StewIngredientDissolveTexture { get; } | Texture used while an ingredient dissolves into a stew. |
PooledObjectDefinition StewIngredientsFilledEffect { get; } | Effect played when a stew's ingredients are all in. |
PooledObjectDefinition StewRecipeStartedEffect { get; } | Effect played when a stew matches a recipe. |
PooledObjectDefinition TextPopupDefinition { get; } | Pooled debug text popup. Not read anywhere in this build. |
Methods
| Member | What it is |
|---|---|
Vector3 GenerateIngredientRejectionForce() | A random force, each axis between half and all of the rejection force, for throwing an ingredient out of a pot. |