aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game
diff options
context:
space:
mode:
author Conor Allison <conoboy137@hotmail.co.uk>2024-03-03 12:08:00 +0100
committer Conor Allison <conoboy137@hotmail.co.uk>2024-03-03 12:08:00 +0100
commitb29e3b4d5c18c26efe2d531ca4decc94d0810b61 (patch)
tree39a7297aae3cbd85a1107236025b999a6e6d63fb /game/src/Game
parent92a43a51c898e42e7290c1e2421f57d9b9500a16 (diff)
Tech loading from sim
Wrote C++ functions to get tech data loading from the sim to godot
Diffstat (limited to 'game/src/Game')
-rw-r--r--game/src/Game/GameSession/NationManagementScreen/TechnologyMenu.gd9
1 files changed, 9 insertions, 0 deletions
diff --git a/game/src/Game/GameSession/NationManagementScreen/TechnologyMenu.gd b/game/src/Game/GameSession/NationManagementScreen/TechnologyMenu.gd
index 41dc2c8..7c8dfef 100644
--- a/game/src/Game/GameSession/NationManagementScreen/TechnologyMenu.gd
+++ b/game/src/Game/GameSession/NationManagementScreen/TechnologyMenu.gd
@@ -12,9 +12,18 @@ var tech_groups = []
var tech_window : Control = generate_gui_element("country_technology", "tech_window")
var tech_windows = generate_tech_windows(5,6)
+var tech_folder_dict : Dictionary
+var tech_area_dict : Dictionary
+var tech_dict : Dictionary
+
+
+
func _ready() -> void:
+ tech_folder_dict = GameSingleton.get_tech_folders()
+ tech_area_dict = GameSingleton.get_tech_areas()
+ tech_dict = GameSingleton.get_technologies()
GameSingleton.gamestate_updated.connect(_update_info)
add_child(country_technology)
Events.NationManagementScreens.update_active_nation_management_screen.connect(_on_update_active_nation_management_screen)