diff options
author | Spartan322 <Megacake1234@gmail.com> | 2023-10-30 02:07:46 +0100 |
---|---|---|
committer | Spartan322 <Megacake1234@gmail.com> | 2023-10-30 02:20:20 +0100 |
commit | aac85aeb4583c292966567ac120658f71fefd9b4 (patch) | |
tree | 5f69b6b64292cca76be1ab113a09345713db059b /src/openvic-simulation/history/ProvinceHistory.hpp | |
parent | 06cc0606156d009026930c785c62434276fbe782 (diff) |
Make add_province_history_entry use optionals
Diffstat (limited to 'src/openvic-simulation/history/ProvinceHistory.hpp')
-rw-r--r-- | src/openvic-simulation/history/ProvinceHistory.hpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/openvic-simulation/history/ProvinceHistory.hpp b/src/openvic-simulation/history/ProvinceHistory.hpp index 00ce212..42dacbf 100644 --- a/src/openvic-simulation/history/ProvinceHistory.hpp +++ b/src/openvic-simulation/history/ProvinceHistory.hpp @@ -63,12 +63,13 @@ namespace OpenVic { ProvinceHistoryManager() {} bool add_province_history_entry( - Province const* province, Date date, Country const* owner, Country const* controller, uint8_t colonial, bool slave, + Province const* province, Date date, Country const* owner, Country const* controller, + std::optional<uint8_t>&& colonial, std::optional<bool>&& slave, std::vector<Country const*>&& cores, // additive to existing entries std::vector<Country const*>&& remove_cores, // existing cores that need to be removed - Good const* rgo, uint8_t life_rating, TerrainType const* terrain_type, - std::map<Building const*, uint8_t>&& buildings, std::map<Ideology const*, uint8_t>&& party_loyalties, - std::bitset<5> updates // bitmap of updated non-pointer values, top to bottom + Good const* rgo, std::optional<uint8_t>&& life_rating, TerrainType const* terrain_type, + std::optional<std::map<Building const*, uint8_t>>&& buildings, + std::optional<std::map<Ideology const*, uint8_t>>&& party_loyalties ); void lock_province_histories(); |