From a9a88a481dbae11eddd6c2268014923a955e38c3 Mon Sep 17 00:00:00 2001 From: hop311 Date: Wed, 24 Jul 2024 00:05:45 +0100 Subject: Load bookmark position as fvec2_t with height flipped --- src/openvic-simulation/history/Bookmark.hpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/openvic-simulation/history/Bookmark.hpp') diff --git a/src/openvic-simulation/history/Bookmark.hpp b/src/openvic-simulation/history/Bookmark.hpp index d945d41..b49cbe9 100644 --- a/src/openvic-simulation/history/Bookmark.hpp +++ b/src/openvic-simulation/history/Bookmark.hpp @@ -16,16 +16,14 @@ namespace OpenVic { std::string PROPERTY(name); std::string PROPERTY(description); const Date PROPERTY(date); - const uint32_t PROPERTY(initial_camera_x); - const uint32_t PROPERTY(initial_camera_y); + const fvec2_t PROPERTY(initial_camera_position); Bookmark( index_t new_index, std::string_view new_name, std::string_view new_description, Date new_date, - uint32_t new_initial_camera_x, - uint32_t new_initial_camera_y + fvec2_t new_initial_camera_position ); public: @@ -38,10 +36,9 @@ namespace OpenVic { public: bool add_bookmark( - std::string_view name, std::string_view description, Date date, uint32_t initial_camera_x, - uint32_t initial_camera_y + std::string_view name, std::string_view description, Date date, fvec2_t initial_camera_position ); - bool load_bookmark_file(ast::NodeCPtr root); + bool load_bookmark_file(fixed_point_t map_height, ast::NodeCPtr root); Date get_last_bookmark_date() const; }; -- cgit v1.2.3-56-ga3b1