DIFF

class SlotSource

Constructors 2

void Slot(float base_fertility)
References Init(), m_Plant, and m_Seed
void ~Slot()

Constants 1

static const int FERTILIZER_USAGE = 200
Referenced by Init()

Members 19

private int m_WaterQuantity
Referenced by CanBeWatered(), GetWater(), GiveWater()
Show 3 more, Init(), NeedsWater(), and SetWater()
static private int m_WaterNeeded = 190

How much water is needed to water a plant from a bottle. Value is in mililitres

Referenced by GetWaterUsage()
static private int m_WaterMax = 200
Referenced by GetWaterMax(), and SetWater()
float m_FertilizerQuantityMax

how much of a fertilizer can the slot contain

int m_slotIndex
Referenced by GetSlotIndex(), and SetSlotIndex()
int m_slotId
Referenced by GetSlotId(), and SetSlotId()
string m_FertilizerType = ""
int m_FertilityState = eFertlityState.NONE
int m_WateredState = eWateredState.DRY
Referenced by GetWateredState(), GiveWater(), Init()
Show 2 more, OnStoreSaveCustom(), and SetWateredState()
string m_DiggedSlotComponent

example: "Component02" for the 1st slot in GardenBase

private ItemBase m_Seed
Referenced by GetSeed(), HasSeed(), SetSeed()
Show 1 more, Slot()
float m_HarvestingEfficiency
int m_State
private PlantBase m_Plant
Referenced by ~Slot(), GetPlant(), Init()
Show 2 more, SetPlant(), and Slot()

Methods 40

void SetSlotIndex(int index)
References m_slotIndex
void SetSlotId(int id)
References m_slotId
void SetGarden(GardenBase garden)
References m_Garden
GardenBase GetGarden()
References m_Garden
Referenced by GiveWater()
void SetSeed(ItemBase seed)
References m_Seed
bool HasSeed()
References m_Seed
bool NeedsWater()

This is here in case we want to support dry out the slot in the future

bool CanBeWatered()
float GetFertility()
References m_Fertility
void SetFertility(float fertility)
References m_Fertility
void SetFertilizerQuantityMax(float quantMax)
void SetWateredState(int newState)
float GetWaterMax()
References m_WaterMax
bool IsDigged()
References m_State
bool IsPlanted()
References m_State
void SetSlotComponent(string component)
string GetSlotComponent()