Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
edible_base.c File Reference

Go to the source code of this file.

Classes

class  Edible_Base
 

Functions

Edible_Base ItemBase ReplaceEdibleWithNewLambda (EntityAI old_item, string new_item_type, PlayerBase player)
 
void RefreshAudio ()
 
void RemoveAudio ()
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override void AfterStoreLoad ()
 
override FoodStage GetFoodStage ()
 
override bool IsMeat ()
 
override bool IsCorpse ()
 
override bool IsFruit ()
 
override bool IsMushroom ()
 
FoodStageType GetFoodStageType ()
 
bool IsFoodRaw ()
 
bool IsFoodBaked ()
 
bool IsFoodBoiled ()
 
bool IsFoodDried ()
 
bool IsFoodBurned ()
 
bool IsFoodRotten ()
 
void ChangeFoodStage (FoodStageType new_food_stage_type)
 
FoodStageType GetNextFoodStageType (CookingMethodType cooking_method)
 
string GetFoodStageName (FoodStageType food_stage_type)
 
bool CanChangeToNewStage (CookingMethodType cooking_method)
 
void TransferFoodStage (notnull Edible_Base source)
 
void OnFoodStageChange (FoodStageType stageOld, FoodStageType stageNew)
 called on server
 
void HandleFoodStageChangeAgents (FoodStageType stageOld, FoodStageType stageNew)
 removes select agents on foodstage transitions
 
float GetCookingTime ()
 
void SetCookingTime (float time)
 
void ResetCookingTime ()
 
void ReplaceEdibleWithNew (string typeName)
 
int GetConsumptionPenaltyContext ()
 
override void SetActions ()
 
void SoundCookingStart (string sound_name)
 
void SoundCookingStop ()
 
override bool CanDecay ()
 
override bool CanProcessDecay ()
 
override void ProcessDecay (float delta, bool hasRootAsPlayer)
 
void UpdateVaporParticle ()
 
override void GetDebugActions (out TSelectableActionInfoArrayEx outputList)
 
override bool OnAction (int action_id, Man player, ParamsReadContext ctx)
 
override string GetDebugText ()
 
override float GetBaitEffectivity ()
 
float GetDecayTimer ()
 
float GetDecayDelta ()
 
FoodStageType GetLastDecayStage ()
 
void UpdateVisuals ()
 

Variables

const string DIRECT_COOKING_SLOT_NAME = "DirectCooking"
 
const string SOUND_BAKING_START = "Baking_SoundSet"
 
const string SOUND_BAKING_DONE = "Baking_Done_SoundSet"
 
const string SOUND_BOILING_START = "Boiling_SoundSet"
 
const string SOUND_BOILING_DONE = "Boiling_Done_SoundSet"
 
const string SOUND_DRYING_START = "Drying_SoundSet"
 
const string SOUND_DRYING_DONE = "Drying_Done_SoundSet"
 
const string SOUND_BURNING_DONE = "Food_Burning_SoundSet"
 
bool m_MakeCookingSounds
 
SoundOnVehicle m_SoundCooking
 
EffectSound m_SoundEffectCooking
 DEPRECATED.
 
string m_SoundPlaying
 
ref FoodStage m_FoodStage
 
float m_DecayTimer
 
float m_DecayDelta = 0.0
 
FoodStageType m_LastDecayStage = FoodStageType.NONE
 
ParticleSource m_HotVaporParticle
 

Function Documentation

◆ AfterStoreLoad()

override void ReplaceEdibleWithNewLambda::AfterStoreLoad ( )
protected

Definition at line 1461 of file edible_base.c.

◆ CanChangeToNewStage()

bool ReplaceEdibleWithNewLambda::CanChangeToNewStage ( CookingMethodType cooking_method)
protected

Definition at line 1721 of file edible_base.c.

◆ CanDecay()

override bool ReplaceEdibleWithNewLambda::CanDecay ( )
protected

Definition at line 1838 of file edible_base.c.

◆ CanProcessDecay()

override bool ReplaceEdibleWithNewLambda::CanProcessDecay ( )
protected

Definition at line 1843 of file edible_base.c.

◆ ChangeFoodStage()

void ReplaceEdibleWithNewLambda::ChangeFoodStage ( FoodStageType new_food_stage_type)
protected

Definition at line 1706 of file edible_base.c.

◆ GetBaitEffectivity()

override float ReplaceEdibleWithNewLambda::GetBaitEffectivity ( )
protected

Definition at line 2147 of file edible_base.c.

◆ GetConsumptionPenaltyContext()

int ReplaceEdibleWithNewLambda::GetConsumptionPenaltyContext ( )
protected

Definition at line 1800 of file edible_base.c.

