diff options
author | Hop311 <Hop3114@gmail.com> | 2023-12-25 13:21:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-25 13:21:38 +0100 |
commit | bff91f78f9c5339079c10adfbf8232e5159c1a2d (patch) | |
tree | a40b49f6dc155fc5c3c47b623926764642242677 /src/openvic-simulation/map/Map.hpp | |
parent | dcef842d5e070854913f9e61e4a1f485870ae703 (diff) | |
parent | 48204950cd8d48e6df26ed6892f57b3d9da823de (diff) |
Merge pull request #103 from OpenVicProject/province-buildings
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) |