aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/singletons/MenuSingleton.hpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-06-04 00:54:38 +0200
committer hop311 <hop3114@gmail.com>2024-06-06 21:30:56 +0200
commit0ba36e6762615d17605a573a036aff5bf84dfc95 (patch)
treeaea64483ffb003d74c0671f9f2a4db878a3b8cb3 /extension/src/openvic-extension/singletons/MenuSingleton.hpp
parentfb74bc86d194b50cb3277c7f367a5e5a0316c948 (diff)
Province const/mutable + proper State namesprovince-const-mutable
Diffstat (limited to 'extension/src/openvic-extension/singletons/MenuSingleton.hpp')
-rw-r--r--extension/src/openvic-extension/singletons/MenuSingleton.hpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/extension/src/openvic-extension/singletons/MenuSingleton.hpp b/extension/src/openvic-extension/singletons/MenuSingleton.hpp
index fd1b6c5..efce81f 100644
--- a/extension/src/openvic-extension/singletons/MenuSingleton.hpp
+++ b/extension/src/openvic-extension/singletons/MenuSingleton.hpp
@@ -7,7 +7,7 @@
namespace OpenVic {
struct GameManager;
- struct Region;
+ struct State;
class MenuSingleton : public godot::Object {
GDCLASS(MenuSingleton, godot::Object)
@@ -28,13 +28,12 @@ namespace OpenVic {
};
struct state_entry_t {
- // TODO - change to State
- Region const& state;
+ State const& state;
bool selected = true, expanded = false;
};
struct province_entry_t {
- Province const& province;
+ ProvinceInstance const& province;
bool selected = true;
};
@@ -80,6 +79,8 @@ namespace OpenVic {
/* Emitted when the selected/filtered collection of pops changes. */
static godot::StringName const& _signal_population_menu_pops_changed();
+ godot::String get_state_name(State const& state) const;
+
protected:
static void _bind_methods();