aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/map/ProvinceInstance.hpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-09-13 01:11:33 +0200
committer hop311 <hop3114@gmail.com>2024-09-13 01:11:33 +0200
commit81e00e3291834dbae6e70224651bf66198ba154e (patch)
tree071de89f19e8fee2a51c8e5065cb25734a6ed2d1 /src/openvic-simulation/map/ProvinceInstance.hpp
parenta424969548083a977480a6be0f078760a5789bbf (diff)
Calculate country and province modifier sums (WIP)
Diffstat (limited to 'src/openvic-simulation/map/ProvinceInstance.hpp')
-rw-r--r--src/openvic-simulation/map/ProvinceInstance.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/openvic-simulation/map/ProvinceInstance.hpp b/src/openvic-simulation/map/ProvinceInstance.hpp
index fa0be98..8201483 100644
--- a/src/openvic-simulation/map/ProvinceInstance.hpp
+++ b/src/openvic-simulation/map/ProvinceInstance.hpp
@@ -68,6 +68,10 @@ namespace OpenVic {
CountryInstance* PROPERTY(controller);
ordered_set<CountryInstance*> PROPERTY(cores);
+ ModifierValue PROPERTY(base_modifier_sum);
+ std::vector<ModifierInstance> PROPERTY(event_modifiers);
+ std::vector<Modifier const*> PROPERTY(static_modifiers);
+
bool PROPERTY(slave);
Crime const* PROPERTY_RW(crime);
// TODO - change this into a factory-like structure
@@ -124,6 +128,7 @@ namespace OpenVic {
bool add_pop_vec(std::vector<PopBase> const& pop_vec);
size_t get_pop_count() const;
+ void update_base_modifier_sum(Date today);
void update_gamestate(Date today, DefineManager const& define_manager);
void tick(Date today);