aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/history/Bookmark.hpp
diff options
context:
space:
mode:
author Spartan322 <Megacake1234@gmail.com>2023-10-17 12:08:30 +0200
committer Spartan322 <Megacake1234@gmail.com>2023-10-17 21:07:35 +0200
commit81f68d59f0e9cf6fa183a86db7128580ea7a986a (patch)
treef227cc7e896ce5be07816919342da0bf580f47e6 /src/openvic-simulation/history/Bookmark.hpp
parentb0a1dc5adef58671c1f1b8a73c7a8b9b26bb84ac (diff)
Make Bookmarks indexed by indices
Diffstat (limited to 'src/openvic-simulation/history/Bookmark.hpp')
-rw-r--r--src/openvic-simulation/history/Bookmark.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openvic-simulation/history/Bookmark.hpp b/src/openvic-simulation/history/Bookmark.hpp
index ec230ca..63e1b3b 100644
--- a/src/openvic-simulation/history/Bookmark.hpp
+++ b/src/openvic-simulation/history/Bookmark.hpp
@@ -20,7 +20,7 @@ namespace OpenVic {
const uint32_t initial_camera_y;
Bookmark(
- std::string_view new_identifier,
+ size_t new_index,
std::string_view new_name,
std::string_view new_description,
Date new_date,
@@ -45,7 +45,7 @@ namespace OpenVic {
public:
BookmarkManager();
- bool add_bookmark(std::string_view identifier, std::string_view name, std::string_view description, Date date, uint32_t initial_camera_x, uint32_t initial_camera_y);
+ bool add_bookmark(std::string_view name, std::string_view description, Date date, uint32_t initial_camera_x, uint32_t initial_camera_y);
IDENTIFIER_REGISTRY_ACCESSORS(bookmark);
bool load_bookmark_file(ast::NodeCPtr root);