DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс Edible_Base
+ Граф наследования:Edible_Base:

Защищенные члены

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)
 
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 ()
 

Защищенные статические члены

static float GetFoodTotalVolume (ItemBase item, string classname="", int food_stage=0)
 
static float GetFoodEnergy (ItemBase item, string classname="", int food_stage=0)
 
static float GetFoodWater (ItemBase item, string classname="", int food_stage=0)
 
static float GetFoodNutritionalIndex (ItemBase item, string classname="", int food_stage=0)
 
static float GetFoodToxicity (ItemBase item, string classname="", int food_stage=0)
 
static int GetFoodAgents (ItemBase item, string classname="", int food_stage=0)
 
static float GetFoodDigestibility (ItemBase item, string classname="", int food_stage=0)
 
static NutritionalProfile GetNutritionalProfile (ItemBase item, string classname="", int food_stage=0)
 

Защищенные данные

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
 

Закрытые члены

void Edible_Base ()
 
override void EEInit ()
 
override void EEDelete (EntityAI parent)
 
override void EEItemLocationChanged (notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
 
void UpdateVisualsEx (bool forced=false)
 
bool Consume (float amount, PlayerBase consumer)
 
void OnConsume (float amount, PlayerBase consumer)
 
int FilterAgents (int agentsIn)
 Filter agents from the item (override on higher implements)
 
override bool CanBeCooked ()
 
override bool CanBeCookedOnStick ()
 
override float GetTemperatureFreezeTime ()
 
override float GetTemperatureThawTime ()
 
override bool CanItemOverheat ()
 
void Synchronize ()
 
override void OnVariablesSynchronized ()
 
void MakeSoundsOnClient (bool soundstate, CookingMethodType cookingMethod=CookingMethodType.NONE)
 
override bool CanBeCooked ()
 
override bool CanBeCookedOnStick ()
 
override bool IsMeat ()
 
override bool CanDecay ()
 
override void HandleFoodStageChangeAgents (FoodStageType stageOld, FoodStageType stageNew)
 
override void SetActions ()
 
override bool CanBeCookedOnStick ()
 
override bool CanBeCooked ()
 
override bool IsMeat ()
 
override bool CanDecay ()
 
override bool UseConfigInitTemperature ()
 
override void SetActions ()
 
override bool CanBeCooked ()
 
override bool CanBeCookedOnStick ()
 
override bool IsMeat ()
 
override bool CanDecay ()
 
override void SetActions ()
 
void BoxCerealCrunchin ()
 
override void SetActions ()
 
void Candycane_Colorbase ()
 
override void SetActions ()
 
override bool CanBeCooked ()
 
override bool CanBeCookedOnStick ()
 
override bool IsFruit ()
 
override bool CanDecay ()
 
bool ConditionAttach (EntityAI parent)
 
bool ConditionDetach (EntityAI parent)
 
override void SetActions ()
 
override bool CanBeCookedOnStick ()
 
override bool CanBeCooked ()
 
override bool IsCorpse ()
 
override bool CanDecay ()
 
override bool CanBeCooked ()
 
override bool CanBeCookedOnStick ()
 
override bool IsMeat ()
 
override bool CanDecay ()
 
override void SetActions ()
 
override void SetActions ()
 
override void OnConsume (float amount, PlayerBase consumer)
 
override bool CanBeCookedOnStick ()
 
override bool CanBeCooked ()
 
override bool IsCorpse ()
 
override bool CanDecay ()
 
override bool CanBeSkinned ()
 
override bool CanBeCooked ()
 
override bool CanBeCookedOnStick ()
 
override bool IsMeat ()
 
override bool CanDecay ()
 
override void SetActions ()
 
override bool CanBeCooked ()
 
override bool CanBeCookedOnStick ()
 
override bool IsMeat ()
 
override bool CanDecay ()
 
override void SetActions ()
 
override bool CanBeCooked ()
 
override bool CanBeCookedOnStick ()
 
override bool IsMeat ()
 
override bool CanDecay ()
 
override void SetActions ()
 
override bool CanBeCookedOnStick ()
 
override bool CanBeCooked ()
 
override bool IsCorpse ()
 
override bool CanDecay ()
 
override bool CanBeCooked ()
 
override bool CanBeCookedOnStick ()
 
override bool IsMeat ()
 
override bool CanDecay ()
 
override void SetActions ()
 
override bool CanBeCooked ()
 
override bool CanBeCookedOnStick ()
 
override bool IsMeat ()
 
override bool CanDecay ()
 
override void SetActions ()
 
override bool CanPutAsAttachment (EntityAI parent)
 
override bool CanDetachAttachment (EntityAI parent)
 
override void SetActions ()
 
void HumanSteakMeat ()
 
override bool CanBeCooked ()
 
override bool CanBeCookedOnStick ()
 
override bool IsMeat ()
 
override bool CanDecay ()
 
override void SetActions ()
 
override bool CanBeCooked ()
 
override bool CanBeCookedOnStick ()
 
override bool IsMeat ()
 
override bool CanDecay ()
 
override void SetActions ()
 
override bool CanBeCookedOnStick ()
 
override bool CanBeCooked ()
 
override bool IsCorpse ()
 
override bool CanDecay ()
 
override bool CanBeCooked ()
 
override bool CanBeCookedOnStick ()
 
override bool IsMeat ()
 
override bool CanDecay ()
 
override void SetActions ()
 
override bool CanBeCooked ()
 
override bool CanBeCookedOnStick ()
 
override bool IsMeat ()
 
override bool CanDecay ()
 
override void SetActions ()
 
override void SetActions ()
 
override void OnConsume (float amount, PlayerBase consumer)
 
override bool CanBeCooked ()
 
override bool CanBeCookedOnStick ()
 
override bool IsMeat ()
 
override bool CanDecay ()
 
override void SetActions ()
 
override bool CanBeCookedOnStick ()
 
override bool CanBeCooked ()
 
override bool IsCorpse ()
 
override bool CanDecay ()
 
override bool CanBeCooked ()
 
override bool CanBeCookedOnStick ()
 
override bool IsMeat ()
 
override bool CanDecay ()
 
override void SetActions ()
 
override bool CanDecay ()
 
override void SetActions ()
 
override bool CanBeCooked ()
 
override bool CanBeCookedOnStick ()
 
override bool IsMeat ()
 
override bool CanDecay ()
 
override void SetActions ()
 
override bool CanBeCooked ()
 
override bool CanBeCookedOnStick ()
 
override bool IsFruit ()
 
override bool CanDecay ()
 
bool ConditionAttach (EntityAI parent)
 
bool ConditionDetach (EntityAI parent)
 
override void SetActions ()
 
override bool CanBeCookedOnStick ()
 
override bool CanBeCooked ()
 
override bool IsMeat ()
 
override bool CanDecay ()
 
override void SetActions ()
 
override bool CanBeCooked ()
 
override bool CanBeCookedOnStick ()
 
override bool IsMeat ()
 
override bool CanDecay ()
 
override void SetActions ()
 
override bool CanBeCookedOnStick ()
 
override bool CanBeCooked ()
 
override bool IsMeat ()
 
override bool CanDecay ()
 
override bool UseConfigInitTemperature ()
 
override void SetActions ()
 
override bool CanPutAsAttachment (EntityAI parent)
 
override bool CanDetachAttachment (EntityAI parent)
 
override void SetActions ()
 
override bool CanBeCookedOnStick ()
 
override bool CanBeCooked ()
 
override bool IsCorpse ()
 
override bool CanDecay ()
 
override bool CanBeCooked ()
 
override bool CanBeCookedOnStick ()
 
override bool IsMeat ()
 
override bool CanDecay ()
 
override void SetActions ()
 
override bool CanBeCookedOnStick ()
 
override bool CanBeCooked ()
 
override bool IsCorpse ()
 
override bool CanDecay ()
 
override bool CanBeCooked ()
 
override bool CanBeCookedOnStick ()
 
override bool IsMeat ()
 
override bool CanDecay ()
 
override void SetActions ()
 
override bool CanBeCooked ()
 
override bool CanBeCookedOnStick ()
 
override bool IsMeat ()
 
override bool CanDecay ()
 
override void HandleFoodStageChangeAgents (FoodStageType stageOld, FoodStageType stageNew)
 
override void SetActions ()
 
override bool CanBeCookedOnStick ()
 
override bool CanBeCooked ()
 
override bool IsMeat ()
 
override void OnWasAttached (EntityAI parent, int slot_id)
 
override void OnWasDetached (EntityAI parent, int slot_id)
 
- Закрытые члены унаследованные от ItemBase
void BarbedWire ()
 
override void EEInit ()
 
bool IsMounted ()
 
bool GetSlotLockedState ()
 
void SetMountedState (bool is_mounted)
 
void UpdateAttachmentSlot ()
 
void LockAttachmentSlot (bool lock_state)
 
void Synchronize ()
 
override void OnVariablesSynchronized ()
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override void AfterStoreLoad ()
 
override void OnWorkStart ()
 
override void OnWorkStop ()
 
override void OnWork (float consumed_energy)
 
override void OnIsPlugged (EntityAI source_device)
 
override void OnIsUnplugged (EntityAI last_energy_source)
 
override void OnInventoryEnter (Man player)
 
void CreateElectrifiedDamageTrigger ()
 
void CreateDamageTrigger ()
 
void DestroyDamageTrigger ()
 
void Spark ()
 
void SoundCut ()
 
void SoundSpark ()
 
void SoundBuzzLoopStart ()
 
void SoundBuzzLoopStop ()
 
void SoundElectricShock ()
 
void SoundCollision ()
 
override void PreAreaDamageActions ()
 
override void PostAreaDamageActions ()
 
override void OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner)
 
override void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
 
override string GetDeploySoundset ()
 
override string GetLoopDeploySoundset ()
 
override void SetActions ()
 
void PlayDeployLoopSound ()
 
void StopDeployLoopSound ()
 DEPRECATED.
 
void BaseBuildingBase ()
 
override void EEDelete (EntityAI parent)
 
override string GetInvulnerabilityTypeString ()
 
override bool CanObstruct ()
 
override int GetHideIconMask ()
 
void SynchronizeBaseState ()
 
override void OnVariablesSynchronized ()
 
void OnSynchronizedClient ()
 
void RegisterPartForSync (int part_id)
 
void UnregisterPartForSync (int part_id)
 
bool IsPartBuildInSyncData (int part_id)
 
void RegisterActionForSync (int part_id, int action_id)
 
void ResetActionSyncData ()
 
void SetActionFromSyncData ()
 
void SetPartFromSyncData (ConstructionPart part)
 
void SetPartsFromSyncData ()
 
ConstructionPart GetConstructionPartById (int id)
 
bool HasBase ()
 
void SetBaseState (bool has_base)
 
override bool IsDeployable ()
 
bool IsOpened ()
 
ItemBase CreateConstructionKit ()
 
void CreateConstructionKitInHands (notnull PlayerBase player)
 
vector GetKitSpawnPosition ()
 
string GetConstructionKitType ()
 
void DestroyConstructionKit (ItemBase construction_kit)
 
void DestroyConstruction ()
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override void AfterStoreLoad ()
 
void SetPartsAfterStoreLoad ()
 
override void OnCreatePhysics ()
 
override void EEHealthLevelChanged (int oldLevel, int newLevel, string zone)
 
override void EEOnAfterLoad ()
 
override void EEInit ()
 
override void EEItemAttached (EntityAI item, string slot_name)
 
override void EEItemDetached (EntityAI item, string slot_name)
 
void OnSetSlotLock (int slotId, bool locked, bool was_locked)
 
override bool IgnoreOutOfReachCondition ()
 
void OnPartBuiltServer (notnull Man player, string part_name, int action_id)
 
void OnPartBuiltClient (string part_name, int action_id)
 
void OnPartDismantledServer (notnull Man player, string part_name, int action_id)
 
void OnPartDismantledClient (string part_name, int action_id)
 
void OnPartDestroyedServer (Man player, string part_name, int action_id, bool destroyed_by_connected_part=false)
 
void OnPartDestroyedClient (string part_name, int action_id)
 
void InitBaseState ()
 
void InitVisuals ()
 
void UpdateVisuals ()
 
void UpdateAttachmentVisuals (string slot_name, bool is_locked)
 
void UpdatePhysics ()
 
void UpdateAttachmentPhysics (string slot_name, bool is_locked)
 
void UpdateNavmesh ()
 
override bool CanUseConstruction ()
 
override bool CanUseConstructionBuild ()
 
bool IsAttachmentSlotLocked (EntityAI attachment)
 
bool IsAttachmentSlotLocked (string slot_name)
 
void GetAttachmentSlots (EntityAI entity, out array< string > attachment_slots)
 
bool CheckSlotVerticalDistance (int slot_id, PlayerBase player)
 
bool CheckMemoryPointVerticalDistance (float max_dist, string selection, PlayerBase player)
 
bool CheckLevelVerticalDistance (float max_dist, string selection, PlayerBase player)
 
void ConstructionInit ()
 
Construction GetConstruction ()
 
override bool CanReceiveAttachment (EntityAI attachment, int slotId)
 
