diff options
author | Hop311 <hop3114@gmail.com> | 2023-04-28 20:08:58 +0200 |
---|---|---|
committer | Hop311 <hop3114@gmail.com> | 2023-04-28 20:08:58 +0200 |
commit | 5022ec800b096e9a85d6ef07ca4b652abb8625ee (patch) | |
tree | 899b97479f6a1aabbfe352747bea162ce5720193 /extension/src/GameSingleton.hpp | |
parent | 2455806f52f0133e5bd5e4997589c5ce4fe99b2c (diff) |
Terrain channel for provinces + generated minimap
Diffstat (limited to 'extension/src/GameSingleton.hpp')
-rw-r--r-- | extension/src/GameSingleton.hpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/extension/src/GameSingleton.hpp b/extension/src/GameSingleton.hpp index 35aec19..d17b950 100644 --- a/extension/src/GameSingleton.hpp +++ b/extension/src/GameSingleton.hpp @@ -2,7 +2,8 @@ #include <functional> -#include <godot_cpp/classes/image.hpp> +#include <godot_cpp/classes/image_texture.hpp> +#include <godot_cpp/classes/texture2d_array.hpp> #include "openvic2/GameManager.hpp" @@ -15,8 +16,9 @@ namespace OpenVic2 { GameManager game_manager; godot::Vector2i image_subdivisions; - std::vector<godot::Ref<godot::Image>> province_index_images; + godot::Ref<godot::Texture2DArray> province_shape_texture; godot::Ref<godot::Image> province_colour_image; + godot::Ref<godot::ImageTexture> province_colour_texture; Mapmode::index_t mapmode_index = 0; godot::Error _parse_province_identifier_entry(godot::String const& identifier, godot::Variant const& entry); @@ -41,9 +43,10 @@ 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; + float get_aspect_ratio() const; + godot::Vector2i get_province_shape_image_subdivisions() const; + godot::Ref<godot::Texture> get_province_shape_texture() const; + godot::Ref<godot::Texture> get_province_colour_texture() const; godot::Error update_colour_image(); int32_t get_mapmode_count() const; |