aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/map/ProvinceInstance.hpp
diff options
context:
space:
mode:
author wvpm <24685035+wvpm@users.noreply.github.com>2024-11-03 22:23:39 +0100
committer wvpm <24685035+wvpm@users.noreply.github.com>2024-11-13 09:35:21 +0100
commite91bd6c3322a73c3ac6707329e81b6f2edc0b8be (patch)
treec05ff2506a24bfe7d88a1dad002e3c3ac6eb04e1 /src/openvic-simulation/map/ProvinceInstance.hpp
parent55eb6aab174172b63c44d801823ed8dc02ff0402 (diff)
ModifierEffectCache & location to fieldsto_fields
Diffstat (limited to 'src/openvic-simulation/map/ProvinceInstance.hpp')
-rw-r--r--src/openvic-simulation/map/ProvinceInstance.hpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/openvic-simulation/map/ProvinceInstance.hpp b/src/openvic-simulation/map/ProvinceInstance.hpp
index ec83af4..997d025 100644
--- a/src/openvic-simulation/map/ProvinceInstance.hpp
+++ b/src/openvic-simulation/map/ProvinceInstance.hpp
@@ -7,6 +7,7 @@
#include "openvic-simulation/economy/production/ResourceGatheringOperation.hpp"
#include "openvic-simulation/military/UnitInstance.hpp"
#include "openvic-simulation/military/UnitType.hpp"
+#include "openvic-simulation/modifier/ModifierEffectCache.hpp"
#include "openvic-simulation/modifier/ModifierSum.hpp"
#include "openvic-simulation/pop/Pop.hpp"
#include "openvic-simulation/types/HasIdentifier.hpp"
@@ -103,7 +104,9 @@ namespace OpenVic {
size_t PROPERTY(max_supported_regiments);
ProvinceInstance(
- ProvinceDefinition const& new_province_definition, decltype(pop_type_distribution)::keys_t const& pop_type_keys,
+ ModifierEffectCache const& new_modifier_effect_cache,
+ ProvinceDefinition const& new_province_definition,
+ decltype(pop_type_distribution)::keys_t const& pop_type_keys,
decltype(ideology_distribution)::keys_t const& ideology_keys
);
@@ -150,7 +153,7 @@ namespace OpenVic {
std::vector<ModifierSum::modifier_entry_t> get_contributing_modifiers(ModifierEffect const& effect) const;
void update_gamestate(const Date today, DefineManager const& define_manager);
- void province_tick(const Date today, ModifierEffectCache const& modifier_effect_cache);
+ void province_tick(const Date today);
template<UnitType::branch_t Branch>
bool add_unit_instance_group(UnitInstanceGroup<Branch>& group);
@@ -160,7 +163,7 @@ namespace OpenVic {
bool setup(BuildingTypeManager const& building_type_manager);
bool apply_history_to_province(ProvinceHistoryEntry const& entry, CountryInstanceManager& country_manager);
- void initialise_rgo(ModifierEffectCache const& modifier_effect_cache);
+ void initialise_rgo();
void setup_pop_test_values(IssueManager const& issue_manager);
State* get_mutable_state();