public static void init ( BaseGrapeVine plant, bool full ) { plant.LastPick = DateTime.Now; plant.regrowTimer = new FruitTimer( plant ); if ( full ) { plant.Yield = plant.Capacity; } else { plant.Yield = 5; plant.regrowTimer.Start(); } }
public static void init(BaseGrapeVine plant, bool full) { plant.LastPick = DateTime.Now; plant.regrowTimer = new FruitTimer(plant); if (full) { plant.Yield = plant.Capacity; } else { plant.Yield = 5; plant.regrowTimer.Start(); } }
public FruitTimer( BaseGrapeVine plant ) : base( TimeSpan.FromSeconds( 60 ), TimeSpan.FromSeconds( 30 ) ) { Priority = TimerPriority.OneSecond; i_plant = plant; }
public FruitTimer(BaseGrapeVine plant) : base(TimeSpan.FromSeconds(60), TimeSpan.FromSeconds(30)) { Priority = TimerPriority.OneSecond; i_plant = plant; }