class SlotSource
Constructors 2
void Slot(float base_fertility)Referenced by GardenBase.InitializeSlots()
void ~Slot()Constants 1
Members 19
private int m_WaterQuantityReferenced by CanBeWatered(), GetWater(), GiveWater()
Show 3 more
, Init(), NeedsWater(), and SetWater()static private int m_WaterNeeded = 190How much water is needed to water a plant from a bottle. Value is in mililitres
Referenced by GetWaterUsage()
static private int m_WaterMax = 200float m_FertilityReferenced by CAContinuousFertilizeGardenSlot.FertilizeSlot(), GardenBase.Fertilize(), GetFertility()
Show 4 more
, Init(), OnStoreLoadCustom(), OnStoreSaveCustom(), and SetFertility()float m_FertilizerUsageReferenced by CAContinuousFertilizeGardenSlot.FertilizeSlot(), GardenBase.Fertilize(), GetFertilityMax()
Show 3 more
, Init(), OnStoreLoadCustom(), and OnStoreSaveCustom()float m_FertilizerQuantityReferenced by CAContinuousFertilizeGardenSlot.FertilizeSlot(), GardenBase.Fertilize(), GetFertilizerQuantity()
Show 4 more
, Init(), OnStoreLoadCustom(), OnStoreSaveCustom(), and SetFertilizerQuantity()float m_FertilizerQuantityMaxhow much of a fertilizer can the slot contain
int m_slotIndexint m_slotIdstring m_FertilizerType = ""Referenced by GetFertilityType(), Init(), OnStoreLoadCustom()
Show 2 more
, OnStoreSaveCustom(), and SetFertilityType()int m_FertilityState = eFertlityState.NONEint m_WateredState = eWateredState.DRYReferenced by GetWateredState(), GiveWater(), Init()
Show 2 more
, OnStoreSaveCustom(), and SetWateredState()string m_DiggedSlotComponentexample: "Component02" for the 1st slot in GardenBase
string m_PlantTypeprivate GardenBase m_GardenReferenced by GetGarden(), GiveWater(), SetFertilityState()
Show 5 more
, SetFertilizerQuantity(), SetGarden(), SetPlant(), SetState(), and SetWateredState()float m_HarvestingEfficiencyReferenced by GardenBase.CreatePlant(), Init(), OnStoreLoadCustom()
Show 1 more
, OnStoreSaveCustom()int m_StateReferenced by GetState(), Init(), IsDigged()
Show 4 more
, IsPlanted(), OnStoreLoadCustom(), OnStoreSaveCustom(), and SetState()private PlantBase m_PlantMethods 40
int GetSlotIndex()References m_slotIndex
PlantBase GetPlant()References m_Plant
Referenced by ActionDisinfectPlant.ActionCondition(), ActionFertilizeSlot.ActionCondition(), ActionHarvestCrops.ActionCondition()
Show 12 more
, ActionHarvestCrops.GetPlantSlot(), ActionHarvestCrops.OnActionInfoUpdate(), ActionRemovePlant.ActionCondition(), ActionWaterGardenSlot.ActionCondition(), CAContinuousDisinfectPlant.Setup(), GardenBase.GetSlotIndexByPlant(), GardenBase.PrintSlots(), GardenBase.RemoveSlot(), HudDebugWinHorticulture.SendRPCUpdate(), PluginDeveloperSync.OnRPCHorticultUpdate(), ~Slot(), and GiveWater()void SetPlant(PlantBase plant)void SetWater(int val)ItemBase GetSeed()References m_Seed
Referenced by ActionRemoveSeed.ActionCondition(), GardenBase.CreatePlant(), GardenBase.PrintSlots()
Show 1 more
, GiveWater()void GiveWater(float consumed_quantity)bool NeedsWater()This is here in case we want to support dry out the slot in the future
bool CanBeWatered()float GetWater()References m_WaterQuantity
float GetFertility()References m_Fertility
float GetFertilityMax()References m_FertilizerUsage
void SetFertility(float fertility)References m_Fertility
Referenced by CAContinuousFertilizeGardenSlot.FertilizeSlot()
float GetFertilizerQuantity()References m_FertilizerQuantity
void SetFertilizerQuantity(float fertility)float GetFertilizerQuantityMax()References m_FertilizerQuantityMax
void SetFertilizerQuantityMax(float quantMax)References m_FertilizerQuantityMax
Referenced by CAContinuousFertilizeGardenSlot.Setup()
string GetFertilityType()References m_FertilizerType
void SetFertilityType(string type)References m_FertilizerType
int GetFertilityState()References m_FertilityState
void SetFertilityState(int newState)int GetWateredState()References m_WateredState
void SetWateredState(int newState)References GetWaterMax(), SetWater(), GardenBase.SlotWaterStateUpdate()
Show 2 more
, m_Garden, and m_WateredStateReferenced by GardenBase.UpdateSlots(), GardenBase.WaterAllSlots(), GiveWater()
Show 1 more
, OnStoreLoadCustom()float GetWaterUsage()References m_WaterNeeded
Referenced by CAContinuousWaterSlot.Setup(), GardenBase.PrintSlots(), PlantBase.GetWaterMax()
Show 2 more
, PlantBase.NeedsWater(), and NeedsWater()float GetWaterMax()References m_WaterMax
int GetState()References m_State
Referenced by GardenBase.CanPlantSeed(), GardenBase.GetNearestSlotIDByState(), and GardenBase.PrintSlots()
void SetState(int new_state)Referenced by GardenBase.CreatePlant(), GardenBase.EEItemAttached(), GardenBase.EEItemDetached()
Show 3 more
, GardenBase.InitializeSlots(), GardenBase.PlantSeed(), and GardenBase.UpdateSlots()void Init(float base_fertility)References FERTILIZER_USAGE, m_Fertility, m_FertilityState
Show 8 more
, m_FertilizerQuantity, m_FertilizerType, m_FertilizerUsage, m_HarvestingEfficiency, m_Plant, m_State, m_WateredState, and m_WaterQuantityvoid SetSlotComponent(string component)References m_DiggedSlotComponent
string GetSlotComponent()References m_DiggedSlotComponent
bool OnStoreLoadCustom(ParamsReadContext ctx, int version)References Serializer.Read(), SetWateredState(), m_Fertility
Show 5 more
, m_FertilizerQuantity, m_FertilizerType, m_FertilizerUsage, m_HarvestingEfficiency, and m_StateReferenced by GardenBase.OnStoreLoad()
void OnStoreSaveCustom(ParamsWriteContext ctx)References Serializer.Write(), m_Fertility, m_FertilizerQuantity
Show 5 more
, m_FertilizerType, m_FertilizerUsage, m_HarvestingEfficiency, m_State, and m_WateredStateReferenced by GardenBase.OnStoreSave()