aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/history/DiplomaticHistory.hpp
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-12-01 20:03:03 +0100
committer zaaarf <zaaarf@proton.me>2023-12-01 20:03:03 +0100
commit2d76e0766f0d65ffd8c9eb19eaec705445f91af0 (patch)
treea3ba37c2d652b95085ac8cf72a25941da26498ad /src/openvic-simulation/history/DiplomaticHistory.hpp
parenta54898b7770e0d66b729216173960686c67e58bb (diff)
feat: replaced REF_GETTERS with PROPERTY_REF, added PROPERTY_CUSTOM_PREFIX
Diffstat (limited to 'src/openvic-simulation/history/DiplomaticHistory.hpp')
-rw-r--r--src/openvic-simulation/history/DiplomaticHistory.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/openvic-simulation/history/DiplomaticHistory.hpp b/src/openvic-simulation/history/DiplomaticHistory.hpp
index 3ed253f..4d620b5 100644
--- a/src/openvic-simulation/history/DiplomaticHistory.hpp
+++ b/src/openvic-simulation/history/DiplomaticHistory.hpp
@@ -19,7 +19,7 @@ namespace OpenVic {
friend struct DiplomaticHistoryManager;
private:
- Date PROPERTY_CUSTOM_NAME(added, get_date_added);
+ Date PROPERTY_CUSTOM_PREFIX(added, get_date);
Country const* PROPERTY(actor);
Country const* PROPERTY(receiver);
WargoalType const* PROPERTY(wargoal);
@@ -34,8 +34,8 @@ namespace OpenVic {
private:
Country const* PROPERTY(country);
- Date PROPERTY_CUSTOM_NAME(joined, get_date_joined);
- std::optional<Date> PROPERTY_CUSTOM_NAME(exited, get_date_exited);
+ Date PROPERTY_CUSTOM_PREFIX(joined, get_date);
+ std::optional<Date> PROPERTY_CUSTOM_PREFIX(exited, get_date);
war_participant_t(Country const* new_country, Date new_joined, std::optional<Date> new_exited);
};
@@ -73,7 +73,7 @@ namespace OpenVic {
private:
Country const* PROPERTY(overlord);
Country const* PROPERTY(subject);
- const type_t PROPERTY_CUSTOM_NAME(type, get_subject_type);
+ const type_t PROPERTY_CUSTOM_PREFIX(type, get_subject);
const Date start;
const Date end;