aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/history/Bookmark.hpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-07-24 01:05:45 +0200
committer hop311 <hop3114@gmail.com>2024-07-24 01:05:45 +0200
commita9a88a481dbae11eddd6c2268014923a955e38c3 (patch)
tree997ac4ffbbc6e19f2ae606607223fba7ee64e688 /src/openvic-simulation/history/Bookmark.hpp
parentd1f3a96b72dd06b5f97dd4643e5f016a02b42ea6 (diff)
Load bookmark position as fvec2_t with height flippedbookmark-position
Diffstat (limited to 'src/openvic-simulation/history/Bookmark.hpp')
-rw-r--r--src/openvic-simulation/history/Bookmark.hpp11
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;
};