aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/history/Bookmark.hpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-07-19 21:35:31 +0200
committer GitHub <noreply@github.com>2024-07-19 21:35:31 +0200
commitd1f3a96b72dd06b5f97dd4643e5f016a02b42ea6 (patch)
tree38015e5729afbb98cf520e2cf26d8a4623d32f2f /src/openvic-simulation/history/Bookmark.hpp
parente0518bee9b4c164f40716a8033b5e207c2060c0b (diff)
parent03647d2249f72b6545628bb844685f87c4581062 (diff)
Merge pull request #176 from OpenVicProject/format-cleanup
Cleanup: inheritance, const movable variables, code formatting
Diffstat (limited to 'src/openvic-simulation/history/Bookmark.hpp')
-rw-r--r--src/openvic-simulation/history/Bookmark.hpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/openvic-simulation/history/Bookmark.hpp b/src/openvic-simulation/history/Bookmark.hpp
index 6f30586..d945d41 100644
--- a/src/openvic-simulation/history/Bookmark.hpp
+++ b/src/openvic-simulation/history/Bookmark.hpp
@@ -9,19 +9,23 @@
namespace OpenVic {
struct BookmarkManager;
- struct Bookmark : HasIdentifier {
+ struct Bookmark : HasIdentifier, HasIndex<> {
friend struct BookmarkManager;
private:
- const std::string PROPERTY(name);
- const std::string PROPERTY(description);
+ 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);
Bookmark(
- size_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
+ 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
);
public: