You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
492 B
29 lines
492 B
namespace Babushka.scripts.CSharp.Common.Farming;
|
|
|
|
public static class WateringCanState
|
|
{
|
|
private static int _fillstate = 0;
|
|
|
|
public const int MAX_FILLSTATE = 6;
|
|
|
|
public static void Fill()
|
|
{
|
|
_fillstate = MAX_FILLSTATE;
|
|
}
|
|
|
|
public static void Water()
|
|
{
|
|
if(_fillstate > 0)
|
|
_fillstate--;
|
|
}
|
|
|
|
public static void Reset()
|
|
{
|
|
_fillstate = 0;
|
|
}
|
|
|
|
public static int GetFillState()
|
|
{
|
|
return _fillstate;
|
|
}
|
|
} |