bool HasAttachmentsBesidesBase ()
 
override bool ShowZonesHealth ()
 
override bool IsTakeable ()
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanRemoveFromCargo (EntityAI parent)
 
override bool CanPutIntoHands (EntityAI parent)
 
override bool IsFacingPlayer (PlayerBase player, string selection)
 
override bool IsPlayerInside (PlayerBase player, string selection)
 
bool MustBeBuiltFromOutside ()
 Some buildings can only be built from outside.
 
bool IsFacingCamera (string selection)
 
bool PerformRoofCheckForBase (string partName, PlayerBase player, out bool result)
 
bool HasProperDistance (string selection, PlayerBase player)
 
bool CanFoldBaseBuildingObject ()
 
ItemBase FoldBaseBuildingObject ()
 
void CreateAreaDamage (string slot_name, float rotation_angle=0)
 
void CalcDamageAreaRotation (float angle_deg, out vector center, out vector orientation)
 
void DestroyAreaDamage (string slot_name)
 
override bool IsIgnoredByConstruction ()
 
void SoundBuildStart (string part_name)
 
void SoundDismantleStart (string part_name)
 
void SoundDestroyStart (string part_name)
 
string GetBuildSoundByMaterial (string part_name)
 
string GetDismantleSoundByMaterial (string part_name)
 
void CheckForHybridAttachments (EntityAI item, string slot_name)
 
override int GetDamageSystemVersionChange ()
 
override void SetActions ()
 
void DebugCustomState ()
 
array< stringOnDebugSpawnBuildExcludes ()
 Excludes certain parts from being built by OnDebugSpawn, uses Contains to compare.
 
override void OnDebugSpawn ()
 
void FullyBuild ()
 
void BatteryCharger ()
 
override bool IsElectricAppliance ()
 
override void OnWork (float consumed_energy)
 
override void OnWorkStart ()
 
override void OnWorkStop ()
 
void UpdateStatusLights ()
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanPutIntoHands (EntityAI player)
 
override void OnOwnSocketTaken (EntityAI device)
 
override void OnOwnSocketReleased (EntityAI device)
 
override bool CanReceiveAttachment (EntityAI attachment, int slotId)
 
override bool CanLoadAttachment (EntityAI attachment)
 
void HideAttachedClipsStates ()
 
void RedLightOn ()
 
void GreenLightOn ()
 
void YellowLightOn ()
 
void SwitchLightOn ()
 
void RedLightOff ()
 
void GreenLightOff ()
 
void YellowLightOff ()
 
void SwitchLightOff ()
 
override void OnSwitchOn ()
 
override void OnSwitchOff ()
 
override void OnInventoryExit (Man player)
 
override void OnInventoryEnter (Man player)
 
override void OnVariablesSynchronized ()
 
override void RefreshPhysics ()
 
override void OnPlacementStarted (Man player)
 
override void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
 
override bool IsDeployable ()
 
override string GetPlaceSoundset ()
 
override void SetActions ()
 
override void OnWorkStart ()
 
override void OnWorkStop ()
 
void RefreshFlameVisual (bool working=false)
 
void SoundBurningStart ()
 
void SoundBurningStop ()
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanRemoveFromCargo (EntityAI parent)
 
override bool IsIgnited ()
 
override void OnIgnitedTarget (EntityAI ignited_item)
 
override bool CanIgniteItem (EntityAI ignite_target=NULL)
 
override void SetActions ()
 
EntityAI GetGasCanister ()
 
bool HasEnoughEnergyForRepair (float pTime)
 
override void OnDebugSpawn ()
 
void KitBase ()
 
override bool IsBasebuildingKit ()
 
override bool HasProxyParts ()
 
override bool CanProxyObstruct ()
 
override void OnVariablesSynchronized ()
 
override void EEInit ()
 
override bool DisassembleOnLastDetach ()
 
override void EEItemDetached (EntityAI item, string slot_name)
 
override void OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner)
 
override void OnEndPlacement ()
 
override void OnPlacementCancelled (Man player)
 
override bool IsDeployable ()
 
override bool CanAssignAttachmentsToQuickbar ()
 
override string GetDeploySoundset ()
 
override string GetLoopDeploySoundset ()
 
override string GetDeployFinishSoundset ()
 
override void RefreshPhysics ()
 
void UpdateVisuals ()
 
void UpdatePhysics ()
 
void AssembleKit ()
 
void DisassembleKit (ItemBase item)
 
void CreateRope (Rope rope)
 
override void SetActions ()
 
void PlayDeployLoopSound ()
 
void StopDeployLoopSound ()
 DEPRECATED.
 
void Paper ()
 
void ~Paper ()
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override WrittenNoteData GetWrittenNoteData ()
 
override bool HasFlammableMaterial ()
 
override bool CanBeIgnitedBy (EntityAI igniter=null)
 
override bool CanIgniteItem (EntityAI ignite_target=null)
 
override void OnIgnitedTarget (EntityAI ignited_item)
 
override void OnIgnitedThis (EntityAI fire_source)
 
override bool IsThisIgnitionSuccessful (EntityAI item_source=null)
 
override void SetActions ()
 
void ParticleTest ()
 
override void EEDelete (EntityAI parent)
 
override void OnSwitchOn ()
 
override void OnSwitchOff ()
 
override void OnWorkStart ()
 
override void OnWorkStop ()
 
void SoundBurningStart ()
 
void SoundBurningStop ()
 
void SoundTurnOn ()
 
void SoundTurnOff ()
 
override void SetActions ()
 
ItemBase GetCookingEquipment ()
 
void SetCookingEquipment (ItemBase equipment)
 
void ClearCookingEquipment (ItemBase pItem)
 
void DestroyFireplace ()
 
override void EEInit ()
 
override void EEItemAttached (EntityAI item, string slot_name)
 
override void EEItemDetached (EntityAI item, string slot_name)
 
override void OnSwitchOn ()
 
override void OnSwitchOff ()
 
override void OnWorkStart ()
 
override void OnWorkStop ()
 
override void OnWork (float consumed_energy)
 
void CookWithEquipment ()
 
void RefreshFlameVisual (bool working=false, bool hasAttachment=false)
 
void RemoveCookingAudioVisuals ()
 
void SoundBurningStart ()
 
void SoundBurningStop ()
 
void SoundTurnOn ()
 
void SoundTurnOff ()
 
override bool IsSelfAdjustingTemperature ()
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanRemoveFromCargo (EntityAI parent)
 
override bool CanReceiveAttachment (EntityAI attachment, int slotId)
 
override bool CanLoadAttachment (EntityAI attachment)
 
override bool CanPutIntoHands (EntityAI parent)
 
override bool IsIgnited ()
 
override bool CanIgniteItem (EntityAI ignite_target=NULL)
 
override void SetActions ()
 
override void OnDebugSpawn ()
 
void PowerGeneratorBase ()
 
void ~PowerGeneratorBase ()
 
override void EEInit ()
 
override void EOnInit (IEntity other, int extra)
 
override float GetLiquidThroughputCoef ()
 
vector GetSmokeParticlePosition ()
 
vector GetSmokeParticleOrientation ()
 
void StartLoopSound ()
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanPutIntoHands (EntityAI player)
 
bool CanManipulate ()
 
override void OnInitEnergy ()
 
override void OnWorkStart ()
 
override void OnWork (float consumed_energy)
 
override void OnWorkStop ()
 
override void OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner)
 
override void EEItemAttached (EntityAI item, string slot_name)
 
override void EEItemDetached (EntityAI item, string slot_name)
 
void UpdateFuelMeter ()
 
void SetFuel (float fuel_amount)
 
float AddFuel (float available_fuel)
 
bool CanAddFuel (ItemBase container)
 
float GetFuel ()
 
float GetMaxFuel ()
 
bool HasSparkplug ()
 
override void OnVariablesSynchronized ()
 
override void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
 
override string GetPlaceSoundset ()
 
override void SetActions ()
 
override void OnDebugSpawn ()
 
override void GetDebugActions (out TSelectableActionInfoArrayEx outputList)
 
override bool OnAction (int action_id, Man player, ParamsReadContext ctx)
 
override void OnWorkStart ()
 
void StartPeriodicMeasurement ()
 
void PrepareMeasurement ()
 
void DoMeasurement ()
 
void StopPeriodicMeasurement ()
 
override void OnWorkStop ()
 
override void SetActions ()
 
void Spotlight ()
 
override bool IsElectricAppliance ()
 
override void OnInitEnergy ()
 
override void EOnInit (IEntity other, int extra)
 
override void OnSwitchOn ()
 
override void OnSwitchOff ()
 
override void OnWorkStart ()
 
override void OnWorkStop ()
 
override void OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner)
 
override void OnIsPlugged (EntityAI source_device)
 
void UpdateAllSelections ()
 
override void OnIsUnplugged (EntityAI last_energy_source)
 
override void OnVariablesSynchronized ()
 
void Fold (bool keep_connected=false)
 
void Unfold ()
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanPutIntoHands (EntityAI player)
 
bool IsFolded ()
 
void SoundTurnOn ()
 
void SoundTurnOff ()
 
override void OnPlacementStarted (Man player)
 
override void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
 
override void OnPlacementCancelled (Man player)
 
override bool IsDeployable ()
 
override string GetDeploySoundset ()
 
override string GetLoopDeploySoundset ()
 
override int GetViewIndex ()
 
override void SetActions ()
 
void PlayDeployLoopSound ()
 
void StopDeployLoopSound ()
 DEPRECATED.
 
void TentBase ()
 
void ~TentBase ()
 
override string GetInvulnerabilityTypeString ()
 
override bool HasProxyParts ()
 
override bool CanProxyObstructSelf ()
 prevents showing cargo when outside the tent geometry
 
override bool IsItemTent ()
 
override bool CanBeRepairedByCrafting ()
 
override int GetMeleeTargetType ()
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override void RefreshPhysics ()
 
override void OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner)
 
override void OnVariablesSynchronized ()
 
override void EEHealthLevelChanged (int oldLevel, int newLevel, string zone)
 
void HideAllAnimationsAndProxyPhysics (bool hide_animations=true, bool hide_physics=true)
 
bool ConditionIntoInventory (EntityAI player)
 
override bool CanPutIntoHands (EntityAI parent)
 
override bool CanPutInCargo (EntityAI parent)
 
bool ConditionOutOfHands (EntityAI player)
 
override bool CanBeRepairedToPristine ()
 
void RefreshAttachements ()
 
override void EEItemAttached (EntityAI item, string slot_name)
 
override void EEItemDetached (EntityAI item, string slot_name)
 
override int GetViewIndex ()
 
int GetState ()
 
int GetStateLocal ()
 
bool CanBePacked ()
 
bool CanBeManipulated ()
 
bool CanAttach (ItemBase item)
 
override bool IsIgnoredByConstruction ()
 
void Pack (bool update_navmesh, bool init=false)
 
void Pitch (bool update_navmesh, bool init=false)
 
void TryPitch (bool update_navmesh, bool init=false)
 
void UpdateVisuals ()
 
void UpdatePhysics ()
 
void Refresh ()
 
bool CanToggleAnimations (string selection)
 
void ResetToggle ()
 
void ManipulateEntrance ()
 
void ManipulateWindow ()
 
bool IsManipulatedEntrance ()
 
bool IsManipulatedWindow ()
 
void ToggleAnimation (string selection)
 
void HandleCamoNetAttachment (bool hide)
 
void AnimateCamonetToggle (ToggleAnimations toggle)
 
void AnimateCamonetByOpeningSelection (string opening_selection)
 
string GetSoundOpen ()
 
string GetSoundClose ()
 
string GetSoundOpenWindow ()
 
string GetSoundCloseWindow ()
 
void SoundTentOpenPlay ()
 
void SoundTentClosePlay ()
 
void SoundTentOpenWindowPlay ()
 
void SoundTentCloseWindowPlay ()
 
void RegenerateNavmesh ()
 
bool HasClutterCutter ()
 
string GetClutterCutter ()
 
void DestroyClutterCutter ()
 
override bool IsDeployable ()
 
override void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
 
override void SetActions ()
 
void HandleOpeningsVisuals ()
 
void HandleOpeningsPhysics ()
 
override int GetDamageSystemVersionChange ()
 
override bool CanReceiveItemIntoCargo (EntityAI item)
 
override bool CanLoadItemIntoCargo (EntityAI item)
 
override bool CanReceiveAttachment (EntityAI attachment, int slotId)
 
override bool CanLoadAttachment (EntityAI attachment)
 
override bool CanBePlaced (Man player, vector position)
 
void SetIsBeingPacked (bool isBeingPacked)
 
void PlayDeployLoopSound ()
 
void StopDeployLoopSound ()
 DEPRECATED.
 
void ToolBase ()
 
int GetDisarmRate ()
 
override void OnRPC (PlayerIdentity sender, int rpc_type, ParamsReadContext ctx)
 
void TrapSpawnBase ()
 
void ~TrapSpawnBase ()
 
void InitTrapValues ()
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override void OnVariablesSynchronized ()
 this event is called all variables are synchronized on client
 
bool IsActive ()
 
bool IsDeployed ()
 
