aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/history/Bookmark.hpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-11-22 23:11:42 +0100
committer GitHub <noreply@github.com>2023-11-22 23:11:42 +0100
commita54898b7770e0d66b729216173960686c67e58bb (patch)
treeaf8ed836a4789ef94c5bfed27abb713922f45af3 /src/openvic-simulation/history/Bookmark.hpp
parente76336cd92639f4ec71088fc4c80aea4c25528cd (diff)
parent738a203e0d8b4df87c42888043b99c13d5d97511 (diff)
Merge pull request #78 from OpenVicProject/property-macro
Refactoring (*mostly* related to the property macro)
Diffstat (limited to 'src/openvic-simulation/history/Bookmark.hpp')
-rw-r--r--src/openvic-simulation/history/Bookmark.hpp16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/openvic-simulation/history/Bookmark.hpp b/src/openvic-simulation/history/Bookmark.hpp
index d5253fe..18375fb 100644
--- a/src/openvic-simulation/history/Bookmark.hpp
+++ b/src/openvic-simulation/history/Bookmark.hpp
@@ -13,11 +13,11 @@ namespace OpenVic {
friend struct BookmarkManager;
private:
- const std::string name;
- const std::string description;
- const Date date;
- const uint32_t initial_camera_x;
- const uint32_t initial_camera_y;
+ const std::string PROPERTY(name);
+ const 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,
@@ -26,12 +26,6 @@ namespace OpenVic {
public:
Bookmark(Bookmark&&) = default;
-
- std::string_view get_name() const;
- std::string_view get_description() const;
- Date get_date() const;
- uint32_t get_initial_camera_x() const;
- uint32_t get_initial_camera_y() const;
};
struct BookmarkManager {