class CookingSource
Constants 13
static const float TIME_WITH_SUPPORT_MATERIAL_COEF = 1.0time modifier used when not using support material
static const float TIME_WITHOUT_SUPPORT_MATERIAL_COEF = 2.0time modifier used when using support material
static const float COOKING_FOOD_TIME_INC_VALUE = 2time increase when cooking a food
static const float COOKING_LARD_DECREASE_COEF = 25how many units from quantity of lard are remove at each stage
static const float COOKING_FOOD_QUANTITY_DECREASE_AMOUNT_NONE = 25how many units from quantity of item are removed at each FoodStage change when support material is NOT used
static const float COOKING_FOOD_QUANTITY_DECREASE_AMOUNT_LARD = 0NOT USED.
static const float DEFAULT_COOKING_TEMPERATURE = 150default temperature for cooking (e.g. cooking on stick)
static const float FOOD_MAX_COOKING_TEMPERATURE = 150static const float PARAM_BURN_DAMAGE_COEF = 0.05value for calculating damage on items located in fireplace CargoGrid
static const float LIQUID_BOILING_POINT = 150default boiling point for liquids, overriden by 'liquidBoilingThreshold' in cfgLiquidDefinitions
static const float LIQUID_VAPOR_QUANTITY = 2vaporization quantity loss
static const float SOLID_OVERHEAT_QUANTITY = 2solid overheat quantity loss
static const float BURNING_WARNING_THRESHOLD = 0.750..1, validly cooked item will pre-emptively start emitting burning sounds when this close to being burned
Members 5
typename COOKING_EQUIPMENT_POT = Pottypename COOKING_EQUIPMENT_FRYINGPAN = FryingPantypename COOKING_EQUIPMENT_CAULDRON = Cauldrontypename COOKING_INGREDIENT_LARD = Lardprotected float m_UpdateTime = 1set by the item/system using cooking
Methods 16
void SetCookingUpdateTime(float val)void ProcessItemToCook(notnull ItemBase pItem, ItemBase cookingEquip, Param2<CookingMethodType, float> pCookingMethod, out Param2<bool, bool> pStateFlags)Show 23 more
, EntityAI.CanItemOverheat(), Class.Cast(), Object.DecreaseHealth(), Liquid.GetBoilThreshold(), ItemBase.GetLiquidType(), ItemBase.GetQuantityNormalized(), EntityAI.GetTemperature(), ItemBase.HasQuantity(), EntityAI.IsCookware(), Edible_Base.IsFoodBaked(), Edible_Base.IsFoodBoiled(), Edible_Base.IsFoodBurned(), Edible_Base.IsFoodDried(), EntityAI.IsItemOverheated(), ItemBase.IsLiquidContainer(), ItemBase.RemoveAllAgentsExcept(), Class.Type(), UpdateCookingState(), LIQUID_VAPOR_QUANTITY, PARAM_BURN_DAMAGE_COEF, Param2.param1, Param2.param2, and SOLID_OVERHEAT_QUANTITYcheck for burned state
Show 12 more
, GetCookingMethodWithTimeOverride(), EntityAI.GetInventory(), CargoBase.GetItem(), CargoBase.GetItemCount(), ItemBase.GetLiquidType(), EntityAI.GetTemperature(), EntityAI.IsCookware(), ItemBase.IsLiquidContainer(), Object.IsRuined(), ProcessItemToCook(), ItemBase.RefreshAudioVisualsOnClient(), and ItemBase.RemoveAudioVisualsOnClient()int CookOnStick(Edible_Base item_to_cook, float cook_time_inc)protected int UpdateCookingState(Edible_Base item_to_cook, CookingMethodType cooking_method, ItemBase cooking_equipment, float cooking_time_coef)Show 21 more
, Math.Clamp(), DecreaseCookedItemQuantity(), array.Get(), FoodStage.GetAllCookingPropertiesForStage(), Edible_Base.GetCookingTime(), Edible_Base.GetFoodStageType(), GetItemTypeFromCargo(), Edible_Base.GetNextFoodStageType(), ItemBase.GetQuantity(), ItemBase.GetQuantityMax(), EntityAI.GetTemperature(), Object.GetType(), EntityAI.IsItemOverheated(), Edible_Base.MakeSoundsOnClient(), Edible_Base.ResetCookingTime(), Edible_Base.SetCookingTime(), ItemBase.SetQuantity(), COOKING_FOOD_QUANTITY_DECREASE_AMOUNT_NONE, COOKING_FOOD_TIME_INC_VALUE, COOKING_INGREDIENT_LARD, and COOKING_LARD_DECREASE_COEFprotected int UpdateCookingStateOnStick(Edible_Base item_to_cook, float cook_time_inc)any foodstage without lard
Show 14 more
, DecreaseCookedItemQuantity(), array.Get(), FoodStage.GetAllCookingPropertiesForStage(), Edible_Base.GetCookingTime(), Edible_Base.GetFoodStageType(), EntityAI.GetInventory(), Edible_Base.GetNextFoodStageType(), EntityAI.GetTemperature(), Object.GetType(), GameInventory.IsAttachment(), Edible_Base.MakeSoundsOnClient(), Edible_Base.ResetCookingTime(), Edible_Base.SetCookingTime(), and COOKING_FOOD_QUANTITY_DECREASE_AMOUNT_NONEvoid SmokeItem(Edible_Base item_to_cook, float cook_time_inc)Change food stage to new, IF DIFFERENT
void TerminateCookingSounds(ItemBase pItem)Show 3 more
, CargoBase.GetItem(), CargoBase.GetItemCount(), and Edible_Base.MakeSoundsOnClient()Cooking data
Show 3 more
, CargoBase.GetItem(), CargoBase.GetItemCount(), and Class.Type()protected Param2<CookingMethodType, float> GetCookingMethodWithTimeOverride(ItemBase cooking_equipment)Edible_Base GetFoodOnStick(ItemBase stick_item)when cooking in gasoline, jump to drying state(will be burnt then)
float GetTimeToCook(Edible_Base item_to_cook, CookingMethodType cooking_method)float GetMinTempToCook(Edible_Base item_to_cook, CookingMethodType cooking_method)protected void AddTemperatureToItem(ItemBase cooked_item, ItemBase cooking_equipment, float min_temperature)Show 11 more
, EntityAI.GetHeatPermeabilityCoef(), EntityAI.GetHierarchyRoot(), EntityAI.GetTemperature(), EntityAI.GetTemperature(), EntityAI.IsFreezeThawProgressFinished(), CGame.IsServer(), EntityAI.SetTemperatureEx(), new TemperatureDataInterpolated(), DEFAULT_COOKING_TEMPERATURE, m_UpdateTime, and GameConstants.TEMP_COEF_COOKING_DEFAULTprotected void DecreaseCookedItemQuantity(notnull Edible_Base pItem, float pAmount = 0.0)Show 2 more
, CGame.IsServer(), and ItemBase.SetQuantity()protected CookingMethodType GetCookingMethod(ItemBase cooking_equipment)DEPRECATED