void SetDeployed (bool newState)
 
override bool IsTakeable ()
 
bool IsPlaceableAtPosition (vector position)
 
void SetupTrap ()
 
void SetupTrapPlayer (PlayerBase player, bool set_position=true)
 
void UpdatePreyPos ()
 
void Fold ()
 
void AddDefect ()
 
void StartActivate (PlayerBase player)
 
bool CanBeTaken ()
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanPutIntoHands (EntityAI parent)
 
void ResetActiveProgress ()
 
void ResetRunningTimerProgress ()
 
void RunTrappingTimer (float duration, string fnName)
 generic trapping launcher for traps, use this to store delta info
 
void SetActive ()
 
void SetInactive ()
 
void SetUsed ()
 
void IncreaseElapsedTime ()
 
void AdjustDetectionRange ()
 
void EvaluateCatch ()
 
bool IsPlayerInVicinity ()
 
void TrySpawnCatch ()
 
void SpawnCatch ()
 
void SetCatchSuccessful (bool successful)
 
void OnCatchSpawnServer ()
 
void OnCatchSpawnClient ()
 
void PlayCatchEffectsServer ()
 
void PlayCatchEffectsClient ()
 
void PlayCatchSound (YieldItemBase yItem)
 
void PlayCatchNoise (YieldItemBase yItem)
 
void PlayCatchParticleSynced (YieldItemBase yItem)
 
bool SetCanCatch (out EntityAI bait)
 
override void OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner)
 
bool IsSurfaceWater (vector position)
 
override bool CanDisplayAttachmentSlot (int slot_id)
 
override bool CanReceiveAttachment (EntityAI attachment, int slotId)
 
override void EEItemAttached (EntityAI item, string slot_name)
 
override void EEItemDetached (EntityAI item, string slot_name)
 
void InitCatchingComponent ()
 
void ClearCatchingComponent ()
 
void UpdateTrapEnviroMask ()
 
void SetTrapEnviroMask (int value)
 
void HandleBaitLoss ()
 
void DetachAllAttachments ()
 detaches everything on catching end (some slots may not be accessible when folded)
 
override void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
 
bool IsPlaceable ()
 
override bool CanBePlaced (Man player, vector position)
 
override void SetActions ()
 
bool CanPutInInventory (EntityAI player)
 DEPRECATED.
 
void AlignCatch (ItemBase obj, string catch_name)
 DEPRECATED.
 
void CatchSetQuant (ItemBase catch)
 !DEPRECATED
 
void PlayDeployLoopSound ()
 
void StopDeployLoopSound ()
 DEPRECATED.
 

Закрытые данные

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"
 
CookingMethodType m_CookedByMethod
 
- Закрытые данные унаследованные от ItemBase
ref array< ref Slotm_Slots
 
int m_SlotFertilityState = 0
 
int m_SlotWateredState = 0
 
int m_MaxWateredStateVal = 0
 
float m_DefaultFertility = 1
 
ref Timer m_CheckRainTimer
 
ref AreaDamageManager m_AreaDamage
 
bool m_TriggerActive
 
bool m_IsPlaced
 
bool m_IsMounted
 
bool m_LastMountedState
 
const string SOUND_MOUNT = "putDown_BarbedWire_SoundSet"
 
EffectSound m_MountSound
 
ref EffectSound m_DeployLoopSound
 DEPRECATED.
 
EffectSound m_Sound
 
ref map< string, ref AreaDamageManagerm_DamageTriggers
 
ref array< stringm_HybridAttachments
 
ref array< stringm_Mountables
 
const string ATTACHED_CLIPS_STATES [] = {SEL_CLIPS_CAR, SEL_CLIPS_TRUCK}
 
const int ATTACHED_CLIPS_STATES_COUNT = 2
 
int m_BatteryEnergy0To100
 
float m_ChargeEnergyPerSecond
 
ref Timer m_UpdateStatusLightsTimer
 
bool m_BlinkingStatusLightIsOn = false
 
BlowtorchLight m_Light
 
EffectSound m_SoundBurningLoop
 
bool m_DeployedRegularly
 
ref WrittenNoteData m_NoteContents
 
int PARTICLE_PATH
 
Particle m_Particle
 
EffectSound m_SoundTurnOn
 
EffectSound m_SoundTurnOff
 
const string FLAME_BUTANE_ON = "dz\\gear\\cooking\\data\\flame_butane_ca.paa"
 
const string FLAME_BUTANE_OFF = ""
 
 ATTACHMENT_COOKING_POT = Pot
 
 ATTACHMENT_FRYING_PAN = FryingPan
 
 ATTACHMENT_CAULDRON = Cauldron
 
const float PARAM_COOKING_TEMP_THRESHOLD = 100
 
const float PARAM_COOKING_EQUIP_MAX_TEMP = 250
 
const float PARAM_COOKING_TIME_INC_COEF = 0.5
 
ref UniversalTemperatureSource m_UTSource
 DEPRECATED Attached spark plug item.
 
ref UniversalTemperatureSourceSettings m_UTSSettings
 
ref UniversalTemperatureSourceLambdaConstant m_UTSLConst
 
const float PARAM_COOKING_EQUIP_TEMP_INCREASE = 10
 
EffectSound m_EngineLoop
 
EffectSound m_EngineStart
 
EffectSound m_EngineStop
 
ref Timer m_SoundLoopStartTimer
 
Effect m_Smoke
 
ItemBase m_SparkPlug
 
ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
 
ref Timer m_Timer
 
int m_State
 
int m_StateLocal = -1
 
bool m_IsEntrance
 
bool m_IsWindow
 
bool m_IsToggle
 
bool m_IsBeingPacked = false
 
int m_OpeningMask = 0
 
int m_OpeningMaskLocal = -1
 
ref map< ref ToggleAnimations, boolm_ToggleAnimations
 
ref array< stringm_ShowAnimationsWhenPitched
 
ref array< stringm_ShowAnimationsWhenPacked
 
Object m_ClutterCutter
 
CamoNet m_CamoNet
 
vector m_HalfExtents
 
int m_MineDisarmRate = 60
 
bool m_IsActive
 
bool m_IsPastWaitingTime
 
bool m_IsDeployed
 
string m_AnimationPhaseSet
 
string m_AnimationPhaseTriggered
 
string m_AnimationPhaseUsed
 
ref array< stringm_PlaceableWaterSurfaceList
 
ref CatchingContextTrapsBase m_CatchingContext
 
const string m_PlaceableWaterType ref Timer m_PrevTimer
 DEPRECATED.
 
bool m_BaitNeeded
 DEPRECATED.
 
bool m_IsUsable
 DEPRECATED.
 
bool m_IsInProgress
 DEPRECATED.
 
EntityAI m_Bait
 DEPRECATED.
 
float m_BaitCatchProb
 
float m_NoBaitCatchProb
 DEPRECATED.
 
float m_FinalCatchProb
 DEPRECATED.
 
bool m_WaterSurfaceForSetup
 DEPRECATED.
 
ref multiMap< string, floatm_CatchesPond
 DEPRECATED.
 
ref multiMap< string, floatm_CatchesSea
 DEPRECATED.
 
ref multiMap< string, floatm_CatchesGroundAnimal
 DEPRECATED.
 

Дополнительные унаследованные члены

- Закрытые статические данные унаследованные от ItemBase
const string SEL_CLIPS_CAR = "clips_car_battery"
 
const string SEL_CLIPS_TRUCK = "clips_truck_battery"
 
const string SEL_CLIPS_DETACHED = "clips_detached"
 
const string SEL_CLIPS_FOLDED = "clips_folded"
 
const string SEL_SWITCH_ON = "switch_on"
 
const string SEL_SWITCH_OFF = "switch_off"
 
const string SEL_CORD_PLUGGED = "cord_plugged"
 
const string SEL_CORD_FOLDED = "cord_folded"
 
const string SEL_LIGHT_STATE_1 = "light_stand_by"
 
const string SEL_LIGHT_STATE_2 = "light_charging"
 
const string SEL_LIGHT_STATE_3 = "light_charged"
 
const string RED_LIGHT_GLOW = "dz\\gear\\camping\\data\\battery_charger_light_r.rvmat"
 
const string GREEN_LIGHT_GLOW = "dz\\gear\\camping\\data\\battery_charger_light_g.rvmat"
 
const string YELLOW_LIGHT_GLOW = "dz\\gear\\camping\\data\\battery_charger_light_y.rvmat"
 
const string SWITCH_LIGHT_GLOW = "dz\\gear\\camping\\data\\battery_charger_light_switch_on.rvmat"
 
const string DEFAULT_MATERIAL = "dz\\gear\\camping\\data\\battery_charger.rvmat"
 
float m_BlinkingStatusLightInterval = 0.4
 

Подробное описание

Конструктор(ы)

◆ Edible_Base()

void Edible_Base ( )
inlineprivate
22 {
23 if (HasFoodStage())
24 {
25 m_FoodStage = new FoodStage(this);
26
27 RegisterNetSyncVariableInt("m_FoodStage.m_FoodStageType", FoodStageType.NONE, FoodStageType.COUNT);
28 RegisterNetSyncVariableFloat("m_FoodStage.m_CookingTime", 0, 600, 0);
29
30 m_SoundPlaying = "";
32 RegisterNetSyncVariableInt("m_CookedByMethod", CookingMethodType.NONE, CookingMethodType.COUNT);
33 RegisterNetSyncVariableBool("m_MakeCookingSounds");
34 }
35 }
CookingMethodType
Definition Cooking.c:2
FoodStageType
Definition FoodStage.c:2
bool HasFoodStage()
Definition ItemBase.c:7299
ref FoodStage m_FoodStage
Definition Edible_Base.c:13
string m_SoundPlaying
Definition Edible_Base.c:12
CookingMethodType m_CookedByMethod
Definition Edible_Base.c:19
Definition EntityAI.c:95

Перекрестные ссылки HasFoodStage(), m_CookedByMethod, m_FoodStage и m_SoundPlaying.

Методы

◆ AfterStoreLoad()

override void AfterStoreLoad ( )
inlineprotected
290 {
291 super.AfterStoreLoad();
292
293 Synchronize();
294 }
void Synchronize()
Definition Edible_Base.c:172

Перекрестные ссылки Synchronize().

◆ BoxCerealCrunchin()

void BoxCerealCrunchin ( )
inlineprivate
4 {
5 }

◆ CanBeCooked() [1/33]

override bool CanBeCooked ( )
inlineprivate
115 {
116 return false;
117 }

◆ CanBeCooked() [2/33]

override bool CanBeCooked ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanBeCooked() [3/33]

override bool CanBeCooked ( )
inlineprivate
9 {
10 return true;
11 }

◆ CanBeCooked() [4/33]

override bool CanBeCooked ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanBeCooked() [5/33]

override bool CanBeCooked ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanBeCooked() [6/33]

override bool CanBeCooked ( )
inlineprivate
9 {
10 return false;
11 }

◆ CanBeCooked() [7/33]

override bool CanBeCooked ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanBeCooked() [8/33]

override bool CanBeCooked ( )
inlineprivate
9 {
10 return false;
11 }

◆ CanBeCooked() [9/33]

override bool CanBeCooked ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanBeCooked() [10/33]

override bool CanBeCooked ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanBeCooked() [11/33]

override bool CanBeCooked ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanBeCooked() [12/33]

override bool CanBeCooked ( )
inlineprivate
9 {
10 return false;
11 }

◆ CanBeCooked() [13/33]

override bool CanBeCooked ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanBeCooked() [14/33]

override bool CanBeCooked ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanBeCooked() [15/33]

override bool CanBeCooked ( )
inlineprivate
9 {
10 return true;
11 }

◆ CanBeCooked() [16/33]

override bool CanBeCooked ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanBeCooked() [17/33]

override bool CanBeCooked ( )
inlineprivate
9 {
10 return false;
11 }

◆ CanBeCooked() [18/33]

override bool CanBeCooked ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanBeCooked() [19/33]

override bool CanBeCooked ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanBeCooked() [20/33]

override bool CanBeCooked ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanBeCooked() [21/33]

override bool CanBeCooked ( )
inlineprivate
9 {
10 return false;
11 }

◆ CanBeCooked() [22/33]

override bool CanBeCooked ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanBeCooked() [23/33]

override bool CanBeCooked ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanBeCooked() [24/33]

override bool CanBeCooked ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanBeCooked() [25/33]

override bool CanBeCooked ( )
inlineprivate
9 {
10 return true;
11 }

◆ CanBeCooked() [26/33]

override bool CanBeCooked ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanBeCooked() [27/33]

override bool CanBeCooked ( )
inlineprivate
9 {
10 return true;
11 }

◆ CanBeCooked() [28/33]

override bool CanBeCooked ( )
inlineprivate
9 {
10 return false;
11 }

◆ CanBeCooked() [29/33]

override bool CanBeCooked ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanBeCooked() [30/33]

override bool CanBeCooked ( )
inlineprivate
9 {
10 return false;
11 }

◆ CanBeCooked() [31/33]

override bool CanBeCooked ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanBeCooked() [32/33]

override bool CanBeCooked ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanBeCooked() [33/33]

