Am Lightning System gearbeitet

This commit is contained in:
2026-07-17 11:23:44 +02:00
parent cdaaba3841
commit 5ed7b4017c
23 changed files with 928 additions and 164 deletions

View File

@@ -37,7 +37,10 @@ public class DayTime {
/** Tageszeit 0.01.0. */
public float getTimeOfDay() { return timeOfDay; }
public void setTimeOfDay(float t) { timeOfDay = ((t % 1f) + 1f) % 1f; }
public void setTimeOfDay(float t) {
timeOfDay = ((t % 1f) + 1f) % 1f;
for (TimeListener l : listeners) l.onTimeChanged(timeOfDay);
}
/** @param seconds Echtzeit-Sekunden pro Spieltag */
public void setDayDuration(float seconds) { timeScale = 1f / seconds; }