aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/politics/Issue.cpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-06-13 00:24:00 +0200
committer hop311 <hop3114@gmail.com>2024-06-13 00:24:00 +0200
commit4b39e77304094708d5c503b6a221386408cc4409 (patch)
tree7ba5a06714c267185dd3a59aabc6556a105c122f /src/openvic-simulation/politics/Issue.cpp
parentc0ba822ee46551a40ad6b43e8f56b80e27ae35b5 (diff)
Separated GameManager into Definition and Instance Managersinstance-definition-managers
Diffstat (limited to 'src/openvic-simulation/politics/Issue.cpp')
-rw-r--r--src/openvic-simulation/politics/Issue.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/openvic-simulation/politics/Issue.cpp b/src/openvic-simulation/politics/Issue.cpp
index 8e0907a..a03ffa3 100644
--- a/src/openvic-simulation/politics/Issue.cpp
+++ b/src/openvic-simulation/politics/Issue.cpp
@@ -25,11 +25,11 @@ Reform::Reform(
reform_group { new_group }, technology_cost { new_technology_cost }, allow { std::move(new_allow) },
on_execute_trigger { std::move(new_on_execute_trigger) }, on_execute_effect { std::move(new_on_execute_effect) } {}
-bool Reform::parse_scripts(GameManager& game_manager) {
+bool Reform::parse_scripts(DefinitionManager const& definition_manager) {
bool ret = true;
- ret &= allow.parse_script(true, game_manager);
- ret &= on_execute_trigger.parse_script(true, game_manager);
- ret &= on_execute_effect.parse_script(true, game_manager);
+ ret &= allow.parse_script(true, definition_manager);
+ ret &= on_execute_trigger.parse_script(true, definition_manager);
+ ret &= on_execute_effect.parse_script(true, definition_manager);
return ret;
}
@@ -350,10 +350,10 @@ bool IssueManager::load_issues_file(
return ret;
}
-bool IssueManager::parse_scripts(GameManager& game_manager) {
+bool IssueManager::parse_scripts(DefinitionManager const& definition_manager) {
bool ret = true;
for (Reform& reform : reforms.get_items()) {
- ret &= reform.parse_scripts(game_manager);
+ ret &= reform.parse_scripts(definition_manager);
}
return ret;
}