예제 #1
0
		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();
			}
		}
예제 #2
0
        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();
            }
        }
예제 #3
0
			public FruitTimer( BaseGrapeVine plant ) : base( TimeSpan.FromSeconds( 60 ), TimeSpan.FromSeconds( 30 ) )
			{
				Priority = TimerPriority.OneSecond;
				i_plant = plant;
			}
예제 #4
0
 public FruitTimer(BaseGrapeVine plant) : base(TimeSpan.FromSeconds(60), TimeSpan.FromSeconds(30))
 {
     Priority = TimerPriority.OneSecond;
     i_plant  = plant;
 }