Class FarmManager
Holds the main gameplay logic during the farm management scene (phases 1, 2, 3). Handles the irrigation button and harvest button logic.
Namespace: Global
Assembly: cs.temp.dll.dll
Syntax
public class FarmManager : MonoBehaviour
Fields
HarvestLabour
Labour cost of selecting a plot cell to be harvested.
Declaration
public const int HarvestLabour = 1
Field Value
Type | Description |
---|---|
int |
IrrigationLabour
Labour cost of selecting a plot cell to be irrigated.
Declaration
public const int IrrigationLabour = 2
Field Value
Type | Description |
---|---|
int |
SelectedCells
Selected farm plot cells during phases 1/2.
Declaration
public static List<FarmPlotCell> SelectedCells
Field Value
Type | Description |
---|---|
List<FarmPlotCell> |
Properties
LabourPoints
How many labour points you currently have in this phase.
Declaration
public static int LabourPoints { get; set; }
Property Value
Type | Description |
---|---|
int |
SelectedTool
The tool currently selected during phase 3.
Declaration
public static string SelectedTool { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
ClearSelectedCells()
Deselect all farm plot cells.
Declaration
public static void ClearSelectedCells()
HarvestSelectedCells()
Harvests all selected farm cells.
Declaration
public static void HarvestSelectedCells()
IrrigateSelectedCells()
Harvests all selected farm cells.
Declaration
public static void IrrigateSelectedCells()