aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/defines/GraphicsDefines.hpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-10-31 21:50:36 +0100
committer GitHub <noreply@github.com>2024-10-31 21:50:36 +0100
commitb602c10cf890c5973c1efbe8d958bf9b67499efe (patch)
tree3b34e78831ab11d6333ce2822b10244995a69848 /src/openvic-simulation/defines/GraphicsDefines.hpp
parent968c60580997d26035496cc675138e580354332f (diff)
parentdbf58b1b1d318b4a82cf22b5b8e720c753388f4b (diff)
Merge pull request #222 from OpenVicProject/defines-variables
Load defines directly into named and typed variables rather than using an IdentifierRegistry
Diffstat (limited to 'src/openvic-simulation/defines/GraphicsDefines.hpp')
-rw-r--r--src/openvic-simulation/defines/GraphicsDefines.hpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/openvic-simulation/defines/GraphicsDefines.hpp b/src/openvic-simulation/defines/GraphicsDefines.hpp
new file mode 100644
index 0000000..f4cd7e2
--- /dev/null
+++ b/src/openvic-simulation/defines/GraphicsDefines.hpp
@@ -0,0 +1,30 @@
+#pragma once
+
+#include "openvic-simulation/dataloader/NodeTools.hpp"
+#include "openvic-simulation/utility/Getters.hpp"
+
+namespace OpenVic {
+ struct DefineManager;
+
+ struct GraphicsDefines {
+ friend struct DefineManager;
+
+ private:
+ size_t PROPERTY(cities_sprawl_offset);
+ size_t PROPERTY(cities_sprawl_width);
+ size_t PROPERTY(cities_sprawl_height);
+ size_t PROPERTY(cities_sprawl_iterations);
+ size_t PROPERTY(cities_mesh_pool_size_for_country);
+ size_t PROPERTY(cities_mesh_pool_size_for_culture);
+ size_t PROPERTY(cities_mesh_pool_size_for_generic);
+ size_t PROPERTY(cities_mesh_types_count);
+ size_t PROPERTY(cities_mesh_sizes_count);
+ size_t PROPERTY(cities_special_buildings_pool_size);
+ size_t PROPERTY(cities_size_max_population_k);
+
+ GraphicsDefines();
+
+ std::string_view get_name() const;
+ NodeTools::node_callback_t expect_defines();
+ };
+}