Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
edible_base.c File Reference

Go to the source code of this file.

Data Structures

class  Edible_Base
 

Functions

Edible_Base ItemBase ReplaceEdibleWithNewLambda (EntityAI old_item, string new_item_type, PlayerBase player)
 
void Edible_Base ()
 
override void EEInit ()
 
override void EEDelete (EntityAI parent)
 
override void EEItemLocationChanged (notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
 
void UpdateVisuals ()
 
bool Consume (float amount, PlayerBase consumer)
 
void OnConsume (float amount, PlayerBase consumer)
 
override bool CanBeCooked ()
 
override bool CanBeCookedOnStick ()
 
void Synchronize ()
 
override void OnVariablesSynchronized ()
 
void MakeSoundsOnClient (bool soundstate, CookingMethodType cookingMethod=CookingMethodType.NONE)
 
protected void RefreshAudio ()
 
protected void RemoveAudio ()
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override void AfterStoreLoad ()
 
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)
 
float GetCookingTime ()
 
void SetCookingTime (float time)
 
void ReplaceEdibleWithNew (string typeName)
 
override void SetActions ()
 
protected void SoundCookingStart (string sound_name)
 
protected void SoundCookingStop ()
 
override bool CanHaveTemperature ()
 
override bool CanDecay ()
 
override bool CanProcessDecay ()
 
override void ProcessDecay (float delta, bool hasRootAsPlayer)
 
override void GetDebugActions (out TSelectableActionInfoArrayEx outputList)
 
override bool OnAction (int action_id, Man player, ParamsReadContext ctx)
 
override string GetDebugText ()
 
float GetDecayTimer ()
 
float GetDecayDelta ()
 
FoodStageType GetLastDecayStage ()
 

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_BURNING_DONE = "Food_Burning_SoundSet"
 
protected bool m_MakeCookingSounds
 
protected SoundOnVehicle m_SoundCooking
 
protected EffectSound m_SoundEffectCooking
 DEPRECATED. More...
 
protected string m_SoundPlaying
 
ref FoodStage m_FoodStage
 
protected float m_DecayTimer
 
protected float m_DecayDelta = 0.0
 
protected FoodStageType m_LastDecayStage = FoodStageType.NONE
 
private CookingMethodType m_CookedByMethod
 

Function Documentation

◆ AfterStoreLoad()

override void ReplaceEdibleWithNewLambda::AfterStoreLoad ( )

Definition at line 225 of file edible_base.c.

◆ CanBeCooked()

override bool ReplaceEdibleWithNewLambda::CanBeCooked ( )

Definition at line 96 of file edible_base.c.

◆ CanBeCookedOnStick()

override bool ReplaceEdibleWithNewLambda::CanBeCookedOnStick ( )

Definition at line 101 of file edible_base.c.

◆ CanChangeToNewStage()

bool ReplaceEdibleWithNewLambda::CanChangeToNewStage ( CookingMethodType  cooking_method)

Definition at line 460 of file edible_base.c.

◆ CanDecay()

override bool ReplaceEdibleWithNewLambda::CanDecay ( )

Definition at line 544 of file edible_base.c.

◆ CanHaveTemperature()

override bool ReplaceEdibleWithNewLambda::CanHaveTemperature ( )

Definition at line 539 of file edible_base.c.

◆ CanProcessDecay()

override bool CanProcessDecay ( )

Definition at line 549 of file edible_base.c.

◆ ChangeFoodStage()

void ReplaceEdibleWithNewLambda::ChangeFoodStage ( FoodStageType  new_food_stage_type)

Definition at line 445 of file edible_base.c.

◆ Consume()

bool ReplaceEdibleWithNewLambda::Consume ( float  amount,
PlayerBase  consumer 
)

Definition at line 85 of file edible_base.c.

◆ Edible_Base()

void ReplaceEdibleWithNewLambda::Edible_Base ( )

Definition at line 19 of file edible_base.c.

◆ EEDelete()

override void ReplaceEdibleWithNewLambda::EEDelete ( EntityAI  parent)

Definition at line 45 of file edible_base.c.

