aboutsummaryrefslogtreecommitdiff
path: root/extension/src/GameSingleton.hpp
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-07-28 15:18:33 +0200
committer Hop311 <hop3114@gmail.com>2023-07-28 15:18:33 +0200
commit244a669311edc5136aaa730b31ef64fd9d56879d (patch)
tree2b08788e43e72106442ed74af78fdc67ef83f3ce /extension/src/GameSingleton.hpp
parentce9022d0df74d6c33db3686622be2050d873ab0b (diff)
First pass at pops (test pops and density mapmode)
Diffstat (limited to 'extension/src/GameSingleton.hpp')
-rw-r--r--extension/src/GameSingleton.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/extension/src/GameSingleton.hpp b/extension/src/GameSingleton.hpp
index 6c91de5..23eb334 100644
--- a/extension/src/GameSingleton.hpp
+++ b/extension/src/GameSingleton.hpp
@@ -7,20 +7,19 @@
namespace OpenVic {
struct TerrainVariant : HasIdentifier, HasColour {
+ friend class GameSingleton;
+
private:
const godot::Ref<godot::Image> image;
+ TerrainVariant(std::string const& new_identfier, colour_t new_colour,
+ godot::Ref<godot::Image> const& new_image);
public:
static constexpr size_t MAX_INDEX = 1 << (8 * sizeof(Map::terrain_t));
- TerrainVariant(std::string const& new_identfier, colour_t new_colour,
- godot::Ref<godot::Image> const& new_image)
- : HasIdentifier { new_identfier },
- HasColour { new_colour },
- image { new_image } {}
TerrainVariant(TerrainVariant&&) = default;
- godot::Ref<godot::Image> get_image() const { return image; }
+ godot::Ref<godot::Image> get_image() const;
};
class GameSingleton : public godot::Object {
GDCLASS(GameSingleton, godot::Object)
@@ -106,6 +105,7 @@ namespace OpenVic {
static godot::StringName const& get_province_info_province_key();
static godot::StringName const& get_province_info_region_key();
static godot::StringName const& get_province_info_life_rating_key();
+ static godot::StringName const& get_province_info_total_population_key();
static godot::StringName const& get_province_info_rgo_key();
static godot::StringName const& get_province_info_buildings_key();