aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/map/Map.hpp
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-12-01 20:03:03 +0100
committer zaaarf <zaaarf@proton.me>2023-12-01 20:03:03 +0100
commit2d76e0766f0d65ffd8c9eb19eaec705445f91af0 (patch)
treea3ba37c2d652b95085ac8cf72a25941da26498ad /src/openvic-simulation/map/Map.hpp
parenta54898b7770e0d66b729216173960686c67e58bb (diff)
feat: replaced REF_GETTERS with PROPERTY_REF, added PROPERTY_CUSTOM_PREFIX
Diffstat (limited to 'src/openvic-simulation/map/Map.hpp')
-rw-r--r--src/openvic-simulation/map/Map.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/openvic-simulation/map/Map.hpp b/src/openvic-simulation/map/Map.hpp
index 4f87237..0999145 100644
--- a/src/openvic-simulation/map/Map.hpp
+++ b/src/openvic-simulation/map/Map.hpp
@@ -56,7 +56,7 @@ namespace OpenVic {
IdentifierRegistry<Region> regions;
IdentifierRegistry<Mapmode> mapmodes;
ProvinceSet water_provinces;
- TerrainTypeManager terrain_type_manager;
+ TerrainTypeManager PROPERTY_REF(terrain_type_manager);
size_t width = 0, height = 0;
std::vector<shape_pixel_t> province_shape_image;
@@ -92,7 +92,6 @@ namespace OpenVic {
size_t get_width() const;
size_t get_height() const;
std::vector<shape_pixel_t> const& get_province_shape_image() const;
- REF_GETTERS(terrain_type_manager)
bool add_region(std::string_view identifier, std::vector<std::string_view> const& province_identifiers);
IDENTIFIER_REGISTRY_ACCESSORS(region)