◆ EEInit()

override void ReplaceEdibleWithNewLambda::EEInit ( )

Definition at line 38 of file edible_base.c.

◆ EEItemLocationChanged()

override void ReplaceEdibleWithNewLambda::EEItemLocationChanged ( notnull InventoryLocation  oldLoc,
notnull InventoryLocation  newLoc 
)

disable sounds (from cooking)

check for DirectCooking slot name

Definition at line 52 of file edible_base.c.

◆ GetCookingTime()

float ReplaceEdibleWithNewLambda::GetCookingTime ( )

Definition at line 480 of file edible_base.c.

◆ GetDebugActions()

override void ReplaceEdibleWithNewLambda::GetDebugActions ( out TSelectableActionInfoArrayEx  outputList)

Definition at line 744 of file edible_base.c.

◆ GetDebugText()

override string ReplaceEdibleWithNewLambda::GetDebugText ( )

Definition at line 785 of file edible_base.c.

◆ GetDecayDelta()

float ReplaceEdibleWithNewLambda::GetDecayDelta ( )

Definition at line 806 of file edible_base.c.

◆ GetDecayTimer()

float ReplaceEdibleWithNewLambda::GetDecayTimer ( )

Definition at line 801 of file edible_base.c.

◆ GetFoodStage()

FoodStage ReplaceEdibleWithNewLambda::GetFoodStage ( )

Definition at line 233 of file edible_base.c.

◆ GetFoodStageName()

string ReplaceEdibleWithNewLambda::GetFoodStageName ( FoodStageType  food_stage_type)

Definition at line 455 of file edible_base.c.

◆ GetFoodStageType()

FoodStageType ReplaceEdibleWithNewLambda::GetFoodStageType ( )

Definition at line 378 of file edible_base.c.

◆ GetLastDecayStage()

FoodStageType ReplaceEdibleWithNewLambda::GetLastDecayStage ( )

Definition at line 811 of file edible_base.c.

◆ GetNextFoodStageType()

FoodStageType ReplaceEdibleWithNewLambda::GetNextFoodStageType ( CookingMethodType  cooking_method)

Definition at line 450 of file edible_base.c.

◆ IsCorpse()

override bool ReplaceEdibleWithNewLambda::IsCorpse ( )

Definition at line 244 of file edible_base.c.

◆ IsFoodBaked()

bool ReplaceEdibleWithNewLambda::IsFoodBaked ( )

Definition at line 394 of file edible_base.c.

◆ IsFoodBoiled()

bool ReplaceEdibleWithNewLambda::IsFoodBoiled ( )

Definition at line 404 of file edible_base.c.

◆ IsFoodBurned()

bool ReplaceEdibleWithNewLambda::IsFoodBurned ( )

Definition at line 424 of file edible_base.c.

◆ IsFoodDried()

bool ReplaceEdibleWithNewLambda::IsFoodDried ( )

Definition at line 414 of file edible_base.c.

◆ IsFoodRaw()

bool ReplaceEdibleWithNewLambda::IsFoodRaw ( )

Definition at line 384 of file edible_base.c.

◆ IsFoodRotten()

bool ReplaceEdibleWithNewLambda::IsFoodRotten ( )

Definition at line 434 of file edible_base.c.

◆ IsFruit()

override bool ReplaceEdibleWithNewLambda::IsFruit ( )

Definition at line 249 of file edible_base.c.

◆ IsMeat()

override bool ReplaceEdibleWithNewLambda::IsMeat ( )

Definition at line 239 of file edible_base.c.

◆ IsMushroom()

override bool ReplaceEdibleWithNewLambda::IsMushroom ( )

Definition at line 254 of file edible_base.c.

◆ MakeSoundsOnClient()

void ReplaceEdibleWithNewLambda::MakeSoundsOnClient ( bool  soundstate,
CookingMethodType  cookingMethod = CookingMethodType.NONE 
)

Definition at line 139 of file edible_base.c.

◆ OnAction()

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

Definition at line 755 of file edible_base.c.

◆ OnConsume()

