Enumerations | |
| enum | CookingMethodType {  NONE = 0 , BAKING = 1 , BOILING = 2 , DRYING = 3 , TIME = 4 , COUNT }  | 
Functions | |
| void | SetCookingUpdateTime (float val) | 
| void | ProcessItemToCook (notnull ItemBase pItem, ItemBase cookingEquip, Param2< CookingMethodType, float > pCookingMethod, out Param2< bool, bool > pStateFlags) | 
| int | CookWithEquipment (ItemBase cooking_equipment, float cooking_time_coef=1) | 
| 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) | 
| protected int | UpdateCookingStateOnStick (Edible_Base item_to_cook, float cook_time_inc) | 
| void | SmokeItem (Edible_Base item_to_cook, float cook_time_inc) | 
| void | TerminateCookingSounds (ItemBase pItem) | 
| protected ItemBase | GetItemTypeFromCargo (typename item_type, ItemBase cooking_equipment) | 
| Cooking data.   | |
| protected Param2< CookingMethodType, float > | GetCookingMethodWithTimeOverride (ItemBase cooking_equipment) | 
| Edible_Base | GetFoodOnStick (ItemBase stick_item) | 
| 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) | 
| protected void | DecreaseCookedItemQuantity (notnull Edible_Base pItem, float pAmount=0.0) | 
| protected CookingMethodType | GetCookingMethod (ItemBase cooking_equipment) | 
| DEPRECATED.   | |
Variables | |
| enum CookingMethodType | TIME_WITH_SUPPORT_MATERIAL_COEF = 1.0 | 
| static const float | TIME_WITHOUT_SUPPORT_MATERIAL_COEF = 2.0 | 
| time modifier used when not using support material   | |
| static const float | COOKING_FOOD_TIME_INC_VALUE = 2 | 
| time modifier used when using support material   | |
| static const float | COOKING_LARD_DECREASE_COEF = 25 | 
| time increase when cooking a food   | |
| static const float | COOKING_FOOD_QUANTITY_DECREASE_AMOUNT_NONE = 25 | 
| how many units from quantity of lard are remove at each stage   | |
| static const float | COOKING_FOOD_QUANTITY_DECREASE_AMOUNT_LARD = 0 | 
| how many units from quantity of item are removed at each FoodStage change when support material is NOT used   | |
| static const float | DEFAULT_COOKING_TEMPERATURE = 150 | 
| NOT USED.   | |
| static const float | FOOD_MAX_COOKING_TEMPERATURE = 150 | 
| static const float | PARAM_BURN_DAMAGE_COEF = 0.05 | 
| static const float | LIQUID_BOILING_POINT = 150 | 
| static const float | LIQUID_VAPOR_QUANTITY = 2 | 
| static const float | SOLID_OVERHEAT_QUANTITY = 2 | 
| static const float | BURNING_WARNING_THRESHOLD = 0.75 | 
| COOKING_EQUIPMENT_POT = Pot | |
| 0..1, validly cooked item will pre-emptively start emitting burning sounds when this close to being burned   | |
| COOKING_EQUIPMENT_FRYINGPAN = FryingPan | |
| COOKING_EQUIPMENT_CAULDRON = Cauldron | |
| COOKING_INGREDIENT_LARD = Lard | |
| protected float | m_UpdateTime = 1 | 
| enum CookingMethodType | 
| int CookOnStick | ( | Edible_Base | item_to_cook, | 
| float | cook_time_inc | ||
| ) | 
References Edible_Base::CanBeCookedOnStick(), and UpdateCookingStateOnStick().
| protected void DecreaseCookedItemQuantity | ( | notnull Edible_Base | pItem, | 
| float | pAmount = 0.0  | 
        ||
| ) | 
References Math::Clamp(), and GetGame().
Referenced by UpdateCookingState(), and UpdateCookingStateOnStick().
| protected CookingMethodType GetCookingMethod | ( | ItemBase | cooking_equipment | ) | 
DEPRECATED.
References COOKING_EQUIPMENT_CAULDRON, COOKING_EQUIPMENT_FRYINGPAN, COOKING_EQUIPMENT_POT, COOKING_INGREDIENT_LARD, GetItemTypeFromCargo(), and LIQUID_GASOLINE.
| protected Param2< CookingMethodType, float > GetCookingMethodWithTimeOverride | ( | ItemBase | cooking_equipment | ) | 
when cooking in gasoline, jump to drying state(will be burnt then)
References COOKING_INGREDIENT_LARD, GetItemTypeFromCargo(), LIQUID_GASOLINE, TIME_WITH_SUPPORT_MATERIAL_COEF, and TIME_WITHOUT_SUPPORT_MATERIAL_COEF.
Referenced by CookWithEquipment().
| Edible_Base GetFoodOnStick | ( | ItemBase | stick_item | ) | 
Cooking data.
References CargoBase::GetItem(), and CargoBase::GetItemCount().
Referenced by GetCookingMethod(), GetCookingMethodWithTimeOverride(), and UpdateCookingState().
| float GetMinTempToCook | ( | Edible_Base | item_to_cook, | 
| CookingMethodType | cooking_method | ||
| ) | 
References Edible_Base::GetNextFoodStageType().
| float GetTimeToCook | ( | Edible_Base | item_to_cook, | 
| CookingMethodType | cooking_method | ||
| ) | 
References Edible_Base::GetNextFoodStageType().
| void ProcessItemToCook | ( | notnull ItemBase | pItem, | 
| ItemBase | cookingEquip, | ||
| Param2< CookingMethodType, float > | pCookingMethod, | ||
| out Param2< bool, bool > | pStateFlags | ||
| ) | 
update food
check for done state from baking (exclude Lard from baked items)
check for burned state
References AddTemperatureToItem(), Edible_Base::CanBeCooked(), Edible_Base::IsFoodBaked(), Edible_Base::IsFoodBoiled(), Edible_Base::IsFoodBurned(), Edible_Base::IsFoodDried(), LIQUID_NONE, LIQUID_VAPOR_QUANTITY, PARAM_BURN_DAMAGE_COEF, SOLID_OVERHEAT_QUANTITY, and UpdateCookingState().
Referenced by CookWithEquipment().
| void SetCookingUpdateTime | ( | float | val | ) | 
References m_UpdateTime.
| void SmokeItem | ( | Edible_Base | item_to_cook, | 
| float | cook_time_inc | ||
| ) | 
| void TerminateCookingSounds | ( | ItemBase | pItem | ) | 
References CargoBase::GetItem(), CargoBase::GetItemCount(), and Edible_Base::MakeSoundsOnClient().
| protected int UpdateCookingState | ( | Edible_Base | item_to_cook, | 
| CookingMethodType | cooking_method, | ||
| ItemBase | cooking_equipment, | ||
| float | cooking_time_coef | ||
| ) | 
enable cooking SoundEvent
Change food stage to new, IF DIFFERENT
any foodstage without lard
any foodstage without lard
References AddTemperatureToItem(), Edible_Base::CanChangeToNewStage(), Edible_Base::ChangeFoodStage(), Math::Clamp(), COOKING_FOOD_QUANTITY_DECREASE_AMOUNT_NONE, COOKING_FOOD_TIME_INC_VALUE, COOKING_INGREDIENT_LARD, COOKING_LARD_DECREASE_COEF, DecreaseCookedItemQuantity(), Edible_Base::GetCookingTime(), Edible_Base::GetFoodStageType(), GetItemTypeFromCargo(), Edible_Base::GetNextFoodStageType(), Edible_Base::MakeSoundsOnClient(), Edible_Base::ResetCookingTime(), Edible_Base::SetCookingTime(), and ItemBase::SetQuantity().
Referenced by ProcessItemToCook().
| protected int UpdateCookingStateOnStick | ( | Edible_Base | item_to_cook, | 
| float | cook_time_inc | ||
| ) | 
Change food stage to new, IF DIFFERENT
References AddTemperatureToItem(), Edible_Base::CanChangeToNewStage(), Edible_Base::ChangeFoodStage(), COOKING_FOOD_QUANTITY_DECREASE_AMOUNT_NONE, DecreaseCookedItemQuantity(), Edible_Base::GetCookingTime(), Edible_Base::GetFoodStageType(), Edible_Base::GetNextFoodStageType(), Edible_Base::MakeSoundsOnClient(), Edible_Base::ResetCookingTime(), and Edible_Base::SetCookingTime().
Referenced by CookOnStick().
      
  | 
  static | 
