diff options
author | Hop311 <hop3114@gmail.com> | 2023-04-08 01:23:43 +0200 |
---|---|---|
committer | Hop311 <hop3114@gmail.com> | 2023-04-08 01:23:43 +0200 |
commit | d8a747ad3cc643a2320d798646d7c0f74c1babb1 (patch) | |
tree | 1fddf96cb5b8130b18bc2bb013dbb6926d3a889f /game/src | |
parent | 246d1952e273557e432f4fa2fc86b7c48aa79a0c (diff) |
Region loading and mapmode.
Diffstat (limited to 'game/src')
-rw-r--r-- | game/src/Autoload/Events.gd | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/game/src/Autoload/Events.gd b/game/src/Autoload/Events.gd index 040cb06..c2f96d5 100644 --- a/game/src/Autoload/Events.gd +++ b/game/src/Autoload/Events.gd @@ -4,10 +4,13 @@ var Options = preload("Events/Options.gd").new() var Localisation = preload("Events/Localisation.gd").new() const _province_identifier_file : String = "res://common/map/provinces.json" +const _region_file : String = "res://common/map/regions.json" const _province_shape_file : String = "res://common/map/provinces.png" func _ready(): if MapSingleton.load_province_identifier_file(_province_identifier_file) != OK: push_error("Failed to load province identifiers") + if MapSingleton.load_region_file(_region_file) != OK: + push_error("Failed to load regions") if MapSingleton.load_province_shape_file(_province_shape_file) != OK: push_error("Failed to load province shapes") |