Implement weather system and developer console features. Added functionality for setting weather conditions, temperature, and wind speed through a new developer console. Enhanced the vault scene to display current weather, temperature, and wind information, and updated game clock to allow time manipulation. Improved cloud rendering and introduced a new climate management system for seasonal temperature adjustments.
This commit is contained in:
@@ -102,6 +102,20 @@ func toggle() -> void:
|
||||
flow_changed.emit()
|
||||
|
||||
|
||||
## Перевести часы на указанный момент (словарь как у Time). Возвращает false,
|
||||
## если момент раньше начала партии — назад отматывать нечего.
|
||||
func set_moment(moment: Dictionary) -> bool:
|
||||
var target := int(Time.get_unix_time_from_datetime_dict(moment))
|
||||
if target < _start_unix:
|
||||
return false
|
||||
|
||||
_elapsed_minutes = float(target - _start_unix) / 60.0
|
||||
_last_whole_minute = int(_elapsed_minutes)
|
||||
_last_day = _day_index()
|
||||
minute_passed.emit(_last_whole_minute)
|
||||
return true
|
||||
|
||||
|
||||
# --- Сохранение -------------------------------------------------------------
|
||||
|
||||
func save_data() -> Dictionary:
|
||||
|
||||
Reference in New Issue
Block a user