Skip to main content

CookingSettings

A class in Root.Township, Alta.Cooking.

Global settings for cooking and stews. Get it with GlobalSettings<CookingSettings>.Instance.

Constructors​

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

Fields​

19 private and internal fields
MemberWhat it is
private PooledObjectDefinition androidBoilingParticlesDefinitionBoiling particles meant for Android. Nothing exposes it in this build.
private PooledObjectDefinition boilingParticlesDefinitionPooled boiling particle effect for hot liquids.
private float cookableAddedToStewFadeoutDurationSeconds an ingredient takes to dissolve into a stew.
private float cookableDecayDurationSeconds for a cookable's cooked progress to drop by one full step when decaying.
private AnimationCurve cookingBubblesTransparencyByLiquidTransparencyMaps a liquid's transparency to the boiling bubbles' transparency.
private RTPC cookingTemperatureRTPCWwise parameter fed the cooking temperature.
private StewComponent defaultStewStew prefab spawned when a pot starts a new stew.
private EffectDefinitionApplication[] globalStewEffectsEffects applied to every stew recipe.
private float ingredientRejectionForceForce used to throw a rejected ingredient out of a pot (random, half to full on each axis).
private bool isAssumingNoEffectModificationOnMissingWhen a stew recipe has no modifier for an effect, use 1 (no change) instead of 0.
private bool isDisplayingHeatPointDebugTextDebug: show heat point text popups.
private int maxNumberOfItemsInStewMost items a stew can hold; used for network sync sizes.
private float minimumStewingTemperatureLiquid and ingredient temperature needed before ingredients turn into stew.
private NetworkPrefab nonRecipeStewPrefabStew prefab used when the ingredients match no recipe.
private Shader stewIngredientDissolveShaderShader used to dissolve ingredients into a stew.
private Texture stewIngredientDissolveTextureNoise texture for the ingredient dissolve.
private PooledObjectDefinition stewIngredientsFilledEffectEffect played on the pot surface when the stew's ingredients are filled.
private PooledObjectDefinition stewRecipeStartedEffectEffect played when a cookable turns into a recipe stew.
private PooledObjectDefinition textPopupDefinitionDebug text popup effect.

Properties​

MemberWhat 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​

MemberWhat 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.