aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/singletons/GameSingleton.hpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-03-06 20:14:42 +0100
committer GitHub <noreply@github.com>2024-03-06 20:14:42 +0100
commit8ccddb71dd634ed3fbb31df9994f0a71dd1d81d1 (patch)
tree851a3ad589bab71364d4c6adcb1ee30235abc2c7 /extension/src/openvic-extension/singletons/GameSingleton.hpp
parenteaae420cd2aca224d15f6276624c2fab882c978a (diff)
parent444134a93bd5c704f5201ff30371dc81d0669e46 (diff)
Merge pull request #212 from OpenVicProject/menu-singleton
Move GDExtension menu-related functions to MenuSingleton
Diffstat (limited to 'extension/src/openvic-extension/singletons/GameSingleton.hpp')
-rw-r--r--extension/src/openvic-extension/singletons/GameSingleton.hpp22
1 files changed, 1 insertions, 21 deletions
diff --git a/extension/src/openvic-extension/singletons/GameSingleton.hpp b/extension/src/openvic-extension/singletons/GameSingleton.hpp
index a2b15cd..e84e366 100644
--- a/extension/src/openvic-extension/singletons/GameSingleton.hpp
+++ b/extension/src/openvic-extension/singletons/GameSingleton.hpp
@@ -13,7 +13,7 @@ namespace OpenVic {
static inline GameSingleton* singleton = nullptr;
- GameManager PROPERTY(game_manager);
+ GameManager PROPERTY_REF(game_manager);
Dataloader PROPERTY(dataloader);
godot::Vector2i image_subdivisions;
@@ -59,10 +59,6 @@ namespace OpenVic {
int32_t get_province_index_from_uv_coords(godot::Vector2 const& coords) const;
- /* Get info to display in Province Overview Panel, packaged in
- * a Dictionary using StringName constants as keys. */
- godot::Dictionary get_province_info_from_index(int32_t index) const;
-
int32_t get_map_width() const;
int32_t get_map_height() const;
float get_map_aspect_ratio() const;
@@ -94,22 +90,6 @@ namespace OpenVic {
int32_t get_selected_province_index() const;
void set_selected_province(int32_t index);
- int32_t get_province_building_count() const;
- godot::String get_province_building_identifier(int32_t building_index) const;
- godot::Error expand_selected_province_building(int32_t building_index);
- 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;
-
- 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;
void try_tick();
};
}