◆ GetCookingTime()

float ReplaceEdibleWithNewLambda::GetCookingTime ( )
protected

Definition at line 1765 of file edible_base.c.

◆ GetDebugActions()

override void ReplaceEdibleWithNewLambda::GetDebugActions ( out TSelectableActionInfoArrayEx outputList)
protected

Definition at line 2078 of file edible_base.c.

◆ GetDebugText()

override string ReplaceEdibleWithNewLambda::GetDebugText ( )
protected

Definition at line 2131 of file edible_base.c.

◆ GetDecayDelta()

float ReplaceEdibleWithNewLambda::GetDecayDelta ( )
protected

Definition at line 2164 of file edible_base.c.

◆ GetDecayTimer()

float ReplaceEdibleWithNewLambda::GetDecayTimer ( )
protected

Definition at line 2159 of file edible_base.c.

◆ GetFoodStage()

override FoodStage ReplaceEdibleWithNewLambda::GetFoodStage ( )
protected

Definition at line 1469 of file edible_base.c.

◆ GetFoodStageName()

string ReplaceEdibleWithNewLambda::GetFoodStageName ( FoodStageType food_stage_type)
protected

Definition at line 1716 of file edible_base.c.

◆ GetFoodStageType()

FoodStageType ReplaceEdibleWithNewLambda::GetFoodStageType ( )
protected

Definition at line 1639 of file edible_base.c.

◆ GetLastDecayStage()

FoodStageType ReplaceEdibleWithNewLambda::GetLastDecayStage ( )
protected

Definition at line 2169 of file edible_base.c.

◆ GetNextFoodStageType()

FoodStageType ReplaceEdibleWithNewLambda::GetNextFoodStageType ( CookingMethodType cooking_method)
protected

Definition at line 1711 of file edible_base.c.

◆ HandleFoodStageChangeAgents()

void ReplaceEdibleWithNewLambda::HandleFoodStageChangeAgents ( FoodStageType stageOld,
FoodStageType stageNew )
protected

removes select agents on foodstage transitions

Definition at line 1745 of file edible_base.c.

◆ IsCorpse()

override bool ReplaceEdibleWithNewLambda::IsCorpse ( )
protected

Definition at line 1480 of file edible_base.c.

◆ IsFoodBaked()

bool ReplaceEdibleWithNewLambda::IsFoodBaked ( )
protected

Definition at line 1655 of file edible_base.c.

◆ IsFoodBoiled()

bool ReplaceEdibleWithNewLambda::IsFoodBoiled ( )
protected

Definition at line 1665 of file edible_base.c.

◆ IsFoodBurned()

bool ReplaceEdibleWithNewLambda::IsFoodBurned ( )
protected

Definition at line 1685 of file edible_base.c.

◆ IsFoodDried()

bool ReplaceEdibleWithNewLambda::IsFoodDried ( )
protected

Definition at line 1675 of file edible_base.c.

◆ IsFoodRaw()

bool ReplaceEdibleWithNewLambda::IsFoodRaw ( )
protected

Definition at line 1645 of file edible_base.c.

◆ IsFoodRotten()

bool ReplaceEdibleWithNewLambda::IsFoodRotten ( )
protected

Definition at line 1695 of file edible_base.c.

◆ IsFruit()

override bool ReplaceEdibleWithNewLambda::IsFruit ( )
protected

Definition at line 1485 of file edible_base.c.

◆ IsMeat()

override bool ReplaceEdibleWithNewLambda::IsMeat ( )
protected

Definition at line 1475 of file edible_base.c.

◆ IsMushroom()

override bool ReplaceEdibleWithNewLambda::IsMushroom ( )
protected

Definition at line 1490 of file edible_base.c.

◆ OnAction()

override bool ReplaceEdibleWithNewLambda::OnAction ( int action_id,
Man player,
ParamsReadContext ctx )
protected

Definition at line 2091 of file edible_base.c.

◆ OnFoodStageChange()

void ReplaceEdibleWithNewLambda::OnFoodStageChange ( FoodStageType stageOld,
FoodStageType stageNew )
protected

called on server

Definition at line 1738 of file edible_base.c.

◆ OnStoreLoad()

override bool ReplaceEdibleWithNewLambda::OnStoreLoad ( ParamsReadContext ctx,
int version )
protected

Definition at line 1430 of file edible_base.c.

◆ OnStoreSave()

override void ReplaceEdibleWithNewLambda::OnStoreSave ( ParamsWriteContext ctx)
protected

Definition at line 1416 of file edible_base.c.

◆ ProcessDecay()

override void ReplaceEdibleWithNewLambda::ProcessDecay ( float delta,
bool hasRootAsPlayer )
protected

Definition at line 1848 of file edible_base.c.

◆ RefreshAudio()

void ReplaceEdibleWithNewLambda::RefreshAudio ( )
protected

Definition at line 1331 of file edible_base.c.

◆ RemoveAudio()

void ReplaceEdibleWithNewLambda::RemoveAudio ( )
protected

Definition at line 1407 of file edible_base.c.

◆ ReplaceEdibleWithNew()

void ReplaceEdibleWithNewLambda::ReplaceEdibleWithNew ( string typeName)
protected

Definition at line 1788 of file edible_base.c.

◆ ReplaceEdibleWithNewLambda()

Edible_Base ItemBase ReplaceEdibleWithNewLambda ( EntityAI old_item,
string new_item_type,
PlayerBase player )

Definition at line 1 of file edible_base.c.

◆ ResetCookingTime()

void ReplaceEdibleWithNewLambda::ResetCookingTime ( )
protected

Definition at line 1778 of file edible_base.c.

◆ SetActions()

override void ReplaceEdibleWithNewLambda::SetActions ( )
protected

Definition at line 1805 of file edible_base.c.

◆ SetCookingTime()

void ReplaceEdibleWithNewLambda::SetCookingTime ( float time)
protected

Definition at line 1770 of file edible_base.c.

◆ SoundCookingStart()

void ReplaceEdibleWithNewLambda::SoundCookingStart ( string sound_name)
protected

Definition at line 1813 of file edible_base.c.

◆ SoundCookingStop()

void ReplaceEdibleWithNewLambda::SoundCookingStop ( )
protected

Definition at line 1826 of file edible_base.c.

◆ TransferFoodStage()

void ReplaceEdibleWithNewLambda::TransferFoodStage ( notnull Edible_Base source)
protected

Definition at line 1727 of file edible_base.c.

◆ UpdateVaporParticle()

void ReplaceEdibleWithNewLambda::UpdateVaporParticle ( )
protected

Definition at line 2038 of file edible_base.c.

◆ UpdateVisuals()

void ReplaceEdibleWithNewLambda::UpdateVisuals ( )
protected

Definition at line 2210 of file edible_base.c.

Variable Documentation

◆ DIRECT_COOKING_SLOT_NAME

const string DIRECT_COOKING_SLOT_NAME = "DirectCooking"

Definition at line 1111 of file edible_base.c.

◆ m_DecayDelta

float m_DecayDelta = 0.0
protected

Definition at line 1127 of file edible_base.c.

◆ m_DecayTimer

float m_DecayTimer
protected

Definition at line 1126 of file edible_base.c.

◆ m_FoodStage

ref FoodStage m_FoodStage
protected

Definition at line 1125 of file edible_base.c.

◆ m_HotVaporParticle

ParticleSource m_HotVaporParticle
protected

Definition at line 1129 of file edible_base.c.

◆ m_LastDecayStage

FoodStageType m_LastDecayStage = FoodStageType.NONE
protected

Definition at line 1128 of file edible_base.c.

◆ m_MakeCookingSounds

bool m_MakeCookingSounds
protected

Definition at line 1121 of file edible_base.c.

◆ m_SoundCooking

SoundOnVehicle m_SoundCooking
protected

Definition at line 1122 of file edible_base.c.

◆ m_SoundEffectCooking

EffectSound m_SoundEffectCooking
protected

DEPRECATED.

Definition at line 1123 of file edible_base.c.

◆ m_SoundPlaying

string m_SoundPlaying
protected

Definition at line 1124 of file edible_base.c.

◆ SOUND_BAKING_DONE

const string SOUND_BAKING_DONE = "Baking_Done_SoundSet"

Definition at line 1114 of file edible_base.c.

◆ SOUND_BAKING_START

const string SOUND_BAKING_START = "Baking_SoundSet"

Definition at line 1113 of file edible_base.c.

◆ SOUND_BOILING_DONE

const string SOUND_BOILING_DONE = "Boiling_Done_SoundSet"

Definition at line 1116 of file edible_base.c.

◆ SOUND_BOILING_START

const string SOUND_BOILING_START = "Boiling_SoundSet"

Definition at line 1115 of file edible_base.c.

◆ SOUND_BURNING_DONE

const string SOUND_BURNING_DONE = "Food_Burning_SoundSet"

Definition at line 1119 of file edible_base.c.

◆ SOUND_DRYING_DONE

const string SOUND_DRYING_DONE = "Drying_Done_SoundSet"

Definition at line 1118 of file edible_base.c.

◆ SOUND_DRYING_START

const string SOUND_DRYING_START = "Drying_SoundSet"

Definition at line 1117 of file edible_base.c.