aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/map/Province.hpp
diff options
context:
space:
mode:
author Joel Machens <ajmach6@gmail.com>2023-10-03 00:09:45 +0200
committer BrickPi <49528459+BrickPi@users.noreply.github.com>2023-10-03 17:32:25 +0200
commit470d8c45522543aa161b3b98c5e6991024c8a5af (patch)
treea6733d661a1c622651908523631fd85a9227cd57 /src/openvic-simulation/map/Province.hpp
parenteb49a207014da4f60617453c4d6a3ca355c661df (diff)
Implement positions.txt Loading
Diffstat (limited to 'src/openvic-simulation/map/Province.hpp')
-rw-r--r--src/openvic-simulation/map/Province.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/openvic-simulation/map/Province.hpp b/src/openvic-simulation/map/Province.hpp
index e15d8d3..a621182 100644
--- a/src/openvic-simulation/map/Province.hpp
+++ b/src/openvic-simulation/map/Province.hpp
@@ -39,6 +39,25 @@ namespace OpenVic {
flags_t get_flags() const;
};
+ struct province_positions_t {
+ fvec2_t text;
+ fixed_point_t text_rotation;
+ fixed_point_t text_scale;
+ fvec2_t unit;
+ fvec2_t city;
+ fvec2_t factory;
+ fvec2_t building_construction;
+ fvec2_t military_construction;
+ fvec2_t fort;
+ fixed_point_t fort_rotation;
+ fvec2_t railroad;
+ fixed_point_t railroad_rotation;
+ fvec2_t navalbase;
+ fixed_point_t navalbase_rotation;
+ /* fvec2_t spawn_railway_track; treating as extraneous until proven need */
+ };
+
+
static constexpr index_t NULL_INDEX = 0, MAX_INDEX = std::numeric_limits<index_t>::max();
private:
@@ -55,6 +74,7 @@ namespace OpenVic {
distribution_t pop_types, cultures, religions;
std::vector<adjacency_t> adjacencies;
+ province_positions_t positions;
TerrainType const* terrain_type = nullptr;