/// <summary>
 /// Hook method for Time Change
 /// </summary>
 /// <param name="Event">TimeChangedEvent info</param>
 public virtual void onTimeChange(TimeChangedEvent Event)
 {
 }
Exemplo n.º 2
0
 public override void onTimeChange(TimeChangedEvent Event)
 {
     if (Math.Abs(Event.GetTime - lastTime) > 10000)
     {
         Program.tConsole.WriteLine("Saving house.xml");
         SaveHouseData();
         lastTime = Event.GetTime;
     }
      	        base.onTimeChange(Event);
 }