diff options
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-03 22:39:01 +0100 |
commit | 4eba08af501560e9139a562c53fbbc8b694fb4cf (patch) | |
tree | e9553d2f4ed09abb920921006b976c7ef4baa46c /src/openvic-simulation/map/State.cpp | |
parent | 19026ff6aee8748df4777ec044065d13460e806a (diff) |
ModifierEffectCache & location to fieldsto_fields
Diffstat (limited to 'src/openvic-simulation/map/State.cpp')
-rw-r--r-- | src/openvic-simulation/map/State.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/openvic-simulation/map/State.cpp b/src/openvic-simulation/map/State.cpp index a13c271..0987c50 100644 --- a/src/openvic-simulation/map/State.cpp +++ b/src/openvic-simulation/map/State.cpp @@ -98,9 +98,9 @@ void State::update_gamestate() { industrial_power = total_factory_levels_in_state * workforce_scalar; } -void State::state_tick(const Date today, ModifierEffectCache const& modifier_effect_cache) { +void State::state_tick(const Date today) { for (ProvinceInstance* province : provinces) { - province->province_tick(today, modifier_effect_cache); + province->province_tick(today); } } @@ -126,9 +126,9 @@ void StateSet::update_gamestate() { } } -void StateSet::tick(const Date today, ModifierEffectCache const& modifier_effect_cache) { +void StateSet::tick(const Date today) { for (State& state : states) { - state.state_tick(today, modifier_effect_cache); + state.state_tick(today); } } @@ -233,8 +233,8 @@ void StateManager::update_gamestate() { } } -void StateManager::tick(const Date today, ModifierEffectCache const& modifier_effect_cache) { +void StateManager::tick(const Date today) { for (StateSet& state_set : state_sets) { - state_set.tick(today, modifier_effect_cache); + state_set.tick(today); } }
\ No newline at end of file |