| COOKING_EQUIPMENT_CAULDRON = Cauldron | 
Referenced by GetCookingMethod().
| COOKING_EQUIPMENT_FRYINGPAN = FryingPan | 
Referenced by GetCookingMethod().
| COOKING_EQUIPMENT_POT = Pot | 
0..1, validly cooked item will pre-emptively start emitting burning sounds when this close to being burned
Referenced by GetCookingMethod().
      
  | 
  static | 
how many units from quantity of item are removed at each FoodStage change when support material is NOT used
      
  | 
  static | 
how many units from quantity of lard are remove at each stage
Referenced by UpdateCookingState(), and UpdateCookingStateOnStick().
      
  | 
  static | 
time modifier used when using support material
Referenced by UpdateCookingState().
| COOKING_INGREDIENT_LARD = Lard | 
Referenced by GetCookingMethod(), GetCookingMethodWithTimeOverride(), and UpdateCookingState().
      
  | 
  static | 
time increase when cooking a food
Referenced by UpdateCookingState().
      
  | 
  static | 
NOT USED.
Referenced by AddTemperatureToItem().
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static | 
Referenced by ProcessItemToCook().
| protected float m_UpdateTime = 1 | 
Referenced by AddTemperatureToItem(), and SetCookingUpdateTime().
      
  | 
  static | 
Referenced by AddDamageToItemByFireEx(), and ProcessItemToCook().
      
  | 
  static | 
Referenced by ProcessItemToCook().
| enum CookingMethodType TIME_WITH_SUPPORT_MATERIAL_COEF = 1.0 | 
Referenced by GetCookingMethodWithTimeOverride().
      
  | 
  static | 
time modifier used when not using support material
Referenced by GetCookingMethodWithTimeOverride().