class Edible_BaseSource
Edible_Base › ItemBase › InventoryItem › EntityAI › Entity › ObjectTyped › Object › IEntity › Managed
Derived classes
View all 123 descendants
- Apple
- BakedBeansCan
- BakedBeansCan_Opened
- Banana
- BearSteakMeat
- Bitterlings
- BoarSteakMeat
- Bottle_Base
- BoxCerealCrunchin
- BrisketSpread
- BrisketSpread_Opened
- Candycane_Colorbase
- CaninaBerry
- Cannabis
- Carp
- CarpFilletMeat
- CharcoalTablets
- ChelatingTablets
- ChickenBreastMeat
- CowSteakMeat
- CrabCan
- CrabCan_Opened
- DeadChicken_ColorBase
- DeadFox
- DeadRabbit
- DeerSteakMeat
- DisinfectantAlcohol
- DisinfectantSpray
- DogFoodCan
- DogFoodCan_Opened
- FoxSteakMeat
- GoatSteakMeat
- GreenBellPepper
- Guts
- Honey
- HumanSteakMeat
- IodineTincture
- Kiwi
- Lard
- Lunchmeat
- Lunchmeat_Opened
- Mackerel
- MackerelFilletMeat
- Marmalade
- MouflonSteakMeat
- MushroomBase
- Orange
- PainkillerTablets
- Pajka
- Pajka_Opened
- Pate
- Pate_Opened
- PeachesCan
- PeachesCan_Opened
- Pear
- PigSteakMeat
- Plum
- PorkCan
- PorkCan_Opened
- Potato
- PowderedMilk
- Pumpkin
- PurificationTablets
- RabbitLegMeat
- RedCaviar
- ReindeerSteakMeat
- Rice
- SambucusBerry
- Sardines
- SardinesCan
- SardinesCan_Opened
- SheepSteakMeat
- Shrimp
- SlicedPumpkin
- SmallGuts
- Snack_ColorBase
- SodaCan_ColorBase
- SpaghettiCan
- SpaghettiCan_Opened
- SteelheadTrout
- SteelheadTroutFilletMeat
- TacticalBaconCan
- TacticalBaconCan_Opened
- TetracyclineAntibiotics
- Tomato
- TunaCan
- TunaCan_Opened
- UnknownFoodCan
- UnknownFoodCan_Opened
- VitaminBottle
- WalleyePollock
- WalleyePollockFilletMeat
- WolfSteakMeat
- Worm
- Zagorky_ColorBase
- Zucchini
All members, including inherited
Constructors 1
void Edible_Base()Constants 8
const string DIRECT_COOKING_SLOT_NAME = "DirectCooking"Referenced by EEItemLocationChanged()
const string SOUND_BAKING_START = "Baking_SoundSet"Referenced by RefreshAudio()
const string SOUND_BAKING_DONE = "Baking_Done_SoundSet"Referenced by RefreshAudio()
const string SOUND_BOILING_START = "Boiling_SoundSet"Referenced by RefreshAudio()
const string SOUND_BOILING_DONE = "Boiling_Done_SoundSet"Referenced by RefreshAudio()
const string SOUND_DRYING_START = "Drying_SoundSet"Referenced by RefreshAudio()
const string SOUND_DRYING_DONE = "Drying_Done_SoundSet"Referenced by RefreshAudio()
const string SOUND_BURNING_DONE = "Food_Burning_SoundSet"Referenced by RefreshAudio()
Members 10
protected bool m_MakeCookingSoundsReferenced by GetDebugText(), MakeSoundsOnClient(), OnVariablesSynchronized()
Show 1 more
, RemoveAudio()protected SoundOnVehicle m_SoundCookingDEPRECATED
protected EffectSound m_SoundEffectCookingprotected string m_SoundPlayingref FoodStage m_FoodStageReferenced by Edible_Base(), GetFoodStage(), GetTemperatureFreezeTime()
Show 1 more
, GetTemperatureThawTime()protected float m_DecayTimerReferenced by GetDecayTimer(), OnStoreLoad(), OnStoreSave()
Show 2 more
, ProcessDecay(), and TransferFoodStage()protected float m_DecayDelta = 0.0protected FoodStageType m_LastDecayStage = FoodStageType.NONEReferenced by GetLastDecayStage(), OnStoreLoad(), OnStoreSave()
Show 2 more
, ProcessDecay(), and TransferFoodStage()protected ParticleSource m_HotVaporParticleprivate CookingMethodType m_CookedByMethodMethods 69
override void EEInit()override void EEDelete(EntityAI parent)Referenced by Bottle_Base.EEDelete()
override void EEItemLocationChanged(notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)void UpdateVisualsEx(bool forced = false)check for DirectCooking slot name
bool Consume(float amount, PlayerBase consumer)Referenced by PlayerBase.Consume()
void OnConsume(float amount, PlayerBase consumer)Filter agents from the item (override on higher implementations)
Referenced by PlayerBase.Consume()
override bool CanBeCooked()if no per FoodStage/Nutrition override is set, remove possible Food Poisoning to prevent double punishment from Bloody Hands
Referenced by Cooking.ProcessItemToCook()
override bool CanBeCookedOnStick()override float GetTemperatureFreezeTime()override float GetTemperatureThawTime()override bool CanItemOverheat()References EntityAI.CanItemOverheat(), FoodStage.CanTransitionToFoodStageType(), GetFoodStage()
Show 1 more
, IsFoodBurned()void Synchronize()References EntityAI.SetSynchDirty()
Referenced by AfterStoreLoad(), MakeSoundsOnClient(), OnStoreLoad()
Show 3 more
, ResetCookingTime(), SetCookingTime(), and FoodStage.SetFoodStageType()override void OnVariablesSynchronized()References EntityAI.CanHaveTemperature(), ItemBase.OnVariablesSynchronized(), RefreshAudio()
Show 3 more
, RemoveAudio(), UpdateVaporParticle(), and m_MakeCookingSoundsReferenced by Bottle_Base.OnVariablesSynchronized()
void MakeSoundsOnClient(bool soundstate, CookingMethodType cookingMethod = CookingMethodType.NONE)protected void RefreshAudio()Referenced by OnVariablesSynchronized()
protected void RemoveAudio()override void OnStoreSave(ParamsWriteContext ctx)References GetFoodStage(), FoodStage.OnStoreSave(), ItemBase.OnStoreSave()
Show 3 more
, Serializer.Write(), m_DecayTimer, and m_LastDecayStageoverride bool OnStoreLoad(ParamsReadContext ctx, int version)References GetFoodStage(), FoodStage.OnStoreLoad(), ItemBase.OnStoreLoad()
Show 5 more
, Serializer.Read(), Synchronize(), UpdateVisualsEx(), m_DecayTimer, and m_LastDecayStageoverride void AfterStoreLoad()override FoodStage GetFoodStage()References m_FoodStage
Referenced by CAContinuousTimeCooking.Execute(), CAContinuousTimeCooking.Setup(), CanChangeToNewStage()
Show 34 more
, CanItemOverheat(), ChangeFoodStage(), FilterAgents(), GetAgentsPerDigest(), GetCookingTime(), GetDebugActions(), GetFoodAgents(), GetFoodDigestibility(), GetFoodEnergy(), GetFoodNutritionalIndex(), GetFoodStageName(), GetFoodStageType(), GetFoodTotalVolume(), GetFoodToxicity(), GetFoodWater(), GetNextFoodStageType(), GetTemperatureFreezeTime(), GetTemperatureThawTime(), IsFoodBaked(), IsFoodBoiled(), IsFoodBurned(), IsFoodDried(), IsFoodRaw(), IsFoodRotten(), OnStoreLoad(), OnStoreSave(), PrintNutritionsData(), ResetCookingTime(), SetCookingTime(), TransferFoodStage(), UpdateVisualsEx(), InspectMenuNew.UpdateItemInfoFoodStage(), PlayerBase.Consume(), and PluginItemDiagnostic.GetLocalProperties()override bool IsMeat()override bool IsCorpse()Referenced by ProcessDecay()
override bool IsFruit()override bool IsMushroom()Referenced by ProcessDecay()
References Class.Cast(), CGame.ConfigGetFloat(), string.Format()
Show 2 more
, GetFoodStage(), and FoodStage.GetFullnessIndex()Referenced by GetNutritionalProfile()
References Class.Cast(), CGame.ConfigGetFloat(), string.Format()
Show 2 more
, FoodStage.GetEnergy(), and GetFoodStage()Referenced by GetNutritionalProfile()
References Class.Cast(), CGame.ConfigGetFloat(), string.Format()
Show 2 more
, GetFoodStage(), and FoodStage.GetWater()Referenced by GetNutritionalProfile()
References Class.Cast(), CGame.ConfigGetFloat(), string.Format()
Show 2 more
, GetFoodStage(), and FoodStage.GetNutritionalIndex()Referenced by GetNutritionalProfile()
References Class.Cast(), CGame.ConfigGetFloat(), string.Format()
Show 2 more
, GetFoodStage(), and FoodStage.GetToxicity()Referenced by GetNutritionalProfile()
References Class.Cast(), CGame.ConfigGetInt(), string.Format()
Show 2 more
, FoodStage.GetAgents(), and GetFoodStage()Referenced by GetNutritionalProfile()
References Class.Cast(), CGame.ConfigGetInt(), string.Format()
Show 2 more
, FoodStage.GetDigestibility(), and GetFoodStage()Referenced by GetNutritionalProfile()
References Class.Cast(), CGame.ConfigGetInt(), string.Format()
Show 2 more
, FoodStage.GetAgentsPerDigest(), and GetFoodStage()Referenced by GetNutritionalProfile()
static NutritionalProfile GetNutritionalProfile(ItemBase item, string classname = "", int food_stage = 0)References GetAgentsPerDigest(), GetFoodAgents(), GetFoodDigestibility()
Show 14 more
, GetFoodEnergy(), GetFoodNutritionalIndex(), GetFoodTotalVolume(), GetFoodToxicity(), GetFoodWater(), new NutritionalProfile(), NutritionalProfile.m_Agents, NutritionalProfile.m_AgentsPerDigest, NutritionalProfile.m_Digestibility, NutritionalProfile.m_Energy, NutritionalProfile.m_FullnessIndex, NutritionalProfile.m_NutritionalIndex, NutritionalProfile.m_Toxicity, and NutritionalProfile.m_WaterContentFoodStageType GetFoodStageType()Referenced by Cooking.SmokeItem(), Cooking.UpdateCookingState(), Cooking.UpdateCookingStateOnStick()
Show 5 more
, CutOutSeeds.Do(), CanProcessDecay(), OnAction(), ProcessDecay(), and RefreshAudio()bool IsFoodRaw()Referenced by ActionEatMeat.ApplyModifiers()
bool IsFoodBaked()Referenced by Cooking.ProcessItemToCook()
bool IsFoodBoiled()Referenced by Cooking.ProcessItemToCook()
bool IsFoodDried()Referenced by Cooking.ProcessItemToCook()
bool IsFoodBurned()bool IsFoodRotten()Referenced by GetBaitEffectivity()
void ChangeFoodStage(FoodStageType new_food_stage_type)Referenced by Apple.EEOnCECreate(), Cooking.SmokeItem(), Cooking.UpdateCookingState()
Show 12 more
, Cooking.UpdateCookingStateOnStick(), CraterellusMushroom.EEOnCECreate(), OnAction(), ProcessDecay(), TransferFoodStage(), GreenBellPepper.EEOnCECreate(), MushroomBase.EEOnCECreate(), Pear.EEOnCECreate(), Plum.EEOnCECreate(), Potato.EEOnCECreate(), Tomato.EEOnCECreate(), and Zucchini.EEOnCECreate()FoodStageType GetNextFoodStageType(CookingMethodType cooking_method)Referenced by Cooking.GetMinTempToCook(), Cooking.GetTimeToCook(), Cooking.UpdateCookingState()
Show 2 more
, Cooking.UpdateCookingStateOnStick(), and RefreshAudio()string GetFoodStageName(FoodStageType food_stage_type)Referenced by PrintNutritionsData()
bool CanChangeToNewStage(CookingMethodType cooking_method)void TransferFoodStage(notnull Edible_Base source)References ChangeFoodStage(), GetDecayDelta(), GetDecayTimer()
Show 6 more
, GetFoodStage(), FoodStage.GetFoodStageType(), GetLastDecayStage(), m_DecayDelta, m_DecayTimer, and m_LastDecayStageReferenced by MiscGameplayFunctions.TransferEntityVariables()
void OnFoodStageChange(FoodStageType stageOld, FoodStageType stageNew)called on server
Referenced by FoodStage.OnFoodStageChange()
void HandleFoodStageChangeAgents(FoodStageType stageOld, FoodStageType stageNew)removes select agents on foodstage transitions
References ItemBase.RemoveAllAgentsExcept()
Referenced by OnFoodStageChange()
float GetCookingTime()Referenced by Cooking.SmokeItem(), Cooking.UpdateCookingState(), Cooking.UpdateCookingStateOnStick()
Show 2 more
, RefreshAudio(), and PluginItemDiagnostic.GetLocalProperties()void SetCookingTime(float time)Referenced by Cooking.SmokeItem(), Cooking.UpdateCookingState(), and Cooking.UpdateCookingStateOnStick()
void ResetCookingTime()Referenced by Cooking.SmokeItem(), Cooking.UpdateCookingState(), Cooking.UpdateCookingStateOnStick()
Show 1 more
, EEItemLocationChanged()void ReplaceEdibleWithNew(string typeName)References Class.Cast(), Error(), EntityAI.GetHierarchyRootPlayer()
Show 2 more
, new ReplaceEdibleWithNewLambda(), and Man.ServerReplaceItemInHandsWithNew()int GetConsumptionPenaltyContext()override void SetActions()Referenced by Apple.SetActions(), BakedBeansCan_Opened.SetActions(), Banana.SetActions(), and 77 more
protected void SoundCookingStart(string sound_name)References Object.GetPosition(), SEffectManager.PlaySound(), SoundCookingStop()
Show 2 more
, m_SoundEffectCooking, and m_SoundPlayingprotected void SoundCookingStop()override bool CanDecay()Referenced by MiscGameplayFunctions.TransferEntityVariables()
override bool CanProcessDecay()References CanChangeToNewStage(), Class.Cast(), ChangeFoodStage()
Show 25 more
, DayZGame.GetFoodDecayModifier(), GetFoodStageType(), Object.GetHealth01(), ItemBase.InsertAgent(), IsCorpse(), IsFruit(), IsMeat(), IsMushroom(), Math.RandomFloat01(), Math.RandomIntInclusive(), GameConstants.DECAY_FOOD_BAKED_FRVG, GameConstants.DECAY_FOOD_BAKED_MEAT, GameConstants.DECAY_FOOD_BOILED_FRVG, GameConstants.DECAY_FOOD_BOILED_MEAT, GameConstants.DECAY_FOOD_CAN_OPEN, GameConstants.DECAY_FOOD_DRIED_MEAT, GameConstants.DECAY_FOOD_FRVG_DRIED_CHANCE, GameConstants.DECAY_FOOD_RAW_CORPSE, GameConstants.DECAY_FOOD_RAW_FRVG, GameConstants.DECAY_FOOD_RAW_MEAT, GameConstants.DECAY_RATE_ON_PLAYER, GameConstants.DECAY_TIMER_RANDOM_PERCENTAGE, m_DecayDelta, m_DecayTimer, and m_LastDecayStageprotected void UpdateVaporParticle()References GameInventory.GetCurrentInventoryLocation(), ParticleManager.GetInstance(), EntityAI.GetInventory()
Show 11 more
, InventoryLocation.GetType(), new InventoryLocation(), CGame.IsDedicatedServer(), ParticleManager.PlayOnObject(), ParticleSource.SetParticleAutoDestroyFlags(), ParticleSource.SetParticleParam(), Particle.Stop(), ParticleList.ITEM_HOT_VAPOR, m_HotVaporParticle, EntityAI.m_VarTemperature, and GameConstants.STATE_HOT_LVL_TWOoverride void GetDebugActions(out TSelectableActionInfoArrayEx outputList)References ItemBase.GetDebugActions(), GetFoodStage(), array.Insert()
Show 3 more
, new TSelectableActionInfoWithColor(), FadeColors.RED, and FadeColors.WHITEoverride bool OnAction(int action_id, Man player, ParamsReadContext ctx)References ChangeFoodStage(), GetFoodStageType(), CGame.IsServer()
Show 2 more
, ItemBase.OnAction(), and PrintNutritionsData()override string GetDebugText()override float GetBaitEffectivity()float GetDecayTimer()References m_DecayTimer
float GetDecayDelta()References m_DecayDelta
private void PrintNutritionsData()DIAG_DEVELOPERReferences Class.ClassName(), string.Format(), GetFoodStage()
Show 14 more
, GetFoodStageName(), FoodStage.GetFoodStageType(), GetNutritionalProfile(), NutritionalProfile.IsLiquid(), Debug.Log(), NutritionalProfile.m_Agents, NutritionalProfile.m_AgentsPerDigest, NutritionalProfile.m_Digestibility, NutritionalProfile.m_Energy, NutritionalProfile.m_FullnessIndex, NutritionalProfile.m_LiquidClassname, NutritionalProfile.m_NutritionalIndex, NutritionalProfile.m_Toxicity, and NutritionalProfile.m_WaterContentReferenced by OnAction()
void UpdateVisuals()References UpdateVisualsEx()