aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/singletons/GameSingleton.hpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-12-11 12:08:55 +0100
committer GitHub <noreply@github.com>2023-12-11 12:08:55 +0100
commit0b3a162d3db840996c3d89e65dfe9270faebffe5 (patch)
treeb22d464dbf8e0e2569b9be5aa130e4def2e51207 /extension/src/openvic-extension/singletons/GameSingleton.hpp
parenta6952efba078e49d6555b0586230986a2cb7ed40 (diff)
parentfd375bdb35d8a7b2ac9cf3dd02cdb0f197451a0b (diff)
Merge pull request #169 from OpenVicProject/guinode
Big UI commit - GUINode, MaskedFlag, PieChart, etc
Diffstat (limited to 'extension/src/openvic-extension/singletons/GameSingleton.hpp')
-rw-r--r--extension/src/openvic-extension/singletons/GameSingleton.hpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/extension/src/openvic-extension/singletons/GameSingleton.hpp b/extension/src/openvic-extension/singletons/GameSingleton.hpp
index 108fd28..5895899 100644
--- a/extension/src/openvic-extension/singletons/GameSingleton.hpp
+++ b/extension/src/openvic-extension/singletons/GameSingleton.hpp
@@ -25,10 +25,12 @@ namespace OpenVic {
godot::Ref<godot::ImageTexture> province_colour_texture;
Mapmode::index_t mapmode_index = 0;
godot::Ref<godot::Texture2DArray> terrain_texture;
+ std::map<Country const*, std::map<godot::StringName, godot::Ref<godot::Image>>> flag_image_map;
godot::Error _generate_terrain_texture_array();
godot::Error _load_map_images(bool flip_vertical);
godot::Error _load_terrain_variants();
+ godot::Error _load_flag_images();
/* Generate the province_colour_texture from the current mapmode. */
godot::Error _update_colour_image();
@@ -38,9 +40,6 @@ namespace OpenVic {
static void _bind_methods();
public:
-
- godot::Control* generate_gui(godot::String const& gui_file, godot::String const& gui_element);
-
static GameSingleton* get_singleton();
GameSingleton();
@@ -98,12 +97,18 @@ namespace OpenVic {
void set_selected_province(int32_t index);
godot::Error expand_building(int32_t province_index, godot::String const& building_type_identifier);
+ int32_t get_slave_pop_icon_index() const;
+ int32_t get_administrative_pop_icon_index() const;
+ int32_t get_rgo_owner_pop_icon_index() const;
+ static godot::String int_to_formatted_string(int64_t val);
+ static godot::String float_to_formatted_string(float val);
void set_paused(bool paused);
void toggle_paused();
bool is_paused() const;
void increase_speed();
void decrease_speed();
+ int32_t get_speed() const;
bool can_increase_speed() const;
bool can_decrease_speed() const;
godot::String get_longform_date() const;