class FoodStageSource
Constructors 1
void FoodStage(Edible_Base food_item)Referenced by Edible_Base.Edible_Base()
Constants 8
static const string VISUAL_PROPERTIES = "visual_properties"static const string NUTRITION_PROPERTIES = "nutrition_properties"static const string COOKING_PROPERTIES = "cooking_properties"static const int VISUAL_PROPERTIES_HASH = VISUAL_PROPERTIES.Hash()static const int NUTRITION_PROPERTIES_HASH = NUTRITION_PROPERTIES.Hash()static const int COOKING_PROPERTIES_HASH = COOKING_PROPERTIES.Hash()Referenced by GetAllCookingPropertiesForStage(), GetCookingPropertyFromIndex(), and SetupFoodStageMapping()
static const int TRANSITION_FOODSTAGE_IDX = 0Referenced by GetNextFoodStageType()
static const int TRANSITION_COOKINGMETHOD_IDX = 1Referenced by GetNextFoodStageType()
Members 16
protected Edible_Base m_FoodItemReferenced by FoodStage(), GetFoodItem(), OnFoodStageChange()
Show 2 more
, SetupFoodStageMapping(), and SetupFoodStageTransitionMapping()protected int m_SelectionIndexvisual properties
protected int m_TextureIndexprotected int m_MaterialIndexprotected FoodStageType m_FoodStageTypeprotected float m_CookingTimeprotected FoodStageType m_FoodStageTypeClientLastprivate static int m_StageRawHash = 0private static int m_StageBakedHash = 0private static int m_StageBoiledHash = 0private static int m_StageDriedHash = 0private static int m_StageBurnedHash = 0private static int m_StageRottenHash = 0foodTypeHash,<FoodStageNameHash,<stagePropertiesIdx,<visual_properties,nutrition_properties,cooking_properties>>>>
Referenced by GetAllCookingPropertiesForStage(), GetCookingPropertyFromIndex(), GetNutritionPropertyFromIndex()
Show 2 more
, SetupFoodStageMapping(), and UpdateVisualsEx()<foodTypeHash,<FoodStageNameHash,<transitionClassHash('ToBaked' etc.),<transition_to,cooking_method>>>>
Referenced by CanTransitionToFoodStageType(), GetNextFoodStageType(), and SetupFoodStageTransitionMapping()
Referenced by CanTransitionToFoodStageType(), GetNextFoodStageType(), and SetupFoodStageTransitionMapping()
Methods 42
void SetupFoodStageMapping()Referenced by FoodStage()
void SetupFoodStageTransitionMapping()References CGame.ConfigGetChildName(), CGame.ConfigGetChildrenCount(), CGame.ConfigGetInt()
Show 17 more
, CGame.ConfigIsExisting(), map.Contains(), array.Find(), string.Format(), GetFoodStageName(), GetFoodStageNameHash(), Object.GetType(), string.Hash(), string.Hash(), array.Insert(), map.Insert(), array.Insert(), array.Insert(), Insert(), m_EdibleBaseTransitionsMap, m_FoodItem, and m_FoodStageTransitionKeysReferenced by FoodStage()
FoodStageType GetFoodStageType()References m_FoodStageType
Referenced by CAContinuousTimeCooking.Execute(), Edible_Base.FilterAgents(), Edible_Base.GetFoodStageType()
Show 10 more
, Edible_Base.GetTemperatureFreezeTime(), Edible_Base.GetTemperatureThawTime(), Edible_Base.PrintNutritionsData(), Edible_Base.TransferFoodStage(), CanTransitionToFoodStageType(), GetNextFoodStageType(), IsFoodInStage(), UpdateVisualsEx(), InspectMenuNew.UpdateItemInfoFoodStage(), and PlayerBase.Consume()void SetFoodStageType(FoodStageType food_stage_type)References GetFoodItem(), OnFoodStageChange(), Edible_Base.Synchronize()
Show 1 more
, m_FoodStageTypeReferenced by ChangeFoodStage()
protected static float GetNutritionPropertyFromIndex(int index, FoodStageType stage_type, FoodStage stage, string classname)References CGame.ConfigGetFloatArray(), CGame.ConfigGetText(), CGame.ConfigIsExisting()
Show 18 more
, array.Count(), array.Count(), array.Count(), array.Find(), map.Find(), Find(), string.Format(), array.Get(), array.Get(), array.Get(), GetFoodItem(), GetFoodStageName(), GetFoodStageNameHash(), Object.GetType(), string.Hash(), m_EdibleBasePropertiesMap, m_FoodStageType, and NUTRITION_PROPERTIES_HASHReferenced by GetAgents(), GetAgentsPerDigest(), GetDigestibility()
Show 5 more
, GetEnergy(), GetFullnessIndex(), GetNutritionalIndex(), GetToxicity(), and GetWater()References GetNutritionPropertyFromIndex()
Referenced by Edible_Base.GetFoodTotalVolume()
References GetNutritionPropertyFromIndex()
Referenced by Edible_Base.GetFoodEnergy()
References GetNutritionPropertyFromIndex()
Referenced by Edible_Base.GetFoodWater()
References GetNutritionPropertyFromIndex()
Referenced by Edible_Base.GetFoodNutritionalIndex()
References GetNutritionPropertyFromIndex()
Referenced by Edible_Base.GetFoodToxicity()
References GetNutritionPropertyFromIndex()
Referenced by Edible_Base.GetFoodAgents()
References GetNutritionPropertyFromIndex()
Referenced by Edible_Base.GetFoodDigestibility()
References GetNutritionPropertyFromIndex()
Referenced by Edible_Base.GetAgentsPerDigest()
protected Edible_Base GetFoodItem()References m_FoodItem
float GetCookingTime()References m_CookingTime
void SetCookingTime(float time)References m_CookingTime
static float GetCookingPropertyFromIndex(int index, FoodStageType stage_type, FoodStage stage, string classname)References array.Count(), array.Find(), map.Find()
Show 10 more
, Find(), array.Get(), GetFoodItem(), GetFoodStageName(), GetFoodStageNameHash(), Object.GetType(), string.Hash(), COOKING_PROPERTIES_HASH, m_EdibleBasePropertiesMap, and m_FoodStageTypestatic array<float> GetAllCookingPropertiesForStage(FoodStageType stage_type, FoodStage stage, string classname)References array.Count(), array.Find(), map.Find()
Show 9 more
, Find(), GetFoodItem(), GetFoodStageName(), GetFoodStageNameHash(), Object.GetType(), string.Hash(), COOKING_PROPERTIES_HASH, m_EdibleBasePropertiesMap, and m_FoodStageTypebool CanChangeToNewStage(CookingMethodType cooking_method)References GetNextFoodStageType()
Referenced by Edible_Base.CanChangeToNewStage()
FoodStageType GetNextFoodStageType(CookingMethodType cooking_method)bool CanTransitionToFoodStageType(FoodStageType type)Referenced by Edible_Base.CanItemOverheat()
void ChangeFoodStage(FoodStageType new_stage_type)References SetFoodStageType()
void OnFoodStageChange(FoodStageType stageOld, FoodStageType stageNew)Referenced by SetFoodStageType()
void UpdateVisualsEx(bool forced = false)References array.Count(), array.Count(), array.Count()
Show 29 more
, array.Count(), array.Find(), map.Find(), Find(), array.Get(), array.Get(), array.Get(), array.Get(), GetFoodItem(), GetFoodStageNameHash(), GetFoodStageType(), EntityAI.GetHiddenSelections(), EntityAI.GetHiddenSelectionsMaterials(), EntityAI.GetHiddenSelectionsTextures(), GetMaterialIndex(), GetSelectionIndex(), GetTextureIndex(), Object.GetType(), string.Hash(), Entity.SetAnimationPhase(), SetMaterialIndex(), EntityAI.SetObjectMaterial(), EntityAI.SetObjectTexture(), SetSelectionIndex(), SetTextureIndex(), m_EdibleBasePropertiesMap, m_FoodStageType, m_FoodStageTypeClientLast, and VISUAL_PROPERTIES_HASHbool IsFoodInStage(FoodStageType food_stage_type)References GetFoodStageType()
Referenced by IsFoodBaked(), IsFoodBoiled(), IsFoodBurned()
Show 3 more
, IsFoodDried(), IsFoodRaw(), and IsFoodRotten()static string GetFoodStageName(FoodStageType food_stage_type)static int GetFoodStageNameHash(FoodStageType food_stage_type)References m_StageBakedHash, m_StageBoiledHash, m_StageBurnedHash
Show 3 more
, m_StageDriedHash, m_StageRawHash, and m_StageRottenHashvoid OnStoreSave(ParamsWriteContext ctx)References Serializer.Write(), m_FoodStageType, m_MaterialIndex
Show 2 more
, m_SelectionIndex, and m_TextureIndexReferenced by Edible_Base.OnStoreSave()
bool OnStoreLoad(ParamsReadContext ctx, int version)References Serializer.Read(), m_FoodStageType, m_MaterialIndex
Show 2 more
, m_SelectionIndex, and m_TextureIndexReferenced by Edible_Base.OnStoreLoad()
void UpdateVisuals()References UpdateVisualsEx()