DIFF

class GardenBaseSource

GardenBase ItemBase InventoryItem EntityAI Entity ObjectTyped Object IEntity Managed

All members, including inherited

Constructors 2

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"
static const string SLOT_MATERIAL_DRY = "dz\\gear\\cultivation\\data\\soil_cultivated.rvmat"
static const string SLOT_MATERIAL_LIMED_WET = "dz\\gear\\cultivation\\data\\soil_cultivated_limed_wet.rvmat"
static const string SLOT_MATERIAL_LIMED_DRY = "dz\\gear\\cultivation\\data\\soil_cultivated_limed.rvmat"
static const string SLOT_MATERIAL_COMPOST_WET = "dz\\gear\\cultivation\\data\\soil_cultivated_compost_wet.rvmat"
static const string SLOT_MATERIAL_COMPOST_DRY = "dz\\gear\\cultivation\\data\\soil_cultivated_compost.rvmat"
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_"
private static const string SLOT_SEEDBASE_PREFIX = "seedbase_"
Referenced by GardenBase()
private static const int CHECK_RAIN_INTERVAL = 15
private static const float CREATE_PLANT_DELAY = 1000.0
Referenced by PlantSeed()
private static const float RAIN_INTENSITY_THRESHOLD = 0.05
Referenced by CheckRainTick()

Members 14

protected int m_SlotFertilityState = 0

Used to store fertility state of all slots

protected int m_SlotWateredState = 0

Used to store watered state of all slots

protected int m_MaxWateredStateVal = 0

Used to store water max state of all slots

protected int m_SlotState = 0

Used to handle and sync slot states

Referenced by GetSlotState(), and SetSlotState()
protected int m_SlotWaterBitmap0

Slots 1–4

protected int m_SlotWaterBitmap1

Slots 5–8

protected int m_SlotWaterBitmap2

Slot 9 (and could hold up to 3 more if needed)

protected int m_SlotFertilizerBitmap0

Slots 1–4

protected int m_SlotFertilizerBitmap1

Slots 5–8

protected int m_SlotFertilizerBitmap2

Slot 9 (and could hold up to 3 more if needed)

protected float m_DefaultFertility = 1
ref Timer m_CheckRainTimer
Referenced by ~GardenBase(), and CheckRainStart()
private static ref map<string,string> m_map_slots

For the 'attachment slot -> plant slot' conversion. It is possible that this will be removed later.

Methods 58

override void OnVariablesSynchronized()
override bool HasProxyParts()

Set relevant slot values from synced bitmaps

override int GetHideIconMask()
void SetBaseFertility(float value)
float GetBaseFertility()
Referenced by InitializeSlots(), and RemoveSlot()
override void EOnInit(IEntity other, int extra)
References CheckRainTick()
void SetMaxWaterStateVal()
References array.Count(), Math.Pow(), m_MaxWateredStateVal
Show 1 more, m_Slots
Referenced by GardenBase()
int GetMaxWaterStateVal()
override void EEOnAfterLoad()
override bool CanPutInCargo(EntityAI parent)
override bool CanPutIntoHands(EntityAI parent)
override bool CanRemoveFromHands(EntityAI parent)
bool CanPlantSeed(string selection_component)
string ConvertAttSlotToPlantSlot(string attach_slot)
Referenced by EEItemDetached()
void SetSlotState(int slotIndex, int value)
Referenced by Slot.SetState()
int GetSlotState(int slotIndex)
References m_SlotState
Referenced by UpdateSlots()
void RemoveSlotPlant(Object plant)
int GetSlotIndexBySelection(string selection_component)
int GetSlotIndexByAttachmentSlot(string att_slot)
Referenced by EEItemAttached()
int GetSlotIndexByPlant(Object plant)
References array.Count(), array.Get(), Slot.GetPlant()
Show 1 more, m_Slots
Referenced by RemoveSlotPlant()
int GetNearestSlotIDByState(vector position, int slot_state)
void CheckRainStart()
References Timer.Run(), new Timer(), CHECK_RAIN_INTERVAL
Show 1 more, m_CheckRainTimer
Referenced by GardenBase()
array<ref Slot> GetSlots()
References m_Slots
override void SetActions()
void SetFertilizerBitmapByIndex(int index, int value)
void SetWaterBitmapByIndex(int index, int value)
Referenced by SetWaterQuantity()
int GetWaterBitmapByIndex(int index)
void SetWaterQuantity(int slotIndex, int value)
Referenced by InitializeSlots(), OnStoreLoad(), RemoveSlot()
Show 1 more, Slot.GiveWater()
int GetWaterQuantity(int slotIndex)
Referenced by UpdateSlots()
void SetFertilizerQuantity(int slotIndex, int value)
int GetFertilizerQuantity(int slotIndex)
Referenced by UpdateSlots()
bool IsCorrectFertilizer(ItemBase item, string selection_component)

DEPRECATED

void UpdateTexturesOnAllSlots()
bool NeedsFertilization(string selection_component)
void WaterAllSlots()