diff options
author | hop311 <hop3114@gmail.com> | 2024-10-31 20:29:34 +0100 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2024-10-31 20:54:50 +0100 |
commit | dbf58b1b1d318b4a82cf22b5b8e720c753388f4b (patch) | |
tree | d6d2be10697d6fa320f7f8da14eda45111bd9399 /src/openvic-simulation/defines/GraphicsDefines.hpp | |
parent | c763a0aedd834432b54b6e49c6bc7e1936be1131 (diff) |
Load defines directly into named and typed variables rather than using an IdentifierRegistrydefines-variables
Diffstat (limited to 'src/openvic-simulation/defines/GraphicsDefines.hpp')
-rw-r--r-- | src/openvic-simulation/defines/GraphicsDefines.hpp | 30 |
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(); + }; +} |