From b29e3b4d5c18c26efe2d531ca4decc94d0810b61 Mon Sep 17 00:00:00 2001 From: Conor Allison Date: Sun, 3 Mar 2024 11:08:00 +0000 Subject: Tech loading from sim Wrote C++ functions to get tech data loading from the sim to godot --- .../Game/GameSession/NationManagementScreen/TechnologyMenu.gd | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'game/src') 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) -- cgit v1.2.3-56-ga3b1