![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
Go to the source code of this file.
Enumerations | |
| enum | EPlantState { PAUSED = 0 , GROWING , MATURE , SPOILED , DRY } |
| enum EPlantState |
| Enumerator | |
|---|---|
| PAUSED | |
| GROWING | |
| MATURE | |
| SPOILED | |
| DRY | |
Definition at line 1 of file plantbase.c.
|
private |
Definition at line 91 of file plantbase.c.
References DestroyPlant(), IsPendingDeletion(), m_MarkForDeletion, and m_TimeTicker.
Definition at line 402 of file plantbase.c.
Definition at line 407 of file plantbase.c.
Definition at line 412 of file plantbase.c.
|
private |
Definition at line 417 of file plantbase.c.
References GetType(), PlantMaterialHealth::m_HealthyMat, PlantMaterialHealth::m_HealthyTex, PlantMaterialHealth::m_InfestedMat, PlantMaterialHealth::m_InfestedTex, m_IsInfested, and m_ModuleHorticulture.
Referenced by GrowthTimerTick(), and SprayPlant().
|
private |
Definition at line 718 of file plantbase.c.
References m_DebugDeleteDryTime, m_DebugFullMaturityTime, m_DebugSpoilRemoveTime, and m_DebugSpoilTime.
|
staticprivate |
Definition at line 726 of file plantbase.c.
References m_DebugTickSpeedMultiplier.
Definition at line 700 of file plantbase.c.
References m_DeleteDryPlantTime, m_FullMaturityTime, m_GrowthStagesCount, m_SpoilAfterFullMaturityTime, m_SpoiledRemoveTime, and m_StateChangeTime.
|
private |
|
private |
Definition at line 557 of file plantbase.c.
References g_Game, RemoveSlot(), and UnlockFromParent().
Referenced by ~PlantBase().
|
private |
Definition at line 220 of file plantbase.c.
References m_CropsType.
|
private |
Definition at line 666 of file plantbase.c.
References m_GardenBase.
|
private |
Definition at line 594 of file plantbase.c.
References m_PlantState.
|
private |
Definition at line 599 of file plantbase.c.
References m_PlantStateIndex.
|
private |
Definition at line 656 of file plantbase.c.
References m_Slot.
Referenced by GetWater(), GetWaterMax(), and OnStoreSave().
|
private |
Definition at line 630 of file plantbase.c.
References m_SprayQuantity.
|
private |
Definition at line 635 of file plantbase.c.
References m_SprayUsage.
|
private |
Definition at line 604 of file plantbase.c.
References GetSlot().
|
private |
Definition at line 612 of file plantbase.c.
References GetSlot().
|
private |
Definition at line 481 of file plantbase.c.
References ChangeInfestation(), m_GrowthStagesCount, m_InfestationChance, m_IsInfested, m_PlantStateIndex, m_TimeTracker, Math::RandomFloat01(), SetDry(), SetPlantState(), and UpdatePlant().
|
private |
Definition at line 567 of file plantbase.c.
References ECE_PLACE_ON_SURFACE, g_Game, IsHarvestable(), m_CropsCount, m_CropsType, m_GardenBase, m_HasCrops, ItemBase::SetQuantity(), and UpdatePlant().
|
private |
|
private |
|
private |
Definition at line 102 of file plantbase.c.
References Math::Ceil(), g_Game, GrowthTimerTick(), m_CropsCount, m_DebugDeleteDryTime, m_DebugFullMaturityTime, m_DebugSpoilRemoveTime, m_DebugSpoilTime, m_DeleteDryPlantTime, m_FullMaturityTime, m_GardenBase, m_GrowthStagesCount, m_PlantMaterialMultiplier, m_PlantState, m_SpoilAfterFullMaturityTime, m_SpoiledRemoveTime, m_StateChangeTime, NeedsWater(), Math::RandomInt(), SetPlantState(), and SPOIL_AFTER_MATURITY_TIME.
|
private |
|
private |
|
private |
Definition at line 679 of file plantbase.c.
References m_HasCrops, and m_PlantState.
Referenced by Harvest().
|
private |
|
private |
|
private |
Definition at line 671 of file plantbase.c.
References m_PlantState, m_SprayQuantity, and m_SprayUsage.
|
private |
|
private |
Definition at line 620 of file plantbase.c.
References m_PlantState, and m_Slot.
Referenced by Init().
|
private |
Definition at line 177 of file plantbase.c.
References OnStoreLoadCustom(), Serializer::Read(), and SetSlot().
|
private |
Definition at line 225 of file plantbase.c.
References ErrorEx, GetPosition(), m_CropsCount, m_CropsType, m_CurrentPlantMaterialQuantity, m_DeleteDryPlantTime, m_FullMaturityTime, m_GrowthStagesCount, m_HasCrops, m_InfestationChance, m_IsInfested, m_PlantMaterialMultiplier, m_PlantState, m_PlantStateIndex, m_SpoilAfterFullMaturityTime, m_SpoiledRemoveTime, m_SprayQuantity, m_SprayUsage, m_StateChangeTime, m_TimeTracker, Serializer::Read(), and UpdatePlant().
Referenced by OnStoreLoad().
|
private |
Definition at line 198 of file plantbase.c.
References ErrorEx, g_Game, GetPosition(), GetSlot(), OnStoreSaveCustom(), and Serializer::Write().
|
private |
Definition at line 332 of file plantbase.c.
References m_CropsCount, m_CropsType, m_CurrentPlantMaterialQuantity, m_DeleteDryPlantTime, m_FullMaturityTime, m_GrowthStagesCount, m_HasCrops, m_InfestationChance, m_IsInfested, m_PlantMaterialMultiplier, m_PlantState, m_PlantStateIndex, m_SpoilAfterFullMaturityTime, m_SpoiledRemoveTime, m_SprayQuantity, m_SprayUsage, m_StateChangeTime, m_TimeTracker, and Serializer::Write().
Referenced by OnStoreSave().
|
private |
Definition at line 54 of file plantbase.c.
References CALL_CATEGORY_SYSTEM, g_Game, GetPlugin(), GetType(), m_CropsCount, m_CropsType, m_CurrentPlantMaterialQuantity, m_DeleteDryPlantTime, m_GrowthStagesCount, m_HasCrops, m_InfestationChance, m_IsInfested, m_ModuleHorticulture, m_PlantStateIndex, m_SpoiledRemoveTime, m_SprayQuantity, m_SprayUsage, m_TimeTicker, Math::RandomInt(), SetTakeable(), and TICK_FREQUENCY.
Referenced by ActionDisinfectPlant::ActionCondition(), ActionDisinfectPlantBit::ActionCondition(), ActionHarvestCrops::ActionCondition(), ActionRemovePlant::ActionCondition(), ActionWaterPlant::ActionCondition(), ItemBase::CreatePlant(), ItemBase::EEItemAttached(), CAContinuousWaterPlant::Execute(), ItemBase::GetSlotIndexByPlant(), ActionHarvestCrops::OnActionInfoUpdate(), ActionDisinfectPlantBit::OnExecuteServer(), ActionWaterPlant::OnFinishProgressClient(), ActionWaterPlant::OnFinishProgressServer(), PluginBase::OnRPCHorticultUpdate(), PluginBase::OnRPCHorticultureSpeed(), ItemBase::PrintSlots(), ItemBase::RemoveSlot(), HudDebugWinHorticulture::SendRPCSpeed(), HudDebugWinHorticulture::SendRPCUpdate(), CAContinuousDisinfectPlant::Setup(), and CAContinuousWaterPlant::Setup().
|
private |
Definition at line 381 of file plantbase.c.
References m_CurrentPlantMaterialQuantity, m_FullMaturityTime, m_GardenBase, m_GrowthStagesCount, m_HasCrops, m_IsInfested, m_PlantState, m_PlantStateIndex, m_Slot, m_SpoilAfterFullMaturityTime, m_SprayQuantity, m_StateChangeTime, m_TimeTracker, and Print().
|
private |
|
private |
Definition at line 541 of file plantbase.c.
References ECE_PLACE_ON_SURFACE, g_Game, m_CurrentPlantMaterialQuantity, RemoveSlot(), ItemBase::SetQuantity(), and UnlockFromParent().
|
private |
Definition at line 640 of file plantbase.c.
Referenced by DestroyPlant(), RemovePlantEx(), ItemBase::RemoveSlotPlant(), and Tick().
|
private |
Definition at line 692 of file plantbase.c.
References AddAction().
|
private |
Definition at line 515 of file plantbase.c.
References m_PlantState, m_PlantStateIndex, SetPlantState(), and UpdatePlant().
Referenced by GrowthTimerTick().
|
private |
Definition at line 661 of file plantbase.c.
References m_GardenBase.
|
private |
Definition at line 587 of file plantbase.c.
References m_PlantState, and m_TimeTracker.
Referenced by GrowthTimerTick(), Init(), SetDry(), and SetSpoiled().
|
private |
|
private |
Definition at line 505 of file plantbase.c.
References m_PlantState, m_PlantStateIndex, SetPlantState(), and UpdatePlant().
Referenced by Tick().
|
private |
|
private |
Definition at line 526 of file plantbase.c.
References ChangeInfestation(), m_InfestationChance, m_IsInfested, m_SprayQuantity, m_SprayUsage, and UpdatePlant().
Definition at line 753 of file plantbase.c.
|
private |
Definition at line 144 of file plantbase.c.
References GrowthTimerTick(), m_DebugTickSpeedMultiplier, m_DeleteDryPlantTime, m_PlantState, m_SpoilAfterFullMaturityTime, m_SpoiledRemoveTime, m_StateChangeTime, m_TimeTicker, m_TimeTracker, RemoveSlot(), and SetSpoiled().
|
private |
Definition at line 448 of file plantbase.c.
References HasCrops(), m_CurrentPlantMaterialQuantity, m_PlantMaterialMultiplier, m_PlantStateIndex, and ToStringLen().
Referenced by GrowthTimerTick(), Harvest(), OnStoreLoadCustom(), SetDry(), SetSpoiled(), and SprayPlant().
|
private |
Definition at line 17 of file plantbase.c.
Referenced by Harvest(), Init(), OnStoreLoadCustom(), OnStoreSaveCustom(), and PlantBase().
|
private |
Definition at line 19 of file plantbase.c.
Referenced by GetCropsType(), Harvest(), OnStoreLoadCustom(), OnStoreSaveCustom(), and PlantBase().
|
private |
Definition at line 23 of file plantbase.c.
Referenced by OnStoreLoadCustom(), OnStoreSaveCustom(), PlantBase(), PrintValues(), RemovePlantEx(), and UpdatePlant().
|
staticprivate |
Definition at line 51 of file plantbase.c.
Referenced by DebugSetGlobalTimes(), and Init().
|
staticprivate |
Definition at line 48 of file plantbase.c.
Referenced by DebugSetGlobalTimes(), and Init().
|
staticprivate |
Definition at line 50 of file plantbase.c.
Referenced by DebugSetGlobalTimes(), and Init().
|
staticprivate |
Definition at line 49 of file plantbase.c.
Referenced by DebugSetGlobalTimes(), and Init().
|
staticprivate |
Definition at line 52 of file plantbase.c.
Referenced by DebugSetTickSpeedMultiplier(), and Tick().
|
private |
Definition at line 30 of file plantbase.c.
Referenced by DebugSetTimes(), Init(), OnStoreLoadCustom(), OnStoreSaveCustom(), PlantBase(), and Tick().
|
private |
Definition at line 738 of file plantbase.c.
|
private |
Definition at line 32 of file plantbase.c.
Referenced by Plant_Pepper::Plant_Pepper(), Plant_Potato::Plant_Potato(), Plant_Pumpkin::Plant_Pumpkin(), Plant_Tomato::Plant_Tomato(), Plant_Zucchini::Plant_Zucchini(), DebugSetTimes(), Init(), OnStoreLoadCustom(), OnStoreSaveCustom(), and PrintValues().
|
private |
Definition at line 39 of file plantbase.c.
Referenced by GetGarden(), Harvest(), Init(), PrintValues(), and SetGarden().
|
private |
Definition at line 16 of file plantbase.c.
Referenced by DebugSetTimes(), GrowthTimerTick(), Init(), OnStoreLoadCustom(), OnStoreSaveCustom(), PlantBase(), and PrintValues().
|
private |
Definition at line 740 of file plantbase.c.
|
private |
Definition at line 18 of file plantbase.c.
Referenced by Harvest(), HasCrops(), IsHarvestable(), OnStoreLoadCustom(), OnStoreSaveCustom(), PlantBase(), and PrintValues().
|
private |
Definition at line 14 of file plantbase.c.
Referenced by GrowthTimerTick(), OnStoreLoadCustom(), OnStoreSaveCustom(), PlantBase(), and SprayPlant().
|
private |
Definition at line 741 of file plantbase.c.
|
private |
Definition at line 26 of file plantbase.c.
Referenced by ChangeInfestation(), GrowthTimerTick(), OnStoreLoadCustom(), OnStoreSaveCustom(), PlantBase(), PrintValues(), and SprayPlant().
|
private |
Definition at line 28 of file plantbase.c.
Referenced by ~PlantBase().
|
private |
Definition at line 42 of file plantbase.c.
Referenced by ChangeInfestation(), and PlantBase().
|
private |
Definition at line 20 of file plantbase.c.
Referenced by Init(), OnStoreLoadCustom(), OnStoreSaveCustom(), and UpdatePlant().
|
protected |
Definition at line 24 of file plantbase.c.
Referenced by GetPlantState(), Init(), IsHarvestable(), IsSprayable(), NeedsWater(), OnStoreLoadCustom(), OnStoreSaveCustom(), PrintValues(), SetDry(), SetPlantState(), SetSpoiled(), and Tick().
|
private |
Definition at line 22 of file plantbase.c.
Referenced by GetPlantStateIndex(), GrowthTimerTick(), OnStoreLoadCustom(), OnStoreSaveCustom(), PlantBase(), PrintValues(), SetDry(), SetSpoiled(), and UpdatePlant().
|
private |
Definition at line 40 of file plantbase.c.
Referenced by GetSlot(), NeedsWater(), PrintValues(), and SetSlot().
|
private |
Definition at line 33 of file plantbase.c.
Referenced by DebugSetTimes(), Init(), OnStoreLoadCustom(), OnStoreSaveCustom(), PrintValues(), and Tick().
|
private |
Definition at line 739 of file plantbase.c.
|
private |
Definition at line 31 of file plantbase.c.
Referenced by DebugSetTimes(), Init(), OnStoreLoadCustom(), OnStoreSaveCustom(), PlantBase(), and Tick().
|
private |
Definition at line 737 of file plantbase.c.
|
private |
Definition at line 27 of file plantbase.c.
Referenced by GetSprayQuantity(), IsSprayable(), OnStoreLoadCustom(), OnStoreSaveCustom(), PlantBase(), PrintValues(), and SprayPlant().
| enum EPlantState m_SprayUsage |
Referenced by GetSprayUsage(), IsSprayable(), OnStoreLoadCustom(), OnStoreSaveCustom(), PlantBase(), and SprayPlant().
|
private |
Definition at line 34 of file plantbase.c.
Referenced by DebugSetTimes(), Init(), OnStoreLoadCustom(), OnStoreSaveCustom(), PrintValues(), and Tick().
|
protected |
Definition at line 36 of file plantbase.c.
Referenced by ~PlantBase(), PlantBase(), and Tick().
|
protected |
Definition at line 37 of file plantbase.c.
Referenced by GrowthTimerTick(), OnStoreLoadCustom(), OnStoreSaveCustom(), PrintValues(), SetPlantState(), and Tick().
|
private |
Definition at line 44 of file plantbase.c.
Referenced by Init().
|
staticprivate |
Definition at line 732 of file plantbase.c.
|
staticprivate |
Definition at line 733 of file plantbase.c.
|
staticprivate |
Definition at line 734 of file plantbase.c.
|
staticprivate |
Definition at line 735 of file plantbase.c.
|
private |
Definition at line 45 of file plantbase.c.
Referenced by PlantBase().