class GardenBaseSource
GardenBase › ItemBase › InventoryItem › EntityAI › Entity › ObjectTyped › Object › IEntity › Managed
Derived classes
View all 4 descendants
All members, including inherited
Constructors 2
void GardenBase()void ~GardenBase()Constants 15
static const string SLOT_TEXTURE_DIGGED_WET_LIME = "dz\\gear\\cultivation\\data\\soil_digged_wet_lime_CO.paa"static const string SLOT_TEXTURE_DIGGED_WET_PLANT = "dz\\gear\\cultivation\\data\\soil_digged_wet_plant_CO.paa"static const string SLOT_MATERIAL_WET = "dz\\gear\\cultivation\\data\\soil_cultivated_wet.rvmat"Referenced by SetSlotTextureDigged()
static const string SLOT_MATERIAL_DRY = "dz\\gear\\cultivation\\data\\soil_cultivated.rvmat"Referenced by SetSlotTextureDigged()
static const string SLOT_MATERIAL_LIMED_WET = "dz\\gear\\cultivation\\data\\soil_cultivated_limed_wet.rvmat"Referenced by SetSlotTextureFertilized()
static const string SLOT_MATERIAL_LIMED_DRY = "dz\\gear\\cultivation\\data\\soil_cultivated_limed.rvmat"Referenced by SetSlotTextureFertilized()
static const string SLOT_MATERIAL_COMPOST_WET = "dz\\gear\\cultivation\\data\\soil_cultivated_compost_wet.rvmat"Referenced by SetSlotTextureFertilized()
static const string SLOT_MATERIAL_COMPOST_DRY = "dz\\gear\\cultivation\\data\\soil_cultivated_compost.rvmat"Referenced by SetSlotTextureFertilized()
private static const string SLOT_SELECTION_DIGGED_PREFIX = "seedbase_"private static const string SLOT_SELECTION_COVERED_PREFIX = "slotCovered_"private static const string SLOT_MEMORY_POINT_PREFIX = "slot_"Referenced by EEItemAttached(), GardenBase(), GetSlotIndexBySelection()
Show 1 more
, GetSlotPosition()private static const string SLOT_SEEDBASE_PREFIX = "seedbase_"Referenced by GardenBase()
private static const int CHECK_RAIN_INTERVAL = 15private static const float CREATE_PLANT_DELAY = 1000.0Referenced by PlantSeed()
private static const float RAIN_INTENSITY_THRESHOLD = 0.05Referenced by CheckRainTick()
Members 14
Referenced by CheckRainTick(), GetNearestSlotIDByState(), GetSlotByIndex()
Show 16 more
, GetSlotBySelection(), GetSlotIndexByPlant(), GetSlotIndexBySelection(), GetSlots(), InitializeSlots(), OnStoreLoad(), OnStoreSave(), PlantSeed(), PrintSlots(), RemoveSlot(), SetMaxWaterStateVal(), SetSlotTextureDigged(), SetSlotTextureFertilized(), UpdateSlots(), UpdateSlotTexture(), and WaterAllSlots()protected int m_SlotFertilityState = 0Used to store fertility state of all slots
Referenced by Fertilize(), OnStoreLoad(), OnStoreSave()
Show 3 more
, RemoveSlot(), SlotFertilityStateUpdate(), and UpdateSlots()protected int m_SlotWateredState = 0Used to store watered state of all slots
Referenced by OnStoreLoad(), OnStoreSave(), RemoveSlot()
Show 3 more
, SlotWaterStateUpdate(), UpdateSlots(), and WaterAllSlots()protected int m_MaxWateredStateVal = 0Used to store water max state of all slots
protected int m_SlotState = 0Used to handle and sync slot states
protected int m_SlotWaterBitmap0Slots 1–4
protected int m_SlotWaterBitmap1Slots 5–8
protected int m_SlotFertilizerBitmap0Slots 1–4
protected int m_SlotFertilizerBitmap1Slots 5–8
protected float m_DefaultFertility = 1ref Timer m_CheckRainTimerFor the 'attachment slot -> plant slot' conversion. It is possible that this will be removed later.
Methods 58
override void OnVariablesSynchronized()void UpdateSlots()override bool HasProxyParts()Set relevant slot values from synced bitmaps
override int GetHideIconMask()void SetBaseFertility(float value)References m_DefaultFertility
Referenced by GardenPlot.GardenPlot()
float GetBaseFertility()References m_DefaultFertility
References CheckRainTick()
void InitializeSlots()Referenced by GardenBase()
void SetMaxWaterStateVal()Referenced by GardenBase()
int GetMaxWaterStateVal()References m_MaxWateredStateVal
override bool OnStoreLoad(ParamsReadContext ctx, int version)Referenced by GardenPlot.OnStoreLoad()
override void EEOnAfterLoad()void SyncSlots()References GetGardenSlotsCount(), CGame.IsDedicatedServer(), CGame.IsMultiplayer()
Show 4 more
, CGame.IsServer(), EntityAI.SetSynchDirty(), UpdateSlots(), and UpdateSlotTexture()override void OnStoreSave(ParamsWriteContext ctx)References array.Get(), GetGardenSlotsCount(), ItemBase.OnStoreSave()
Show 5 more
, Slot.OnStoreSaveCustom(), Serializer.Write(), m_SlotFertilityState, m_Slots, and m_SlotWateredStatevoid PrintSlots()References Class.Cast(), typename.EnumToString(), array.Get()
Show 18 more
, GameInventory.GetAttachmentSlotsCount(), Slot.GetFertility(), Slot.GetFertilityMax(), Slot.GetFertilityState(), Slot.GetFertilityType(), EntityAI.GetInventory(), Slot.GetPlant(), Object.GetPosition(), Slot.GetSeed(), Slot.GetSlotId(), Slot.GetSlotIndex(), Slot.GetState(), Slot.GetWater(), Slot.GetWateredState(), Slot.GetWaterUsage(), Debug.Log(), PlantBase.PrintValues(), and m_SlotsReferences ItemBase.CanPutInCargo()
References EntityAI.CanPutIntoHands()
int GetGardenSlotsCount()Referenced by CheckRainTick(), GardenBase(), GetNearestSlotIDByState()
Show 6 more
, InitializeSlots(), OnStoreLoad(), OnStoreSave(), SyncSlots(), UpdateSlots(), and UpdateTexturesOnAllSlots()Referenced by ActionPlantSeed.ActionCondition()
Referenced by EEItemDetached()
References CGame.ConfigIsExisting(), ConvertAttSlotToPlantSlot(), EntityAI.EEItemDetached()
Show 6 more
, string.Format(), GetSlotBySelection(), Object.GetType(), Slot.SetSeed(), Slot.SetState(), and string.ToLower()References ScriptCallQueue.CallLater(), Class.Cast(), array.Get()
Show 14 more
, DayZGame.GetCallQueue(), PluginHorticulture.GetPlantType(), GetPlugin(), GetSlotIndexBySelection(), Slot.GetWateredState(), Slot.GetWaterMax(), ItemBase.LockToParent(), Slot.NeedsWater(), Slot.SetSeed(), Slot.SetState(), Slot.SetWater(), CREATE_PLANT_DELAY, Slot.m_PlantType, and m_SlotsReferenced by EEItemAttached()
void CreatePlant(Slot slot)Adjust slot water
References Class.Cast(), GameInventory.CreateAttachmentEx(), Slot.GetFertility()
Show 15 more
, EntityAI.GetInventory(), Slot.GetSeed(), Slot.GetSlotId(), Slot.GetSlotIndex(), Slot.GetWater(), PlantBase.Init(), CGame.IsMultiplayer(), CGame.IsServer(), ItemBase.LockToParent(), CGame.ObjectDelete(), Slot.SetPlant(), Slot.SetState(), ItemBase.UnlockFromParent(), Slot.m_HarvestingEfficiency, and Slot.m_PlantTypeReferenced by Slot.GiveWater()
Referenced by Slot.SetState()
void SlotWaterStateUpdate(Slot slot)References Slot.GetSlotIndex(), Slot.GetWateredState(), CGame.IsMultiplayer()
Show 4 more
, CGame.IsServer(), EntityAI.SetSynchDirty(), UpdateSlotTexture(), and m_SlotWateredStatevoid SlotFertilityStateUpdate(Slot slot)References Slot.GetFertilityState(), Slot.GetSlotIndex(), CGame.IsMultiplayer()
Show 4 more
, CGame.IsServer(), EntityAI.SetSynchDirty(), UpdateSlotTexture(), and m_SlotFertilityStatevoid UpdateSlotTexture(int slot_index)This should be only called on server as the selections are synced to clients in C++
Referenced by Fertilize(), RemoveSlot(), SlotFertilityStateUpdate()
Show 4 more
, SlotWaterStateUpdate(), SyncSlots(), UpdateTexturesOnAllSlots(), and WaterAllSlots()void SetSlotTextureDigged(int slot_index)Referenced by UpdateSlotTexture()
References CGame.ConfigGetInt(), string.Format(), array.Get()
Show 14 more
, array.Get(), Slot.GetFertilityType(), EntityAI.GetHiddenSelectionsTextures(), Slot.GetWateredState(), EntityAI.SetObjectMaterial(), EntityAI.SetObjectTexture(), EntityAI.ShowSelection(), int.ToStringLen(), m_Slots, SLOT_MATERIAL_COMPOST_DRY, SLOT_MATERIAL_COMPOST_WET, SLOT_MATERIAL_LIMED_DRY, SLOT_MATERIAL_LIMED_WET, and SLOT_SELECTION_DIGGED_PREFIXReferenced by UpdateSlotTexture()
void RemoveSlot(int index)References EntityAI.Delete(), array.Get(), GetBaseFertility()
Show 19 more
, Slot.GetFertilityState(), Slot.GetPlant(), Slot.GetSlotIndex(), Slot.GetWateredState(), EntityAI.HideSelection(), Slot.Init(), Object.IsPendingDeletion(), SetFertilizerQuantity(), EntityAI.SetSynchDirty(), SetWaterQuantity(), int.ToStringLen(), ItemBase.UnlockFromParent(), UpdateSlots(), UpdateSlotTexture(), PlantBase.m_MarkForDeletion, m_SlotFertilityState, m_Slots, m_SlotWateredState, and SLOT_SELECTION_COVERED_PREFIXReferenced by RemoveSlotPlant()
void RemoveSlotPlant(Object plant)Referenced by PlantBase.RemoveSlot()
Referenced by ActionDisinfectPlant.ActionCondition(), ActionFertilizeSlot.ActionCondition(), ActionHarvestCrops.GetPlantSlot()
Show 14 more
, ActionPlantSeed.ActionCondition(), ActionPlantSeed.Process(), ActionRemovePlant.ActionCondition(), ActionRemoveSeed.ActionCondition(), ActionWaterGardenSlot.ActionCondition(), CAContinuousDisinfectPlant.Setup(), CAContinuousFertilizeGardenSlot.Setup(), CAContinuousWaterSlot.Setup(), CanPlantSeed(), EEItemDetached(), Fertilize(), IsCorrectFertilizer(), NeedsFertilization(), and HudDebugWinHorticulture.SendRPCUpdate()References string.IndexOf(), string.Length(), string.Length()
Show 5 more
, string.Substring(), string.ToInt(), string.ToLower(), m_Slots, and SLOT_MEMORY_POINT_PREFIXReferenced by EEItemAttached()
Referenced by RemoveSlotPlant()
References vector.Distance(), array.Get(), GetGardenSlotsCount()
Show 3 more
, GetSlotPosition(), Slot.GetState(), and m_SlotsReferences Object.GetSelectionPositionMS(), Object.ModelToWorld(), int.ToStringLen()
Show 1 more
, SLOT_MEMORY_POINT_PREFIXReferenced by GetNearestSlotIDByState()
void CheckRainStart()Referenced by GardenBase()
void CheckRainTick()Referenced by EOnInit()
Referenced by EEItemAttached(), HudDebugWinHorticulture.SendRPCUpdate(), PlantBase.OnStoreLoad()
Show 1 more
, PluginDeveloperSync.OnRPCHorticultUpdate()override void SetActions()References ItemBase.AddAction()
Referenced by SetFertilizerQuantity()
Referenced by SetWaterQuantity()
Referenced by InitializeSlots(), OnStoreLoad(), RemoveSlot()
Show 1 more
, Slot.SetFertilizerQuantity()References GetFertilizerBitmapByIndex()
Referenced by UpdateSlots()
DEPRECATED
void UpdateTexturesOnAllSlots()void Fertilize(PlayerBase player, ItemBase item, float consumed_quantity, string selection_component)References Math.Clamp(), CGame.ConfigGetFloat(), string.Format()
Show 16 more
, Slot.GetFertilityState(), Slot.GetFertilityType(), Slot.GetFertilizerQuantity(), Slot.GetFertilizerQuantityMax(), GetSlotBySelection(), Slot.GetSlotIndex(), Object.GetType(), Slot.SetFertilityState(), Slot.SetFertilityType(), Slot.SetFertilizerQuantity(), EntityAI.SetSynchDirty(), UpdateSlotTexture(), Slot.m_Fertility, Slot.m_FertilizerQuantity, Slot.m_FertilizerUsage, and m_SlotFertilityStatevoid WaterAllSlots()References array.Count(), Slot.GetSlotIndex(), Slot.SetWateredState()