aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/map/Province.hpp
diff options
context:
space:
mode:
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;