override bool CanBeCooked ( )
inlineprivate
9 {
10 return false;
11 }

◆ CanBeCookedOnStick() [1/33]

override bool CanBeCookedOnStick ( )
inlineprivate
120 {
121 return false;
122 }

◆ CanBeCookedOnStick() [2/33]

override bool CanBeCookedOnStick ( )
inlineprivate
9 {
10 return true;
11 }

◆ CanBeCookedOnStick() [3/33]

override bool CanBeCookedOnStick ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanBeCookedOnStick() [4/33]

override bool CanBeCookedOnStick ( )
inlineprivate
9 {
10 return true;
11 }

◆ CanBeCookedOnStick() [5/33]

override bool CanBeCookedOnStick ( )
inlineprivate
9 {
10 return false;
11 }

◆ CanBeCookedOnStick() [6/33]

override bool CanBeCookedOnStick ( )
inlineprivate
4 {
5 return false;
6 }

◆ CanBeCookedOnStick() [7/33]

override bool CanBeCookedOnStick ( )
inlineprivate
9 {
10 return true;
11 }

◆ CanBeCookedOnStick() [8/33]

override bool CanBeCookedOnStick ( )
inlineprivate
4 {
5 return false;
6 }

◆ CanBeCookedOnStick() [9/33]

override bool CanBeCookedOnStick ( )
inlineprivate
9 {
10 return true;
11 }

◆ CanBeCookedOnStick() [10/33]

override bool CanBeCookedOnStick ( )
inlineprivate
9 {
10 return true;
11 }

◆ CanBeCookedOnStick() [11/33]

override bool CanBeCookedOnStick ( )
inlineprivate
9 {
10 return true;
11 }

◆ CanBeCookedOnStick() [12/33]

override bool CanBeCookedOnStick ( )
inlineprivate
4 {
5 return false;
6 }

◆ CanBeCookedOnStick() [13/33]

override bool CanBeCookedOnStick ( )
inlineprivate
9 {
10 return true;
11 }

◆ CanBeCookedOnStick() [14/33]

override bool CanBeCookedOnStick ( )
inlineprivate
9 {
10 return true;
11 }

◆ CanBeCookedOnStick() [15/33]

override bool CanBeCookedOnStick ( )
inlineprivate
14 {
15 return true;
16 }

◆ CanBeCookedOnStick() [16/33]

override bool CanBeCookedOnStick ( )
inlineprivate
9 {
10 return true;
11 }

◆ CanBeCookedOnStick() [17/33]

override bool CanBeCookedOnStick ( )
inlineprivate
4 {
5 return false;
6 }

◆ CanBeCookedOnStick() [18/33]

override bool CanBeCookedOnStick ( )
inlineprivate
9 {
10 return true;
11 }

◆ CanBeCookedOnStick() [19/33]

override bool CanBeCookedOnStick ( )
inlineprivate
9 {
10 return true;
11 }

◆ CanBeCookedOnStick() [20/33]

override bool CanBeCookedOnStick ( )
inlineprivate
9 {
10 return true;
11 }

◆ CanBeCookedOnStick() [21/33]

override bool CanBeCookedOnStick ( )
inlineprivate
4 {
5 return false;
6 }

◆ CanBeCookedOnStick() [22/33]

override bool CanBeCookedOnStick ( )
inlineprivate
9 {
10 return true;
11 }

◆ CanBeCookedOnStick() [23/33]

override bool CanBeCookedOnStick ( )
inlineprivate
9 {
10 return true;
11 }

◆ CanBeCookedOnStick() [24/33]

override bool CanBeCookedOnStick ( )
inlineprivate
9 {
10 return false;
11 }

◆ CanBeCookedOnStick() [25/33]

override bool CanBeCookedOnStick ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanBeCookedOnStick() [26/33]

override bool CanBeCookedOnStick ( )
inlineprivate
9 {
10 return true;
11 }

◆ CanBeCookedOnStick() [27/33]

override bool CanBeCookedOnStick ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanBeCookedOnStick() [28/33]

override bool CanBeCookedOnStick ( )
inlineprivate
4 {
5 return false;
6 }

◆ CanBeCookedOnStick() [29/33]

override bool CanBeCookedOnStick ( )
inlineprivate
9 {
10 return true;
11 }

◆ CanBeCookedOnStick() [30/33]

override bool CanBeCookedOnStick ( )
inlineprivate
4 {
5 return false;
6 }

◆ CanBeCookedOnStick() [31/33]

override bool CanBeCookedOnStick ( )
inlineprivate
9 {
10 return true;
11 }

◆ CanBeCookedOnStick() [32/33]

override bool CanBeCookedOnStick ( )
inlineprivate
9 {
10 return true;
11 }

◆ CanBeCookedOnStick() [33/33]

override bool CanBeCookedOnStick ( )
inlineprivate
4 {
5 return false;
6 }

◆ CanBeSkinned()

override bool CanBeSkinned ( )
inlineprivate
24 {
25 if ( GetHealthLevel() == GameConstants.STATE_RUINED )
26 return false;
27
28 return true;
29 }
Definition constants.c:638
const int STATE_RUINED
Definition constants.c:807

Перекрестные ссылки GameConstants::STATE_RUINED.

◆ CanChangeToNewStage()

bool CanChangeToNewStage ( CookingMethodType cooking_method)
inlineprotected
525 {
526 return GetFoodStage().CanChangeToNewStage( cooking_method );
527 }
override FoodStage GetFoodStage()
Definition Edible_Base.c:297

Перекрестные ссылки GetFoodStage().

Используется в ProcessDecay().

◆ CanDecay() [1/33]

override bool CanDecay ( )
inlineprotected
637 {
638 return false;
639 }

