Indicators
This commit is contained in:
+1
-6
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user