DIFF

class FoodStageSource

Constructors 1

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()
static const int TRANSITION_FOODSTAGE_IDX = 0
static const int TRANSITION_COOKINGMETHOD_IDX = 1

Members 16

protected int m_SelectionIndex

visual properties

protected int m_TextureIndex
Referenced by GetTextureIndex(), OnStoreLoad(), OnStoreSave()
Show 1 more, SetTextureIndex()
protected int m_MaterialIndex
Referenced by GetMaterialIndex(), OnStoreLoad(), OnStoreSave()
Show 1 more, SetMaterialIndex()
protected float m_CookingTime
protected FoodStageType m_FoodStageTypeClientLast
Referenced by FoodStage(), and UpdateVisualsEx()
private static int m_StageRawHash = 0
private static int m_StageBakedHash = 0
private static int m_StageBoiledHash = 0
private static int m_StageDriedHash = 0
private static int m_StageBurnedHash = 0
private static int m_StageRottenHash = 0
static ref map<int, ref map<int, ref map<int, ref array<float>>>> m_EdibleBasePropertiesMap

foodTypeHash,<FoodStageNameHash,<stagePropertiesIdx,<visual_properties,nutrition_properties,cooking_properties>>>>

static ref map<int, ref map<int, ref map<int, ref array<int>>>> m_EdibleBaseTransitionsMap

<foodTypeHash,<FoodStageNameHash,<transitionClassHash('ToBaked' etc.),<transition_to,cooking_method>>>>

static ref array<int> m_FoodStageTransitionKeys

Methods 42

void SetFoodStageType(FoodStageType food_stage_type)
Referenced by ChangeFoodStage()
int GetSelectionIndex()
References m_SelectionIndex
Referenced by UpdateVisualsEx()
void SetSelectionIndex(int index)
References m_SelectionIndex
Referenced by UpdateVisualsEx()
int GetTextureIndex()
References m_TextureIndex
Referenced by UpdateVisualsEx()
void SetTextureIndex(int index)
References m_TextureIndex
Referenced by UpdateVisualsEx()
int GetMaterialIndex()
References m_MaterialIndex
Referenced by UpdateVisualsEx()
void SetMaterialIndex(int index)
References m_MaterialIndex
Referenced by UpdateVisualsEx()
static float GetFullnessIndex(FoodStage stage, int stage_type = -1, string classname = "")
static float GetEnergy(FoodStage stage, int stage_type = -1, string classname = "")
static float GetWater(FoodStage stage, int stage_type = -1, string classname = "")
static float GetNutritionalIndex(FoodStage stage, int stage_type = -1, string classname = "")
static float GetToxicity(FoodStage stage, int stage_type = -1, string classname = "")
static int GetAgents(FoodStage stage, int stage_type = -1, string classname = "")
static float GetDigestibility(FoodStage stage, int stage_type = -1, string classname = "")
static float GetAgentsPerDigest(FoodStage stage, int stageType = -1, string className = "")
void SetCookingTime(float time)
References m_CookingTime
bool CanChangeToNewStage(CookingMethodType cooking_method)
void ChangeFoodStage(FoodStageType new_stage_type)
void OnFoodStageChange(FoodStageType stageOld, FoodStageType stageNew)
Referenced by SetFoodStageType()
bool IsFoodInStage(FoodStageType food_stage_type)
bool IsFoodRaw()
References IsFoodInStage()
bool IsFoodBaked()
References IsFoodInStage()
bool IsFoodBoiled()
References IsFoodInStage()
bool IsFoodDried()
References IsFoodInStage()
bool IsFoodBurned()
References IsFoodInStage()
bool IsFoodRotten()
References IsFoodInStage()
void OnStoreSave(ParamsWriteContext ctx)
bool OnStoreLoad(ParamsReadContext ctx, int version)
void UpdateVisuals()