aboutsummaryrefslogtreecommitdiff
path: root/extension/src/GameSingleton.hpp
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-04-26 13:06:19 +0200
committer Hop311 <hop3114@gmail.com>2023-04-26 13:06:19 +0200
commit2455806f52f0133e5bd5e4997589c5ce4fe99b2c (patch)
treea1882d8d3a4e836ec305dd0893b6eda5ec3dd230 /extension/src/GameSingleton.hpp
parent10053cf259c55ee45803268a844edf1011d8a16b (diff)
Vertical subdivision + calculation for both dims
Diffstat (limited to 'extension/src/GameSingleton.hpp')
-rw-r--r--extension/src/GameSingleton.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/extension/src/GameSingleton.hpp b/extension/src/GameSingleton.hpp
index d9879ef..35aec19 100644
--- a/extension/src/GameSingleton.hpp
+++ b/extension/src/GameSingleton.hpp
@@ -14,8 +14,9 @@ namespace OpenVic2 {
GameManager game_manager;
- static constexpr int image_width_divide = 2;
- godot::Ref<godot::Image> province_index_image[image_width_divide], province_colour_image;
+ godot::Vector2i image_subdivisions;
+ std::vector<godot::Ref<godot::Image>> province_index_images;
+ godot::Ref<godot::Image> province_colour_image;
Mapmode::index_t mapmode_index = 0;
godot::Error _parse_province_identifier_entry(godot::String const& identifier, godot::Variant const& entry);
@@ -40,6 +41,7 @@ namespace OpenVic2 {
godot::Dictionary get_province_info_from_index(int32_t index) const;
int32_t get_width() const;
int32_t get_height() const;
+ godot::Vector2i get_province_index_image_subdivisions() const;
godot::Array get_province_index_images() const;
godot::Ref<godot::Image> get_province_colour_image() const;