diff options
author | hop311 <hop3114@gmail.com> | 2023-12-25 01:22:01 +0100 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2023-12-25 01:22:01 +0100 |
commit | 48204950cd8d48e6df26ed6892f57b3d9da823de (patch) | |
tree | 99822c48f16eb1495f7ea9fe669bcb43e7a6001c /src/openvic-simulation/map/Map.hpp | |
parent | bf4e7368600bb425b6612231fbb84de34ec99a27 (diff) |
Province building scaffolding
Diffstat (limited to 'src/openvic-simulation/map/Map.hpp')
-rw-r--r-- | src/openvic-simulation/map/Map.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/openvic-simulation/map/Map.hpp b/src/openvic-simulation/map/Map.hpp index 9cee86b..e477b38 100644 --- a/src/openvic-simulation/map/Map.hpp +++ b/src/openvic-simulation/map/Map.hpp @@ -72,7 +72,7 @@ namespace OpenVic { colour_index_map_t colour_index_map; Province::index_t PROPERTY(max_provinces); - Province::index_t PROPERTY(selected_province_index); + Province* PROPERTY(selected_province); Pop::pop_size_t PROPERTY(highest_province_population) Pop::pop_size_t PROPERTY(total_map_population); @@ -94,7 +94,8 @@ namespace OpenVic { Province::index_t get_province_index_at(size_t x, size_t y) const; bool set_max_provinces(Province::index_t new_max_provinces); void set_selected_province(Province::index_t index); - Province const* get_selected_province() const; + Province* get_selected_province(); + Province::index_t get_selected_province_index() const; bool add_region(std::string_view identifier, std::vector<std::string_view> const& province_identifiers); IDENTIFIER_REGISTRY_NON_CONST_ACCESSORS(region) |