void ReplaceEdibleWithNewLambda::OnConsume ( float  amount,
PlayerBase  consumer 
)

◆ OnStoreLoad()

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

Definition at line 197 of file edible_base.c.

◆ OnStoreSave()

override void ReplaceEdibleWithNewLambda::OnStoreSave ( ParamsWriteContext  ctx)

Definition at line 183 of file edible_base.c.

◆ OnVariablesSynchronized()

override void ReplaceEdibleWithNewLambda::OnVariablesSynchronized ( )

Definition at line 119 of file edible_base.c.

◆ ProcessDecay()

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

Definition at line 554 of file edible_base.c.

◆ RefreshAudio()

protected void ReplaceEdibleWithNewLambda::RefreshAudio ( )

Definition at line 147 of file edible_base.c.

◆ RemoveAudio()

protected void ReplaceEdibleWithNewLambda::RemoveAudio ( )

Definition at line 174 of file edible_base.c.

◆ ReplaceEdibleWithNew()

void ReplaceEdibleWithNewLambda::ReplaceEdibleWithNew ( string  typeName)

Definition at line 494 of file edible_base.c.

◆ ReplaceEdibleWithNewLambda()

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

Definition at line 820 of file edible_base.c.

◆ SetActions()

override void ReplaceEdibleWithNewLambda::SetActions ( )

Definition at line 506 of file edible_base.c.

◆ SetCookingTime()

void ReplaceEdibleWithNewLambda::SetCookingTime ( float  time)

Definition at line 485 of file edible_base.c.

◆ SoundCookingStart()

protected void ReplaceEdibleWithNewLambda::SoundCookingStart ( string  sound_name)

Definition at line 514 of file edible_base.c.

◆ SoundCookingStop()

protected void ReplaceEdibleWithNewLambda::SoundCookingStop ( )

Definition at line 527 of file edible_base.c.

◆ Synchronize()

void ReplaceEdibleWithNewLambda::Synchronize ( )

Definition at line 109 of file edible_base.c.

◆ TransferFoodStage()

void ReplaceEdibleWithNewLambda::TransferFoodStage ( notnull Edible_Base  source)

Definition at line 466 of file edible_base.c.

◆ UpdateVisuals()

void ReplaceEdibleWithNewLambda::UpdateVisuals ( )

Definition at line 77 of file edible_base.c.

Variable Documentation

◆ DIRECT_COOKING_SLOT_NAME

const string DIRECT_COOKING_SLOT_NAME = "DirectCooking"

Definition at line 2 of file edible_base.c.

◆ m_CookedByMethod

private CookingMethodType m_CookedByMethod

Definition at line 17 of file edible_base.c.

◆ m_DecayDelta

protected float m_DecayDelta = 0.0

Definition at line 14 of file edible_base.c.

◆ m_DecayTimer

protected float m_DecayTimer

Definition at line 13 of file edible_base.c.

◆ m_FoodStage

ref FoodStage m_FoodStage

Definition at line 12 of file edible_base.c.

◆ m_LastDecayStage

protected FoodStageType m_LastDecayStage = FoodStageType.NONE

Definition at line 15 of file edible_base.c.

◆ m_MakeCookingSounds

protected bool m_MakeCookingSounds

Definition at line 8 of file edible_base.c.

◆ m_SoundCooking

protected SoundOnVehicle m_SoundCooking

Definition at line 9 of file edible_base.c.

◆ m_SoundEffectCooking

protected EffectSound m_SoundEffectCooking

DEPRECATED.

Definition at line 10 of file edible_base.c.

◆ m_SoundPlaying

protected string m_SoundPlaying

Definition at line 11 of file edible_base.c.

◆ SOUND_BAKING_DONE

const string SOUND_BAKING_DONE = "Baking_Done_SoundSet"

Definition at line 5 of file edible_base.c.

◆ SOUND_BAKING_START

const string SOUND_BAKING_START = "Baking_SoundSet"

Definition at line 4 of file edible_base.c.

◆ SOUND_BURNING_DONE

const string SOUND_BURNING_DONE = "Food_Burning_SoundSet"

Definition at line 6 of file edible_base.c.