Am Lightning System gearbeitet
This commit is contained in:
@@ -37,7 +37,10 @@ public class DayTime {
|
||||
/** Tageszeit 0.0–1.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; }
|
||||
|
||||
Reference in New Issue
Block a user