/// <summary>
 /// Performs the custom processing of the worker problem timer.
 /// </summary>
 /// <param name="buildingId">The ID of the building to process.</param>
 /// <param name="oldValue">The old value of the worker problem timer.</param>
 /// <param name="newValue">The new value of the worker problem timer.</param>
 public void ProcessWorkerProblems(ushort buildingId, byte oldValue, byte newValue)
 {
     if (timeInfo.IsNightTime || timeInfo.Now.Minute % ProblemTimersInterval != 0 || minuteProcessed)
     {
         buildingManager.SetWorkersProblemTimer(buildingId, oldValue);
     }
 }
示例#2
0
 /// <summary>
 /// Performs the custom processing of the worker problem timer.
 /// </summary>
 /// <param name="buildingId">The ID of the building to process.</param>
 /// <param name="oldValue">The old value of the worker problem timer.</param>
 public void ProcessWorkerProblems(ushort buildingId, byte oldValue)
 {
     // We force the problem timer to pause at night time.
     // In the daytime, the timer is running slower.
     if (timeInfo.IsNightTime || timeInfo.Now.Minute % ProblemTimersInterval != 0 || freezeProblemTimers)
     {
         buildingManager.SetWorkersProblemTimer(buildingId, oldValue);
     }
 }