diff options
author | Hop311 <Hop3114@gmail.com> | 2024-07-24 09:58:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-24 09:58:52 +0200 |
commit | 861acff78bd238232ed9e369ea046c2ed4a31198 (patch) | |
tree | 34106af818aa548d7a0ff14b24fbb99617303a7d /src/openvic-simulation/history/Bookmark.hpp | |
parent | 6cd55c452d1643666ff4169a89402fd3e3b66c61 (diff) | |
parent | a9a88a481dbae11eddd6c2268014923a955e38c3 (diff) |
Merge pull request #179 from OpenVicProject/bookmark-position
Load bookmark position as fvec2_t with height flipped
Diffstat (limited to 'src/openvic-simulation/history/Bookmark.hpp')
-rw-r--r-- | src/openvic-simulation/history/Bookmark.hpp | 11 |
1 files changed, 4 insertions, 7 deletions
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; }; |