◆ CanDecay() [2/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDecay() [3/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDecay() [4/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDecay() [5/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDecay() [6/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDecay() [7/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDecay() [8/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDecay() [9/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDecay() [10/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDecay() [11/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDecay() [12/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDecay() [13/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDecay() [14/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDecay() [15/33]

override bool CanDecay ( )
inlineprivate
24 {
25 return true;
26 }

◆ CanDecay() [16/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDecay() [17/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDecay() [18/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDecay() [19/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDecay() [20/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDecay() [21/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDecay() [22/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDecay() [23/33]

override bool CanDecay ( )
inlineprivate
4 {
5 return true;
6 }

◆ CanDecay() [24/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDecay() [25/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDecay() [26/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDecay() [27/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDecay() [28/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDecay() [29/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDecay() [30/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDecay() [31/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDecay() [32/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDecay() [33/33]

override bool CanDecay ( )
inlineprivate
19 {
20 return true;
21 }

◆ CanDetachAttachment() [1/2]

override bool CanDetachAttachment ( EntityAI parent)
inlineprivate
43 {
44
45 bool is_barrel = false;
46 bool is_opened_barrel = false;
47
48 // is barrel
49 if ( parent.IsKindOf("Barrel_ColorBase") )
50 {
51 is_barrel = true;
52 }
53
54 // is opened barrel
55 if ( is_barrel && parent.GetAnimationPhase("Lid") == 1 )
56 {
57 is_opened_barrel = true;
58 }
59
61 {
62 return true;
63 }
64 return false;
65 }

◆ CanDetachAttachment() [2/2]

override bool CanDetachAttachment ( EntityAI parent)
inlineprivate
43 {
44
45 bool is_barrel = false;
46 bool is_opened_barrel = false;
47
48 // is barrel
49 if ( parent.IsKindOf("Barrel_ColorBase") )
50 {
51 is_barrel = true;
52 }
53
54 // is opened barrel
55 if ( is_barrel && parent.GetAnimationPhase("Lid") == 1 )
56 {
57 is_opened_barrel = true;
58 }
59
61 {
62 return true;
63 }
64 return false;
65 }

◆ Candycane_Colorbase()

void Candycane_Colorbase ( )
inlineprivate
4 {
5 }

◆ CanItemOverheat()

override bool CanItemOverheat ( )
inlineprivate
165 {
166 return super.CanItemOverheat() && (!GetFoodStage() || (IsFoodBurned() || !GetFoodStage().CanTransitionToFoodStageType(FoodStageType.BURNED))); //for foodstaged items - either is burned, or it can't get burned
167 }
bool IsFoodBurned()
Definition Edible_Base.c:488

Перекрестные ссылки GetFoodStage() и IsFoodBurned().

◆ CanProcessDecay()

override bool CanProcessDecay ( )
inlineprotected
642 {
643 return !GetIsFrozen() && ( GetFoodStageType() != FoodStageType.ROTTEN );
644 }
FoodStageType GetFoodStageType()
Definition Edible_Base.c:442

Перекрестные ссылки GetFoodStageType().

◆ CanPutAsAttachment() [1/2]

override bool CanPutAsAttachment ( EntityAI parent)
inlineprivate
4 {
5 if(!super.CanPutAsAttachment(parent)) {return false;}
6 const int SLOTS_ARRAY = 8;
7 bool is_barrel = false;
8 bool is_opened_barrel = false;
9 bool slot_test = true;
10 string slot_names[SLOTS_ARRAY] = { "BerryR", "BerryB", "Nails", "OakBark", "BirchBark", "Lime", "Disinfectant" };
11
12
13 // is barrel
14 if ( parent.IsKindOf("Barrel_ColorBase") )
15 {
16 is_barrel = true;
17 }
18
19 // is opened barrel
20 if ( is_barrel && parent.GetAnimationPhase("Lid") == 1 )
21 {
22 is_opened_barrel = true;
23 }
24
25 // all of the barrel slots are empty
26 for ( int i = 0; i < SLOTS_ARRAY ; i++ )
27 {
28 if ( parent.FindAttachmentBySlotName(slot_names[i]) != NULL )
29 {
30 slot_test = false;
31 break;
32 }
33 }
34
35 if ( ( is_opened_barrel && slot_test ) || !is_barrel )
36 {
37 return true;
38 }
39 return false;
40 }

◆ CanPutAsAttachment() [2/2]

override bool CanPutAsAttachment ( EntityAI parent)
inlineprivate
4 {
5 if(!super.CanPutAsAttachment(parent)) {return false;}
6 const int SLOTS_ARRAY = 8;
7 bool is_barrel = false;
8 bool is_opened_barrel = false;
9 bool slot_test = true;
10 string slot_names[SLOTS_ARRAY] = { "BerryR", "BerryB", "Nails", "OakBark", "BirchBark", "Lime", "Disinfectant" };
11
12
13 // is barrel
14 if ( parent.IsKindOf("Barrel_ColorBase") )
15 {
16 is_barrel = true;
17 }
18
19 // is opened barrel
20 if ( is_barrel && parent.GetAnimationPhase("Lid") == 1 )
21 {
22 is_opened_barrel = true;
23 }
24
25 // all of the barrel slots are empty
26 for ( int i = 0; i < SLOTS_ARRAY ; i++ )
27 {
28 if ( parent.FindAttachmentBySlotName(slot_names[i]) != NULL )
29 {
30 slot_test = false;
31 break;
32 }
33 }
34
35 if ( ( is_opened_barrel && slot_test ) || !is_barrel )
36 {
37 return true;
38 }
39 return false;
40 }

◆ ChangeFoodStage()

◆ ConditionAttach() [1/2]

bool ConditionAttach ( EntityAI parent)
inlineprivate
24 {
25 //if Barrel_ColorBase
26 if ( parent.IsInherited( Barrel_ColorBase ) )
27 {
29
30 if ( barrel.IsOpen() && !barrel.FindAttachmentBySlotName( "Nails" ) && !barrel.FindAttachmentBySlotName( "OakBark" ) && !barrel.FindAttachmentBySlotName( "BirchBark" ) && !barrel.FindAttachmentBySlotName( "Lime" ) && !barrel.FindAttachmentBySlotName( "Disinfectant" ) && !barrel.FindAttachmentBySlotName( "Guts" ) )
31 {
32 return true;
33 }
34 }
35
36 return false;
37 }
Definition Barrel_ColorBase.c:2

◆ ConditionAttach() [2/2]

bool ConditionAttach ( EntityAI parent)
inlineprivate
24 {
25 //if Barrel_ColorBase
26 if ( parent.IsInherited( Barrel_ColorBase ) )
27 {
29
30 if ( barrel.IsOpen() && !barrel.FindAttachmentBySlotName( "Nails" ) && !barrel.FindAttachmentBySlotName( "OakBark" ) && !barrel.FindAttachmentBySlotName( "BirchBark" ) && !barrel.FindAttachmentBySlotName( "Lime" ) && !barrel.FindAttachmentBySlotName( "Disinfectant" ) && !barrel.FindAttachmentBySlotName( "Guts" ) )
31 {
32 return true;
33 }
34 }
35
36 return false;
37 }

◆ ConditionDetach() [1/2]

bool ConditionDetach ( EntityAI parent)
inlineprivate
40 {
41 //if Barrel_ColorBase
42 if ( parent.IsInherited( Barrel_ColorBase ) )
43 {
45
46 if ( !barrel.IsOpen() )
47 {
48 return false;
49 }
50 }
51
52 return true;
53 }

◆ ConditionDetach() [2/2]

bool ConditionDetach ( EntityAI parent)
inlineprivate
40 {
41 //if Barrel_ColorBase
42 if ( parent.IsInherited( Barrel_ColorBase ) )
43 {
45
46 if ( !barrel.IsOpen() )
47 {
48 return false;
49 }
50 }
51
52 return true;
53 }

◆ Consume()

bool Consume ( float amount,
PlayerBase consumer )
inlineprivate
92 {
93 AddQuantity(-amount, false, false);
94 OnConsume(amount, consumer);
95
96 return true;
97 }
bool AddQuantity(float value, bool destroy_config=true, bool destroy_forced=false)
add item quantity[related to varQuantity... config entry], destroy_config = true > if the quantity re...
Definition ItemBase.c:8035
void OnConsume(float amount, PlayerBase consumer)
Definition Edible_Base.c:99

Перекрестные ссылки AddQuantity() и OnConsume().

◆ EEDelete()

override void EEDelete ( EntityAI parent)
inlineprivate
45 {
46 super.EEDelete(parent);
47
49
52 }
ParticleSource m_HotVaporParticle
Definition Edible_Base.c:17
void RemoveAudio()
Definition Edible_Base.c:235
void Stop()
Legacy function for backwards compatibility with 1.14 and below.
Definition Particle.c:266

Перекрестные ссылки m_HotVaporParticle, RemoveAudio() и Particle::Stop().

◆ EEInit()

override void EEInit ( )
inlineprivate
38 {
39 super.EEInit();
40
41 UpdateVisualsEx(true); //forced init visuals, mostly for debugs and SP
42 }
void UpdateVisualsEx(bool forced=false)
Definition Edible_Base.c:85

Перекрестные ссылки UpdateVisualsEx().

◆ EEItemLocationChanged()

override void EEItemLocationChanged ( notnull InventoryLocation oldLoc,
notnull InventoryLocation newLoc )
inlineprivate

disable sounds (from cooking)

check for DirectCooking slot name

55 {
56 super.EEItemLocationChanged(oldLoc, newLoc);
57
59 if (oldLoc.GetType() == InventoryLocationType.ATTACHMENT || oldLoc.GetType() == InventoryLocationType.CARGO)
60 {
61 switch (oldLoc.GetParent().GetType())
62 {
63 case "FryingPan":
64 case "Pot":
65 case "Cauldron":
66 case "SharpWoodenStick":
67 MakeSoundsOnClient(false);
68 break;
69 }
70
72 if (oldLoc.GetSlot() > -1 && InventorySlots.GetSlotName(oldLoc.GetSlot()).Contains(DIRECT_COOKING_SLOT_NAME))
73 {
74 MakeSoundsOnClient(false);
75 }
76 }
77
78 if (oldLoc.IsValid())
80
83 }
override bool CanHaveTemperature()
Definition FireplaceBase.c:575
InventoryLocationType
types of Inventory Location
Definition InventoryLocation.c:4
const string DIRECT_COOKING_SLOT_NAME
Definition Edible_Base.c:3
void UpdateVaporParticle()
Definition Edible_Base.c:836
void ResetCookingTime()
Definition Edible_Base.c:581
void MakeSoundsOnClient(bool soundstate, CookingMethodType cookingMethod=CookingMethodType.NONE)
Definition Edible_Base.c:200
provides access to slot configuration
Definition InventorySlots.c:6
static proto native owned string GetSlotName(int id)
converts slot_id to string

Перекрестные ссылки CanHaveTemperature(), DIRECT_COOKING_SLOT_NAME, InventorySlots::GetSlotName(), MakeSoundsOnClient(), ResetCookingTime() и UpdateVaporParticle().

◆ FilterAgents()

int FilterAgents ( int agentsIn)
inlineprivate

Filter agents from the item (override on higher implements)

109 {
110 return agentsIn;
111 }

◆ GetBaitEffectivity()

override float GetBaitEffectivity ( )
inlineprotected
934 {
935 float ret = super.GetBaitEffectivity();
936
937 if (IsFoodRotten())
938 {
939 ret *= 0.5;
940 }
941
942 return ret;
943 }
bool IsFoodRotten()
Definition Edible_Base.c:498

Перекрестные ссылки IsFoodRotten().

◆ GetCookingTime()

float GetCookingTime ( )
inlineprotected
569 {
570 return GetFoodStage().GetCookingTime();
571 }

Перекрестные ссылки GetFoodStage().

◆ GetDebugActions()

override void GetDebugActions ( out TSelectableActionInfoArrayEx outputList)
inlineprotected
877 {
878 super.GetDebugActions(outputList);
879
880 if (GetFoodStage())
881 {
882 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.FOOD_STAGE_PREV, "Food Stage Prev", FadeColors.WHITE));
883 outputList.Insert(new TSelectableActionInfoWithColor(SAT_DEBUG_ACTION, EActions.FOOD_STAGE_NEXT, "Food Stage Next", FadeColors.WHITE));
884 }
885 }
Param4< int, int, string, int > TSelectableActionInfoWithColor
Definition EntityAI.c:97
EActions
Definition EActions.c:2
const int SAT_DEBUG_ACTION
Definition constants.c:431

Перекрестные ссылки GetFoodStage() и SAT_DEBUG_ACTION.

◆ GetDebugText()

override string GetDebugText ( )
inlineprotected
918 {
919 string debug_output;
920
921 debug_output = super.GetDebugText();
922
923 debug_output+="m_CookedByMethod:"+m_CookedByMethod+"\n";
924 debug_output+="m_MakeCookingSounds:"+m_MakeCookingSounds+"\n";
925
926 return debug_output;
927 }
bool m_MakeCookingSounds
Definition Edible_Base.c:9

Перекрестные ссылки m_CookedByMethod и m_MakeCookingSounds.

◆ GetDecayDelta()

float GetDecayDelta ( )
inlineprotected
951 {
952 return m_DecayDelta;
953 }
float m_DecayDelta
Definition Edible_Base.c:15

Перекрестные ссылки m_DecayDelta.

◆ GetDecayTimer()

float GetDecayTimer ( )
inlineprotected
946 {
947 return m_DecayTimer;
948 }
float m_DecayTimer
Definition Edible_Base.c:14

Перекрестные ссылки m_DecayTimer.

◆ GetFoodAgents()

static int GetFoodAgents ( ItemBase item,
string classname = "",
int food_stage = 0 )
inlinestaticprotected
405 {
407 if (food_item && food_item.GetFoodStage())
408 {
409 return FoodStage.GetAgents(food_item.GetFoodStage());
410 }
411 else if (classname != "" && food_stage)
412 {
413 return FoodStage.GetAgents(null, food_stage, classname);
414 }
415 string class_path = string.Format("cfgVehicles %1 Nutrition", classname);
416 return GetGame().ConfigGetInt( class_path + " agents" );
417 }
Definition Edible_Base.c:2
proto native CGame GetGame()

Перекрестные ссылки GetGame().

Используется в GetNutritionalProfile().

◆ GetFoodDigestibility()

static float GetFoodDigestibility ( ItemBase item,
string classname = "",
int food_stage = 0 )
inlinestaticprotected
420 {
422 if (food_item && food_item.GetFoodStage())
423 {
424 return FoodStage.GetDigestibility(food_item.GetFoodStage());
425 }
426 else if (classname != "" && food_stage)
427 {
428 return FoodStage.GetDigestibility(null, food_stage, classname);
429 }
430 string class_path = string.Format("cfgVehicles %1 Nutrition", classname);
431 return GetGame().ConfigGetInt( class_path + " digestibility" );
432 }

Перекрестные ссылки GetGame().

Используется в GetNutritionalProfile().

◆ GetFoodEnergy()

static float GetFoodEnergy ( ItemBase item,
string classname = "",
int food_stage = 0 )
inlinestaticprotected
344 {
346 if (food_item && food_item.GetFoodStage())
347 {
348 return FoodStage.GetEnergy(food_item.GetFoodStage());
349 }
350 else if (classname != "" && food_stage)
351 {
352 return FoodStage.GetEnergy(null, food_stage, classname);
353 }
354 string class_path = string.Format("cfgVehicles %1 Nutrition", classname);
355 return GetGame().ConfigGetFloat( class_path + " energy" );
356 }

Перекрестные ссылки GetGame().

Используется в GetNutritionalProfile().

◆ GetFoodNutritionalIndex()

static float GetFoodNutritionalIndex ( ItemBase item,
string classname = "",
int food_stage = 0 )
inlinestaticprotected
374 {
376 if (food_item && food_item.GetFoodStage())
377 {
378 return FoodStage.GetNutritionalIndex(food_item.GetFoodStage());
379 }
380 else if (classname != "" && food_stage)
381 {
382 return FoodStage.GetNutritionalIndex(null, food_stage, classname);
383 }
384 string class_path = string.Format("cfgVehicles %1 Nutrition", classname);
385 return GetGame().ConfigGetFloat( class_path + " nutritionalIndex" );
386
387 }

Перекрестные ссылки GetGame().

Используется в GetNutritionalProfile().

◆ GetFoodStage()

◆ GetFoodStageName()

string GetFoodStageName ( FoodStageType food_stage_type)
inlineprotected
520 {
521 return GetFoodStage().GetFoodStageName( food_stage_type );
522 }

Перекрестные ссылки GetFoodStage().

◆ GetFoodStageType()

FoodStageType GetFoodStageType ( )
inlineprotected
443 {
444 return GetFoodStage().GetFoodStageType();
445 }

Перекрестные ссылки GetFoodStage().

Используется в CanProcessDecay(), OnAction(), ProcessDecay() и RefreshAudio().

◆ GetFoodTotalVolume()

static float GetFoodTotalVolume ( ItemBase item,
string classname = "",
int food_stage = 0 )
inlinestaticprotected
328 {
330 if (food_item && food_item.GetFoodStage())
331 {
332 return FoodStage.GetFullnessIndex(food_item.GetFoodStage());
333 }
334 else if (classname != "" && food_stage)
335 {
336 return FoodStage.GetFullnessIndex(null, food_stage, classname);
337 }
338 string class_path = string.Format("cfgVehicles %1 Nutrition", classname);
339 return GetGame().ConfigGetFloat( class_path + " fullnessIndex" );
340
341 }

Перекрестные ссылки GetGame().

Используется в GetNutritionalProfile().

◆ GetFoodToxicity()

static float GetFoodToxicity ( ItemBase item,
string classname = "",
int food_stage = 0 )
inlinestaticprotected
390 {
392 if (food_item && food_item.GetFoodStage())
393 {
394 return FoodStage.GetToxicity(food_item.GetFoodStage());
395 }
396 else if (classname != "" && food_stage)
397 {
398 return FoodStage.GetToxicity(null, food_stage, classname);
399 }
400 string class_path = string.Format("cfgVehicles %1 Nutrition", classname);
401 return GetGame().ConfigGetFloat( class_path + " toxicity" );
402 }

Перекрестные ссылки GetGame().

Используется в GetNutritionalProfile().

◆ GetFoodWater()

static float GetFoodWater ( ItemBase item,
string classname = "",
int food_stage = 0 )
inlinestaticprotected
359 {
361 if (food_item && food_item.GetFoodStage())
362 {
363 return FoodStage.GetWater(food_item.GetFoodStage());
364 }
365 else if (classname != "" && food_stage)
366 {
367 return FoodStage.GetWater(null, food_stage, classname);
368 }
369 string class_path = string.Format("cfgVehicles %1 Nutrition", classname);
370 return GetGame().ConfigGetFloat( class_path + " water" );
371 }

Перекрестные ссылки GetGame().

Используется в GetNutritionalProfile().

◆ GetLastDecayStage()

FoodStageType GetLastDecayStage ( )
inlineprotected
956 {
957 return m_LastDecayStage;
958 }
FoodStageType m_LastDecayStage
Definition Edible_Base.c:16

Перекрестные ссылки m_LastDecayStage.

◆ GetNextFoodStageType()

FoodStageType GetNextFoodStageType ( CookingMethodType cooking_method)
inlineprotected
515 {
516 return GetFoodStage().GetNextFoodStageType( cooking_method );
517 }

Перекрестные ссылки GetFoodStage().

Используется в RefreshAudio().

◆ GetNutritionalProfile()

static NutritionalProfile GetNutritionalProfile ( ItemBase item,
string classname = "",
int food_stage = 0 )
inlinestaticprotected
435 {
437 }
static float GetFoodDigestibility(ItemBase item, string classname="", int food_stage=0)
Definition Edible_Base.c:419
static float GetFoodTotalVolume(ItemBase item, string classname="", int food_stage=0)
Definition Edible_Base.c:327
static float GetFoodEnergy(ItemBase item, string classname="", int food_stage=0)
Definition Edible_Base.c:343
static float GetFoodToxicity(ItemBase item, string classname="", int food_stage=0)
Definition Edible_Base.c:389
static float GetFoodWater(ItemBase item, string classname="", int food_stage=0)
Definition Edible_Base.c:358
static float GetFoodNutritionalIndex(ItemBase item, string classname="", int food_stage=0)
Definition Edible_Base.c:373
static int GetFoodAgents(ItemBase item, string classname="", int food_stage=0)
Definition Edible_Base.c:404
Definition NutritionalProfile.c:2

Перекрестные ссылки GetFoodAgents(), GetFoodDigestibility(), GetFoodEnergy(), GetFoodNutritionalIndex(), GetFoodTotalVolume(), GetFoodToxicity() и GetFoodWater().

Используется в AddToStomach().

◆ GetTemperatureFreezeTime()

override float GetTemperatureFreezeTime ( )
inlineprivate
125 {
126 if (GetFoodStage())
127 {
128 switch (m_FoodStage.GetFoodStageType())
129 {
130 case FoodStageType.DRIED:
131 return super.GetTemperatureFreezeTime() * GameConstants.TEMPERATURE_FREEZE_TIME_COEF_DRIED;
132
133 case FoodStageType.BURNED:
134 return super.GetTemperatureFreezeTime() * GameConstants.TEMPERATURE_FREEZE_TIME_COEF_BURNED;
135
136 default:
137 return super.GetTemperatureFreezeTime();
138 }
139 }
140
141 return super.GetTemperatureFreezeTime();
142 }
static const float TEMPERATURE_FREEZE_TIME_COEF_BURNED
Definition constants.c:894
static const float TEMPERATURE_FREEZE_TIME_COEF_DRIED
Definition constants.c:893

Перекрестные ссылки GetFoodStage(), m_FoodStage, GameConstants::TEMPERATURE_FREEZE_TIME_COEF_BURNED и GameConstants::TEMPERATURE_FREEZE_TIME_COEF_DRIED.

◆ GetTemperatureThawTime()

override float GetTemperatureThawTime ( )
inlineprivate
145 {
146 if (GetFoodStage())
147 {
148 switch (m_FoodStage.GetFoodStageType())
149 {
150 case FoodStageType.DRIED:
151 return super.GetTemperatureThawTime() * GameConstants.TEMPERATURE_THAW_TIME_COEF_DRIED;
152
153 case FoodStageType.BURNED:
154 return super.GetTemperatureThawTime() * GameConstants.TEMPERATURE_THAW_TIME_COEF_BURNED;
155
156 default:
157 return super.GetTemperatureThawTime();
158 }
159 }
160
161 return super.GetTemperatureThawTime();
162 }
static const float TEMPERATURE_THAW_TIME_COEF_DRIED
Definition constants.c:896
static const float TEMPERATURE_THAW_TIME_COEF_BURNED
Definition constants.c:895

Перекрестные ссылки GetFoodStage(), m_FoodStage, GameConstants::TEMPERATURE_THAW_TIME_COEF_BURNED и GameConstants::TEMPERATURE_THAW_TIME_COEF_DRIED.

◆ HandleFoodStageChangeAgents() [1/3]

void HandleFoodStageChangeAgents ( FoodStageType stageOld,
FoodStageType stageNew )
inlineprotected

removes select agents on foodstage transitions

549 {
550 switch (stageNew)
551 {
552 case FoodStageType.BAKED:
553 case FoodStageType.BOILED:
554 case FoodStageType.DRIED:
555 RemoveAllAgentsExcept(eAgents.BRAIN|eAgents.HEAVYMETAL);
556 break;
557
558 case FoodStageType.BURNED:
559 RemoveAllAgentsExcept(eAgents.HEAVYMETAL);
560 break;
561 }
562 }
eAgents
Definition EAgents.c:3
override void RemoveAllAgentsExcept(int agents_to_keep_mask)
Definition ItemBase.c:8626

Перекрестные ссылки RemoveAllAgentsExcept().

Используется в OnFoodStageChange().

◆ HandleFoodStageChangeAgents() [2/3]

override void HandleFoodStageChangeAgents ( FoodStageType stageOld,
FoodStageType stageNew )
inlineprivate
24 {
25 int keepAgentsRnd = 0;
27 {
28 keepAgentsRnd |= eAgents.SALMONELLA;
29 }
30
31 switch (stageNew)
32 {
33 case FoodStageType.BAKED:
34 case FoodStageType.BOILED:
35 case FoodStageType.DRIED:
37 break;
38
39 case FoodStageType.BURNED:
40 RemoveAllAgentsExcept(eAgents.SALMONELLA|eAgents.HEAVYMETAL);
41 break;
42 }
43 }
Definition EnMath.c:7
const float SALMONELLA_RETENTION_PREDATOR
Definition constants.c:982
static float RandomFloat01()
Returns a random float number between and min [inclusive] and max [inclusive].
Definition EnMath.c:126

Перекрестные ссылки Math::RandomFloat01(), RemoveAllAgentsExcept() и GameConstants::SALMONELLA_RETENTION_PREDATOR.

◆ HandleFoodStageChangeAgents() [3/3]

override void HandleFoodStageChangeAgents ( FoodStageType stageOld,
FoodStageType stageNew )
inlineprivate
24 {
25 int keepAgentsRnd = 0;
27 {
28 keepAgentsRnd |= eAgents.SALMONELLA;
29 }
30
31 switch (stageNew)
32 {
33 case FoodStageType.BAKED:
34 case FoodStageType.BOILED:
35 case FoodStageType.DRIED:
37 break;
38
39 case FoodStageType.BURNED:
40 RemoveAllAgentsExcept(eAgents.SALMONELLA|eAgents.HEAVYMETAL);
41 break;
42 }
43 }

Перекрестные ссылки Math::RandomFloat01(), RemoveAllAgentsExcept() и GameConstants::SALMONELLA_RETENTION_PREDATOR.

◆ HumanSteakMeat()

void HumanSteakMeat ( )
inlineprivate
4 {
5 InsertAgent(eAgents.BRAIN, 1);
6 }
override void InsertAgent(int agent, float count=1)
Definition ItemBase.c:8631

Перекрестные ссылки InsertAgent().

◆ IsCorpse() [1/8]

override bool IsCorpse ( )
inlineprotected
309 {
310 return false;
311 }

Используется в ProcessDecay().

◆ IsCorpse() [2/8]

override bool IsCorpse ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsCorpse() [3/8]

override bool IsCorpse ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsCorpse() [4/8]

override bool IsCorpse ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsCorpse() [5/8]

override bool IsCorpse ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsCorpse() [6/8]

override bool IsCorpse ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsCorpse() [7/8]

override bool IsCorpse ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsCorpse() [8/8]

override bool IsCorpse ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsFoodBaked()

bool IsFoodBaked ( )
inlineprotected
459 {
460 if ( GetFoodStage() )
461 {
462 return GetFoodStage().IsFoodBaked();
463 }
464
465 return false;
466 }

Перекрестные ссылки GetFoodStage().

◆ IsFoodBoiled()

bool IsFoodBoiled ( )
inlineprotected
469 {
470 if ( GetFoodStage() )
471 {
472 return GetFoodStage().IsFoodBoiled();
473 }
474
475 return false;
476 }

Перекрестные ссылки GetFoodStage().

◆ IsFoodBurned()

bool IsFoodBurned ( )
inlineprotected
489 {
490 if ( GetFoodStage() )
491 {
492 return GetFoodStage().IsFoodBurned();
493 }
494
495 return false;
496 }

Перекрестные ссылки GetFoodStage().

Используется в CanItemOverheat().

◆ IsFoodDried()

bool IsFoodDried ( )
inlineprotected
479 {
480 if ( GetFoodStage() )
481 {
482 return GetFoodStage().IsFoodDried();
483 }
484
485 return false;
486 }

Перекрестные ссылки GetFoodStage().

◆ IsFoodRaw()

bool IsFoodRaw ( )
inlineprotected
449 {
450 if ( GetFoodStage() )
451 {
452 return GetFoodStage().IsFoodRaw();
453 }
454
455 return false;
456 }

Перекрестные ссылки GetFoodStage().

◆ IsFoodRotten()

bool IsFoodRotten ( )
inlineprotected
499 {
500 if ( GetFoodStage() )
501 {
502 return GetFoodStage().IsFoodRotten();
503 }
504
505 return false;
506 }

Перекрестные ссылки GetFoodStage().

Используется в GetBaitEffectivity().

◆ IsFruit() [1/3]

override bool IsFruit ( )
inlineprotected
314 {
315 return false;
316 }

Используется в ProcessDecay().

◆ IsFruit() [2/3]

override bool IsFruit ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsFruit() [3/3]

override bool IsFruit ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsMeat() [1/24]

override bool IsMeat ( )
inlineprotected
304 {
305 return false;
306 }

Используется в CAContinuousTimeCooking::Execute() и ProcessDecay().

◆ IsMeat() [2/24]

override bool IsMeat ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsMeat() [3/24]

override bool IsMeat ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsMeat() [4/24]

override bool IsMeat ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsMeat() [5/24]

override bool IsMeat ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsMeat() [6/24]

override bool IsMeat ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsMeat() [7/24]

override bool IsMeat ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsMeat() [8/24]

override bool IsMeat ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsMeat() [9/24]

override bool IsMeat ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsMeat() [10/24]

override bool IsMeat ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsMeat() [11/24]

override bool IsMeat ( )
inlineprivate
19 {
20 return true;
21 }

◆ IsMeat() [12/24]

override bool IsMeat ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsMeat() [13/24]

override bool IsMeat ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsMeat() [14/24]

override bool IsMeat ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsMeat() [15/24]

override bool IsMeat ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsMeat() [16/24]

override bool IsMeat ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsMeat() [17/24]

override bool IsMeat ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsMeat() [18/24]

override bool IsMeat ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsMeat() [19/24]

override bool IsMeat ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsMeat() [20/24]

override bool IsMeat ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsMeat() [21/24]

override bool IsMeat ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsMeat() [22/24]

override bool IsMeat ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsMeat() [23/24]

override bool IsMeat ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsMeat() [24/24]

override bool IsMeat ( )
inlineprivate
14 {
15 return true;
16 }

◆ IsMushroom()

override bool IsMushroom ( )
inlineprotected
319 {
320 return false;
321 }

Используется в ProcessDecay().

◆ MakeSoundsOnClient()

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

Перекрестные ссылки m_CookedByMethod, m_MakeCookingSounds и Synchronize().

Используется в EEItemLocationChanged().

◆ OnAction()

override bool OnAction ( int action_id,
Man player,
ParamsReadContext ctx )
inlineprotected
888 {
889 super.OnAction(action_id, player, ctx);
890
891 if ( GetGame().IsServer() )
892 {
893 if ( action_id == EActions.FOOD_STAGE_PREV )
894 {
896 if (food_stage_prev <= 0)
897 {
898 food_stage_prev = FoodStageType.COUNT - 1;
899 }
901 return true;
902 }
903 else if ( action_id == EActions.FOOD_STAGE_NEXT )
904 {
906 if (food_stage_next >= FoodStageType.COUNT )
907 {
909 }
911 return true;
912 }
913 }
914 return false;
915 }
void ChangeFoodStage(FoodStageType new_food_stage_type)
Definition Edible_Base.c:509

Перекрестные ссылки ChangeFoodStage(), GetFoodStageType() и GetGame().

◆ OnConsume() [1/3]

void OnConsume ( float amount,
PlayerBase consumer )
inlineprivate
100 {
102 {
103 consumer.ProcessDirectDamage(DamageType.CUSTOM, this, "", "EnviroDmg", "0 0 0", PlayerConstants.CONSUMPTION_DAMAGE_PER_BITE);
104 }
105 }
DamageType
exposed from C++ (do not change)
Definition DamageSystem.c:11
Definition PlayerConstants.c:2
static const float CONSUMPTION_DAMAGE_PER_BITE
Definition PlayerConstants.c:135
static const float CONSUMPTION_DAMAGE_TEMP_THRESHOLD
Definition PlayerConstants.c:136

Перекрестные ссылки PlayerConstants::CONSUMPTION_DAMAGE_PER_BITE и PlayerConstants::CONSUMPTION_DAMAGE_TEMP_THRESHOLD.

Используется в Consume().

◆ OnConsume() [2/3]

override void OnConsume ( float amount,
PlayerBase consumer )
inlineprivate
12 {
13 if (!consumer.GetModifiersManager().IsModifierActive(eModifiers.MDF_CHARCOAL))
14 consumer.GetModifiersManager().ActivateModifier(eModifiers.MDF_CHARCOAL);
15
16 }
eModifiers
Definition eModifiers.c:2

◆ OnConsume() [3/3]

override void OnConsume ( float amount,
PlayerBase consumer )
inlineprivate
12 {
13 if (consumer.GetModifiersManager().IsModifierActive(eModifiers.MDF_PAINKILLERS)) // effectively resets the timer
14 consumer.GetModifiersManager().DeactivateModifier(eModifiers.MDF_PAINKILLERS);
15
16 consumer.GetModifiersManager().ActivateModifier(eModifiers.MDF_PAINKILLERS);
17 }

◆ OnFoodStageChange()

void OnFoodStageChange ( FoodStageType stageOld,
FoodStageType stageNew )
inlineprotected

called on server

542 {
544 UpdateVisualsEx(); //performed on server only
545 }
void HandleFoodStageChangeAgents(FoodStageType stageOld, FoodStageType stageNew)
removes select agents on foodstage transitions
Definition Edible_Base.c:548

Перекрестные ссылки HandleFoodStageChangeAgents() и UpdateVisualsEx().

◆ OnStoreLoad()

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprotected
259 {
260 if (!super.OnStoreLoad(ctx, version))
261 return false;
262
263 if (GetFoodStage())
264 {
265 if (!GetFoodStage().OnStoreLoad(ctx, version))
266 return false;
267 }
268
269 if (version >= 115)
270 {
271 if (!ctx.Read(m_DecayTimer))
272 {
273 m_DecayTimer = 0.0;
274 return false;
275 }
276 if (!ctx.Read(m_LastDecayStage))
277 {
279 return false;
280 }
281 }
282
283 UpdateVisualsEx(true); //forced init visuals
284 Synchronize();
285
286 return true;
287 }
override bool OnStoreLoad(ParamsReadContext ctx, int version)
Definition Edible_Base.c:258

Перекрестные ссылки GetFoodStage(), m_DecayTimer, m_LastDecayStage, OnStoreLoad(), Synchronize() и UpdateVisualsEx().

Используется в OnStoreLoad().

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext ctx)
inlineprotected
245 {
246 super.OnStoreSave(ctx);
247
248 if (GetFoodStage())
249 {
250 GetFoodStage().OnStoreSave(ctx);
251 }
252
253 // food decay
254 ctx.Write(m_DecayTimer);
255 ctx.Write(m_LastDecayStage);
256 }

Перекрестные ссылки GetFoodStage(), m_DecayTimer и m_LastDecayStage.

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )
inlineprivate
178 {
179 super.OnVariablesSynchronized();
180
181 //UpdateVisualsEx(); //performed on client only
182
183 //update audio
185 {
186 RefreshAudio();
187 }
188 else
189 {
190 RemoveAudio();
191 }
192
193 if (CanHaveTemperature())
195 }
void RefreshAudio()
Definition Edible_Base.c:208

Перекрестные ссылки CanHaveTemperature(), m_MakeCookingSounds, RefreshAudio(), RemoveAudio() и UpdateVaporParticle().

◆ OnWasAttached()

override void OnWasAttached ( EntityAI parent,
int slot_id )
inlineprivate
19 {
20 super.OnWasAttached(parent, slot_id);
21
22 if (InventorySlots.GetSlotName(slot_id) == "Bait")
23 {
24 SetAnimationPhase("bait_unhooked",1);
25 SetAnimationPhase("bait_hooked",0);
26 }
27 }

Перекрестные ссылки InventorySlots::GetSlotName().

◆ OnWasDetached()

override void OnWasDetached ( EntityAI parent,
int slot_id )
inlineprivate
30 {
31 super.OnWasDetached(parent, slot_id);
32
33 if (InventorySlots.GetSlotName(slot_id) == "Bait")
34 {
35 SetAnimationPhase("bait_unhooked",0);
36 SetAnimationPhase("bait_hooked",1);
37 }
38 }

Перекрестные ссылки InventorySlots::GetSlotName().

◆ ProcessDecay()

override void ProcessDecay ( float delta,
bool hasRootAsPlayer )
inlineprotected
647 {
648 m_DecayDelta = 0.0;
649
650 delta *= DayZGame.Cast(GetGame()).GetFoodDecayModifier();
651 m_DecayDelta += ( 1 + ( 1 - GetHealth01( "", "" ) ) );
652 if ( hasRootAsPlayer )
654
655 /*Print( "-------------------------" );
656 Print( this );
657 Print( m_DecayTimer );
658 Print( m_DecayDelta );
659 Print( m_LastDecayStage );*/
660
661 if ( IsFruit() || IsMushroom() )
662 {
663 // fruit, vegetables and mushrooms
665 {
666 switch ( GetFoodStageType() )
667 {
668 case FoodStageType.RAW:
671 break;
672
673 case FoodStageType.BOILED:
676 break;
677
678 case FoodStageType.BAKED:
681 break;
682
683 case FoodStageType.DRIED:
684 case FoodStageType.BURNED:
685 case FoodStageType.ROTTEN:
686 default:
687 m_DecayTimer = -1;
689 return;
690 }
691
692 //m_DecayTimer = m_DecayTimer / 1000.0;
693 }
694
696
697 if ( m_DecayTimer <= 0 )
698 {
699 if ( m_LastDecayStage != FoodStageType.NONE )
700 {
701 // switch to decayed stage
702 if ( ( m_LastDecayStage == FoodStageType.BOILED ) || ( m_LastDecayStage == FoodStageType.BAKED ) )
703 {
705 }
706 if ( m_LastDecayStage == FoodStageType.RAW )
707 {
708 int rng = Math.RandomIntInclusive( 0, 100 );
710 {
712 }
713 else
714 {
715 if ( CanChangeToNewStage( FoodStageType.DRIED ) )
716 {
718 }
719 else
720 {
722 }
723 }
724 }
725 }
726 }
727
728 }
729 else if ( IsMeat() )
730 {
731 // meat
733 {
734 switch ( GetFoodStageType() )
735 {
736 case FoodStageType.RAW:
739 break;
740
741 case FoodStageType.BOILED:
744 break;
745
746 case FoodStageType.BAKED:
749 break;
750
751 case FoodStageType.DRIED:
754 break;
755
756 case FoodStageType.BURNED:
757 case FoodStageType.ROTTEN:
758 default:
759 m_DecayTimer = -1;
761 return;
762 }
763 }
764
766
767 if ( m_DecayTimer <= 0 )
768 {
769 if ( m_LastDecayStage != FoodStageType.NONE )
770 {
771 // switch to decayed stage
772 if ( ( m_LastDecayStage == FoodStageType.DRIED ) || ( m_LastDecayStage == FoodStageType.RAW ) || ( m_LastDecayStage == FoodStageType.BOILED ) || ( m_LastDecayStage == FoodStageType.BAKED ) )
773 {
775 }
776 }
777 }
778 }
779 else if ( IsCorpse() )
780 {
781 // corpse
783 {
784 switch ( GetFoodStageType() )
785 {
786 case FoodStageType.RAW:
789 break;
790
791 case FoodStageType.BURNED:
792 case FoodStageType.ROTTEN:
793 default:
794 m_DecayTimer = -1;
796 return;
797 }
798 }
799
801
802 if ( m_DecayTimer <= 0 )
803 {
804 if ( m_LastDecayStage != FoodStageType.NONE )
805 {
806 // switch to decayed stage
807 if ( ( m_LastDecayStage == FoodStageType.DRIED ) || ( m_LastDecayStage == FoodStageType.RAW ) || ( m_LastDecayStage == FoodStageType.BOILED ) || ( m_LastDecayStage == FoodStageType.BAKED ) )
808 {
810 }
811 }
812 }
813 }
814 else
815 {
816 // opened cans
818
819 if ( ( m_DecayTimer <= 0 ) && ( m_LastDecayStage == FoodStageType.NONE ) )
820 {
823 //m_DecayTimer = m_DecayTimer / 1000.0;
824 }
825 else
826 {
827 if ( m_DecayTimer <= 0 )
828 {
829 InsertAgent(eAgents.FOOD_POISON, 1);
830 m_DecayTimer = -1;
831 }
832 }
833 }
834 }
bool CanChangeToNewStage(CookingMethodType cooking_method)
Definition Edible_Base.c:524
override bool IsCorpse()
Definition Edible_Base.c:308
override bool IsMushroom()
Definition Edible_Base.c:318
override bool IsFruit()
Definition Edible_Base.c:313
override bool IsMeat()
Definition Edible_Base.c:303
const float DECAY_FOOD_CAN_OPEN
Definition constants.c:996
const float DECAY_FOOD_BOILED_MEAT
Definition constants.c:991
const float DECAY_FOOD_RAW_CORPSE
Definition constants.c:989
const float DECAY_FOOD_RAW_FRVG
Definition constants.c:990
const int DECAY_TIMER_RANDOM_PERCENTAGE
Definition constants.c:998
const float DECAY_FOOD_BOILED_FRVG
Definition constants.c:992
const float DECAY_FOOD_RAW_MEAT
Definition constants.c:988
const float DECAY_FOOD_BAKED_FRVG
Definition constants.c:994
const float DECAY_FOOD_BAKED_MEAT
Definition constants.c:993
const float DECAY_RATE_ON_PLAYER
Definition constants.c:999
const int DECAY_FOOD_FRVG_DRIED_CHANCE
Definition constants.c:997
const float DECAY_FOOD_DRIED_MEAT
Definition constants.c:995
static int RandomIntInclusive(int min, int max)
Returns a random int number between and min [inclusive] and max [inclusive].
Definition EnMath.c:54

Перекрестные ссылки CanChangeToNewStage(), ChangeFoodStage(), 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, GetFoodStageType(), GetGame(), InsertAgent(), IsCorpse(), IsFruit(), IsMeat(), IsMushroom(), m_DecayDelta, m_DecayTimer, m_LastDecayStage, Math::RandomFloat01() и Math::RandomIntInclusive().

◆ RefreshAudio()

void RefreshAudio ( )
inlineprotected
209 {
210 string soundName = "";
211
213
214 switch (GetFoodStageType())
215 {
216 case FoodStageType.RAW:
218 if (nextFoodState == FoodStageType.BOILED)
219 soundName = "";
220 break;
221 case FoodStageType.BAKED:
223 break;
224 case FoodStageType.BURNED:
226 break;
227 default:
228 soundName = "";
229 break;
230 }
231
233 }
const string SOUND_BURNING_DONE
Definition Edible_Base.c:7
const string SOUND_BAKING_DONE
Definition Edible_Base.c:6
FoodStageType GetNextFoodStageType(CookingMethodType cooking_method)
Definition Edible_Base.c:514
const string SOUND_BAKING_START
Definition Edible_Base.c:5
void SoundCookingStart(string sound_name)
Definition Edible_Base.c:611

Перекрестные ссылки GetFoodStageType(), GetNextFoodStageType(), m_CookedByMethod, SOUND_BAKING_DONE, SOUND_BAKING_START, SOUND_BURNING_DONE и SoundCookingStart().

Используется в OnVariablesSynchronized().

◆ RemoveAudio()

void RemoveAudio ( )
inlineprotected
236 {
237 m_MakeCookingSounds = false;
239 }
void SoundCookingStop()
Definition Edible_Base.c:624

Перекрестные ссылки m_MakeCookingSounds и SoundCookingStop().

Используется в EEDelete() и OnVariablesSynchronized().

◆ ReplaceEdibleWithNew()

void ReplaceEdibleWithNew ( string typeName)
inlineprotected
592 {
593 PlayerBase player = PlayerBase.Cast(GetHierarchyRootPlayer());
594 if (player)
595 {
597 player.ServerReplaceItemInHandsWithNew(lambda);
598 }
599 else
600 Error("ReplaceEdibleWithNew - cannot use edible without player");
601 }
Edible_Base ItemBase ReplaceEdibleWithNewLambda(EntityAI old_item, string new_item_type, PlayerBase player)
Definition Edible_Base.c:971
Definition PlayerBaseClient.c:2
void Error(string err)
Messagebox with error message.
Definition EnDebug.c:90

Перекрестные ссылки Error() и ReplaceEdibleWithNewLambda().

Используется в BakedBeansCan::Open(), PeachesCan::Open(), SardinesCan::Open(), SpaghettiCan::Open(), TacticalBaconCan::Open(), TunaCan::Open(), DogFoodCan::Open(), CatFoodCan::Open(), PorkCan::Open(), Lunchmeat::Open(), CrabCan::Open(), UnknownFoodCan::Open(), Pajka::Open(), Pate::Open() и BrisketSpread::Open().

◆ ResetCookingTime()

void ResetCookingTime ( )
inlineprotected
582 {
583 if (GetFoodStage())
584 {
585 GetFoodStage().SetCookingTime(0);
586 Synchronize();
587 }
588 }

Перекрестные ссылки GetFoodStage() и Synchronize().

Используется в EEItemLocationChanged().

◆ SetActions() [1/32]

override void SetActions ( )
inlineprotected
604 {
605 super.SetActions();
606
607 AddAction(ActionAttach);
609 }
void ActionDetach()
Definition ActionDetach.c:10
void AddAction(typename actionName)
Definition AdvancedCommunication.c:220

Перекрестные ссылки ActionDetach() и AddAction().

◆ SetActions() [2/32]

override void SetActions ( )
inlineprivate
46 {
47 super.SetActions();
48
49 AddAction(ActionForceFeed);
51
54 }
Definition ActionCreateIndoorFireplace.c:2
Definition ActionCreateIndoorOven.c:2
Definition ActionEatMeat.c:10

Перекрестные ссылки AddAction().

◆ SetActions() [3/32]

override void SetActions ( )
inlineprivate
29 {
30 super.SetActions();
31
32 AddAction(ActionForceFeed);
34 }

Перекрестные ссылки AddAction().

◆ SetActions() [4/32]

override void SetActions ( )
inlineprivate
24 {
25 super.SetActions();
26
27 AddAction(ActionForceFeed);
29
32 }

Перекрестные ссылки AddAction().

◆ SetActions() [5/32]

override void SetActions ( )
inlineprivate
8 {
9 super.SetActions();
10
11 AddAction(ActionForceFeed);
13 }
Definition ActionEatCereal.c:2

Перекрестные ссылки AddAction().

◆ SetActions() [6/32]

override void SetActions ( )
inlineprivate
8 {
9 super.SetActions();
10
12 AddAction(ActionForceFeed);
13 }
Definition ActionEat.c:65

Перекрестные ссылки AddAction().

◆ SetActions() [7/32]

override void SetActions ( )
inlineprivate
56 {
57 super.SetActions();
58
59 AddAction(ActionForceFeed);
61 }

Перекрестные ссылки AddAction().

◆ SetActions() [8/32]

override void SetActions ( )
inlineprivate
24 {
25 super.SetActions();
26
27 AddAction(ActionForceFeed);
29
32 }

Перекрестные ссылки AddAction().

◆ SetActions() [9/32]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
6
7 AddAction(ActionForceConsumeSingle);
9 }
Definition ActionEatTabletFromWrapper.c:2

Перекрестные ссылки AddAction().

◆ SetActions() [10/32]

override void SetActions ( )
inlineprivate
24 {
25 super.SetActions();
26
27 AddAction(ActionForceFeed);
29
32 }

Перекрестные ссылки AddAction().

◆ SetActions() [11/32]

override void SetActions ( )
inlineprivate
24 {
25 super.SetActions();
26
27 AddAction(ActionForceFeed);
29
32 }

Перекрестные ссылки AddAction().

◆ SetActions() [12/32]

override void SetActions ( )
inlineprivate
24 {
25 super.SetActions();
26
27 AddAction(ActionForceFeed);
29
32 }

Перекрестные ссылки AddAction().

◆ SetActions() [13/32]

override void SetActions ( )
inlineprivate
24 {
25 super.SetActions();
26
27 AddAction(ActionForceFeed);
29
32 }

Перекрестные ссылки AddAction().

◆ SetActions() [14/32]

override void SetActions ( )
inlineprivate
24 {
25 super.SetActions();
26
27 AddAction(ActionForceFeed);
29
32 }

Перекрестные ссылки AddAction().

◆ SetActions() [15/32]

override void SetActions ( )
inlineprivate
68 {
69 super.SetActions();
70
71 AddAction(ActionForceFeed);
73 }
Definition ActionEat.c:10

Перекрестные ссылки AddAction().

◆ SetActions() [16/32]

override void SetActions ( )
inlineprivate
29 {
30 super.SetActions();
31
32 AddAction(ActionForceFeed);
34
37 }

Перекрестные ссылки AddAction().

◆ SetActions() [17/32]

override void SetActions ( )
inlineprivate
24 {
25 super.SetActions();
26
27 AddAction(ActionForceFeed);
29
32 }

Перекрестные ссылки AddAction().

◆ SetActions() [18/32]

override void SetActions ( )
inlineprivate
24 {
25 super.SetActions();
26
27 AddAction(ActionForceFeed);
29
32 }

Перекрестные ссылки AddAction().

◆ SetActions() [19/32]

override void SetActions ( )
inlineprivate
24 {
25 super.SetActions();
26
27 AddAction(ActionForceFeed);
29
32 }

Перекрестные ссылки AddAction().

◆ SetActions() [20/32]

override void SetActions ( )
inlineprivate
4 {
5 super.SetActions();
6
7 AddAction(ActionForceConsumeSingle);
9 }

Перекрестные ссылки AddAction().

◆ SetActions() [21/32]

override void SetActions ( )
inlineprivate
24 {
25 super.SetActions();
26
27 AddAction(ActionForceFeed);
29
32 }

Перекрестные ссылки AddAction().

◆ SetActions() [22/32]

override void SetActions ( )
inlineprivate
24 {
25 super.SetActions();
26
27 AddAction(ActionForceFeed);
29
32 }

Перекрестные ссылки AddAction().

◆ SetActions() [23/32]

override void SetActions ( )
inlineprivate
9 {
10 super.SetActions();
11
12 AddAction(ActionForceFeed);
14 }

Перекрестные ссылки AddAction().

◆ SetActions() [24/32]

override void SetActions ( )
inlineprivate
24 {
25 super.SetActions();
26
27 AddAction(ActionForceFeed);
29
32 }

Перекрестные ссылки AddAction().

◆ SetActions() [25/32]

override void SetActions ( )
inlineprivate
56 {
57 super.SetActions();
58
59 AddAction(ActionForceFeed);
61 }

Перекрестные ссылки AddAction().

◆ SetActions() [26/32]

override void SetActions ( )
inlineprivate
24 {
25 super.SetActions();
26
27 AddAction(ActionForceFeed);
29 }

Перекрестные ссылки AddAction().

◆ SetActions() [27/32]

override void SetActions ( )
inlineprivate
24 {
25 super.SetActions();
26
27 AddAction(ActionForceFeed);
29
32 }

Перекрестные ссылки AddAction().

◆ SetActions() [28/32]

override void SetActions ( )
inlineprivate
29 {
30 super.SetActions();
31
32 AddAction(ActionForceFeed);
34 }

Перекрестные ссылки AddAction().

◆ SetActions() [29/32]

override void SetActions ( )
inlineprivate
68 {
69 super.SetActions();
70
71 AddAction(ActionForceFeed);
73 }

Перекрестные ссылки AddAction().

◆ SetActions() [30/32]

override void SetActions ( )
inlineprivate
24 {
25 super.SetActions();
26
27 AddAction(ActionForceFeed);
29
32 }

Перекрестные ссылки AddAction().

◆ SetActions() [31/32]

override void SetActions ( )
inlineprivate
24 {
25 super.SetActions();
26
27 AddAction(ActionForceFeed);
29
32 }

Перекрестные ссылки AddAction().

◆ SetActions() [32/32]

override void SetActions ( )
inlineprivate
46 {
47 super.SetActions();
48
49 AddAction(ActionForceFeed);
51
54 }

Перекрестные ссылки AddAction().

◆ SetCookingTime()

void SetCookingTime ( float time)
inlineprotected
574 {
575 GetFoodStage().SetCookingTime( time );
576
577 //synchronize when calling on server
578 Synchronize();
579 }

Перекрестные ссылки GetFoodStage() и Synchronize().

◆ SoundCookingStart()

void SoundCookingStart ( string sound_name)
inlineprotected
612 {
613 #ifndef SERVER
615 {
617
620 }
621 #endif
622 }
class JsonUndergroundAreaTriggerData GetPosition
Definition UndergroundAreaLoader.c:9
EffectSound m_SoundEffectCooking
DEPRECATED.
Definition Edible_Base.c:11
Manager class for managing Effect (EffectParticle, EffectSound)
Definition EffectManager.c:6
static EffectSound PlaySound(string sound_set, vector position, float play_fade_in=0, float stop_fade_out=0, bool loop=false)
Create and play an EffectSound.
Definition EffectManager.c:169

Перекрестные ссылки GetPosition, m_SoundEffectCooking, m_SoundPlaying, SEffectManager::PlaySound() и SoundCookingStop().

Используется в RefreshAudio().

◆ SoundCookingStop()

void SoundCookingStop ( )
inlineprotected
625 {
626 #ifndef SERVER
628 {
631 m_SoundPlaying = "";
632 }
633 #endif
634 }
override void Stop()
Stops sound.
Definition EffectSound.c:244

Перекрестные ссылки m_SoundEffectCooking, m_SoundPlaying и EffectSound::Stop().

Используется в RemoveAudio() и SoundCookingStart().

◆ Synchronize()

void Synchronize ( )
inlineprivate
173 {
174 SetSynchDirty();
175 }

Используется в AfterStoreLoad(), MakeSoundsOnClient(), OnStoreLoad(), ResetCookingTime() и SetCookingTime().

◆ TransferFoodStage()

void TransferFoodStage ( notnull Edible_Base source)
inlineprotected
531 {
532 if ( !source.GetFoodStage())
533 return;
534 m_LastDecayStage = source.GetLastDecayStage();
535 ChangeFoodStage(source.GetFoodStage().GetFoodStageType());
536 m_DecayTimer = source.GetDecayTimer();
537 m_DecayDelta = source.GetDecayDelta();
538 }

Перекрестные ссылки ChangeFoodStage(), m_DecayDelta, m_DecayTimer и m_LastDecayStage.

◆ UpdateVaporParticle()

void UpdateVaporParticle ( )
inlineprotected
837 {
838 if (GetGame().IsDedicatedServer())
839 return;
840
841 if (m_VarTemperature >= GameConstants.STATE_HOT_LVL_TWO && !m_HotVaporParticle)
842 {
844 GetInventory().GetCurrentInventoryLocation(invLoc);
845 if (invLoc && (invLoc.GetType() == InventoryLocationType.GROUND || invLoc.GetType() == InventoryLocationType.HANDS))
846 {
847 ParticleManager ptcMgr = ParticleManager.GetInstance();
848 if (ptcMgr)
849 {
850 m_HotVaporParticle = ParticleManager.GetInstance().PlayOnObject(ParticleList.ITEM_HOT_VAPOR, this);
854 }
855 }
856 }
857 else if (m_HotVaporParticle)
858 {
859 if (m_VarTemperature <= GameConstants.STATE_HOT_LVL_TWO)
860 {
863 return;
864 }
865
867 GetInventory().GetCurrentInventoryLocation(inventoryLoc);
868 if (invLoc && (invLoc.GetType() != InventoryLocationType.GROUND && invLoc.GetType() != InventoryLocationType.HANDS))
869 {
872 }
873 }
874 }
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Definition ParticleManager.c:84
ParticleAutoDestroyFlags
Flags to pass to ParticleSource.SetParticleAutoDestroyFlags.
Definition ParticleSource.c:3
InventoryLocation.
Definition InventoryLocation.c:29
Definition ParticleList.c:12
static const int ITEM_HOT_VAPOR
Definition ParticleList.c:70
override void SetParticleParam(int parameter_id, float value)
Set the value of a parameter of all emitors in the particle.
Definition ParticleSource.c:808
proto native void SetParticleAutoDestroyFlags(ParticleAutoDestroyFlags flags)
Enables the particle to automatically clean up itself when ending or stopping.
const int STATE_HOT_LVL_TWO
Definition constants.c:845
EmitorParam
Definition EnVisual.c:114

Перекрестные ссылки GetGame(), ParticleList::ITEM_HOT_VAPOR, m_HotVaporParticle, ParticleManager(), ParticleSource::SetParticleAutoDestroyFlags(), ParticleSource::SetParticleParam(), GameConstants::STATE_HOT_LVL_TWO и Particle::Stop().

Используется в EEItemLocationChanged() и OnVariablesSynchronized().

◆ UpdateVisuals()

void UpdateVisuals ( )
inlineprotected
964 {
966 }

Перекрестные ссылки UpdateVisualsEx().

◆ UpdateVisualsEx()

void UpdateVisualsEx ( bool forced = false)
inlineprivate
86 {
87 if (GetFoodStage())
88 GetFoodStage().UpdateVisualsEx(forced);
89 }

Перекрестные ссылки GetFoodStage().

Используется в EEInit(), OnFoodStageChange(), OnStoreLoad() и UpdateVisuals().

◆ UseConfigInitTemperature() [1/2]

override bool UseConfigInitTemperature ( )
inlineprivate
24 {
25 return true;
26 }

◆ UseConfigInitTemperature() [2/2]

override bool UseConfigInitTemperature ( )
inlineprivate
24 {
25 return true;
26 }

Поля

◆ DIRECT_COOKING_SLOT_NAME

const string DIRECT_COOKING_SLOT_NAME = "DirectCooking"
private

Используется в EEItemLocationChanged().

◆ m_CookedByMethod

CookingMethodType m_CookedByMethod
private

◆ m_DecayDelta

float m_DecayDelta = 0.0
protected

Используется в GetDecayDelta(), ProcessDecay() и TransferFoodStage().

◆ m_DecayTimer

float m_DecayTimer
protected

◆ m_FoodStage

ref FoodStage m_FoodStage
protected

◆ m_HotVaporParticle

ParticleSource m_HotVaporParticle
protected

Используется в EEDelete() и UpdateVaporParticle().

◆ m_LastDecayStage

◆ m_MakeCookingSounds

bool m_MakeCookingSounds
protected

◆ m_SoundCooking

SoundOnVehicle m_SoundCooking
protected

◆ m_SoundEffectCooking

EffectSound m_SoundEffectCooking
protected

DEPRECATED.

Используется в SoundCookingStart() и SoundCookingStop().

◆ m_SoundPlaying

string m_SoundPlaying
protected

Используется в Edible_Base(), SoundCookingStart() и SoundCookingStop().

◆ SOUND_BAKING_DONE

const string SOUND_BAKING_DONE = "Baking_Done_SoundSet"
private

Используется в RefreshAudio().

◆ SOUND_BAKING_START

const string SOUND_BAKING_START = "Baking_SoundSet"
private

Используется в RefreshAudio().

◆ SOUND_BURNING_DONE

const string SOUND_BURNING_DONE = "Food_Burning_SoundSet"
private

Используется в RefreshAudio().


Объявления и описания членов классов находятся в файлах: