aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/history/CountryHistory.hpp
diff options
context:
space:
mode:
author zaaarf <80046572+zaaarf@users.noreply.github.com>2023-12-10 01:48:54 +0100
committer GitHub <noreply@github.com>2023-12-10 01:48:54 +0100
commitb3d0af96e5820e38f94bcfa04130768da99c8360 (patch)
tree08ab46ed8401179c0d29a4e6a26f21c04c34cf6e /src/openvic-simulation/history/CountryHistory.hpp
parentabb0804b015d8444542af7a6c5db728c0fde4cfb (diff)
parent2c562ac2d29942844f0aa4c44339ddd88489db8a (diff)
Merge pull request #87 from OpenVicProject/dataloading-country-history-2
Dataloading Country History - Part 2
Diffstat (limited to 'src/openvic-simulation/history/CountryHistory.hpp')
-rw-r--r--src/openvic-simulation/history/CountryHistory.hpp23
1 files changed, 19 insertions, 4 deletions
diff --git a/src/openvic-simulation/history/CountryHistory.hpp b/src/openvic-simulation/history/CountryHistory.hpp
index ed200bf..af7d502 100644
--- a/src/openvic-simulation/history/CountryHistory.hpp
+++ b/src/openvic-simulation/history/CountryHistory.hpp
@@ -1,7 +1,7 @@
#pragma once
#include <map>
-#include <vector>
+#include <optional>
#include "openvic-simulation/country/Country.hpp"
#include "openvic-simulation/history/Bookmark.hpp"
@@ -16,6 +16,8 @@
#include "openvic-simulation/pop/Religion.hpp"
#include "openvic-simulation/types/Colour.hpp"
#include "openvic-simulation/types/Date.hpp"
+#include "openvic-simulation/research/Invention.hpp"
+#include "openvic-simulation/research/Technology.hpp"
namespace OpenVic {
struct CountryHistoryMap;
@@ -36,12 +38,25 @@ namespace OpenVic {
std::optional<GovernmentType const*> PROPERTY(government_type);
std::optional<fixed_point_t> PROPERTY(plurality);
std::optional<NationalValue const*> PROPERTY(national_value);
- std::optional<bool> PROPERTY(civilised);
+ std::optional<bool> PROPERTY_CUSTOM_PREFIX(civilised, is);
std::optional<fixed_point_t> PROPERTY(prestige);
std::vector<Reform const*> PROPERTY(reforms);
std::optional<Deployment const*> PROPERTY(inital_oob);
- // TODO: technologies, tech schools, and inventions when PR#51 merged
- // TODO: starting foreign investment
+ std::optional<TechnologySchool const*> PROPERTY(tech_school);
+ std::map<Technology const*, bool> PROPERTY(technologies);
+ std::map<Invention const*, bool> PROPERTY(inventions);
+ fixed_point_map_t<Country const*> PROPERTY(foreign_investment);
+ std::optional<fixed_point_t> PROPERTY(consciousness);
+ std::optional<fixed_point_t> PROPERTY(nonstate_consciousness);
+ std::optional<fixed_point_t> PROPERTY(literacy);
+ std::optional<fixed_point_t> PROPERTY(nonstate_culture_literacy);
+ std::optional<bool> PROPERTY_CUSTOM_PREFIX(releasable_vassal, is);
+ std::optional<fixed_point_t> PROPERTY(colonial_points);
+ string_set_t PROPERTY(country_flags);
+ string_set_t PROPERTY(global_flags);
+ std::map<GovernmentType const*, std::string> PROPERTY(government_flags);
+
+ //TODO: decisions
CountryHistoryEntry(Country const& new_country, Date new_date);
};