aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/map/Province.hpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-04-24 00:59:36 +0200
committer hop311 <hop3114@gmail.com>2024-04-24 00:59:36 +0200
commitef770b37ee841cca6899d1c91c3997365a8e8bb6 (patch)
treea23a97bd30aa6cb6b2731cd96c1d6c7e3d4bf4b9 /src/openvic-simulation/map/Province.hpp
parentd0f8ec5484a0ea49d778c0ebb6c2ba2e6df9b7d1 (diff)
Province text info functionsprovince-text
Diffstat (limited to 'src/openvic-simulation/map/Province.hpp')
-rw-r--r--src/openvic-simulation/map/Province.hpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/openvic-simulation/map/Province.hpp b/src/openvic-simulation/map/Province.hpp
index cfe5ed6..bfbeab2 100644
--- a/src/openvic-simulation/map/Province.hpp
+++ b/src/openvic-simulation/map/Province.hpp
@@ -69,9 +69,9 @@ namespace OpenVic {
struct province_positions_t {
/* Province name placement */
- std::optional<fvec2_t> text;
- std::optional<fvec2_t> text_rotation;
- std::optional<fvec2_t> text_scale;
+ std::optional<fvec2_t> text_position;
+ std::optional<fixed_point_t> text_rotation;
+ std::optional<fixed_point_t> text_scale;
/* Model positions */
std::optional<fvec2_t> unit;
@@ -141,6 +141,10 @@ namespace OpenVic {
/* The positions' y coordinates need to be inverted. */
bool load_positions(Map const& map, BuildingTypeManager const& building_type_manager, ast::NodeCPtr root);
+ fvec2_t get_text_position() const;
+ fixed_point_t get_text_rotation() const;
+ fixed_point_t get_text_scale() const;
+
bool expand_building(size_t building_index);
/* This returns a pointer to the position of the specified building type, or nullptr if none exists. */
fvec2_t const* get_building_position(BuildingType const* building_type) const;