Indicators

This commit is contained in:
Kirill
2026-04-05 20:15:07 +03:00
parent 3b953b8713
commit 81fe51ff4e
84 changed files with 1961 additions and 248 deletions
+1 -6
View File
@@ -18,12 +18,11 @@ var Owniverse: Dictionary = {
"fleet": {},
"inventory": {},
}
var Entities: Dictionary = {}
var Locales: Dictionary = {}
var Locale = "en"
var speed: int = 1
var Entities: Dictionary = {}
func get_localized_item_description(entity_id: String, item: String) -> String:
if Locales[Locale].has(entity_id):
@@ -31,14 +30,10 @@ func get_localized_item_description(entity_id: String, item: String) -> String:
return ""
func _ready() -> void:
# Initialize datetime with current adventure time
Owniverse["datetime"] = Datetime.init_datetime()
Entities = _read_from_csv("res://Autoload/entities.csv")
Locales["en"] = _read_from_csv("res://Autoload/locale.en.csv")
Locales["ru"] = _read_from_csv("res://Autoload/locale.ru.csv")
#_print_dict(Entities)
func _read_from_csv(file_path: String) -> Dictionary:
if not FileAccess.file_exists(file_path):