This commit is contained in:
Simon Lübeß
2024-04-08 19:08:37 +02:00
parent 03c7dc8b9e
commit 9efd40b480
14 changed files with 1562 additions and 1959 deletions

View File

@ -40,6 +40,19 @@ public class TimeManager : MonoBehaviourSingleton<TimeManager>
/// </summary>
public DateTime Deadline => _deadline;
public DateTime PredictedEndDate
{
get
{
double realSeconds = GameManager.Instance.ExpectedRemainingGameDuration;
double gameDays = realSeconds / _secondsPerDay;
return CurrentDate.AddDays(gameDays);
}
}
public bool PredictedMissesDeadline => PredictedEndDate > Deadline;
/// <summary>
/// Wie viele Sekunden ein Tag im Spiel hat
/// </summary>