diff options
author | Hop311 <Hop3114@gmail.com> | 2024-06-13 18:59:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-13 18:59:47 +0200 |
commit | bfd539513af435564daf70f94f6cce146dd5c948 (patch) | |
tree | 7ba5a06714c267185dd3a59aabc6556a105c122f /src/openvic-simulation/politics/Ideology.cpp | |
parent | 01a8f60aaca9784d814f4cb35a3fc4be86e1dd20 (diff) | |
parent | 4b39e77304094708d5c503b6a221386408cc4409 (diff) |
Merge pull request #165 from OpenVicProject/instance-definition-managers
Separated GameManager into Definition and Instance Managers
Diffstat (limited to 'src/openvic-simulation/politics/Ideology.cpp')
-rw-r--r-- | src/openvic-simulation/politics/Ideology.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/openvic-simulation/politics/Ideology.cpp b/src/openvic-simulation/politics/Ideology.cpp index 1848a0a..546d16e 100644 --- a/src/openvic-simulation/politics/Ideology.cpp +++ b/src/openvic-simulation/politics/Ideology.cpp @@ -20,14 +20,14 @@ Ideology::Ideology( add_social_reform { std::move(new_add_social_reform) }, remove_social_reform { std::move(new_remove_social_reform) }, add_military_reform { std::move(new_add_military_reform) }, add_economic_reform { std::move(new_add_economic_reform) } {} -bool Ideology::parse_scripts(GameManager const& game_manager) { +bool Ideology::parse_scripts(DefinitionManager const& definition_manager) { bool ret = true; - ret &= add_political_reform.parse_scripts(game_manager); - ret &= remove_political_reform.parse_scripts(game_manager); - ret &= add_social_reform.parse_scripts(game_manager); - ret &= remove_social_reform.parse_scripts(game_manager); - ret &= add_military_reform.parse_scripts(game_manager); - ret &= add_economic_reform.parse_scripts(game_manager); + ret &= add_political_reform.parse_scripts(definition_manager); + ret &= remove_political_reform.parse_scripts(definition_manager); + ret &= add_social_reform.parse_scripts(definition_manager); + ret &= remove_social_reform.parse_scripts(definition_manager); + ret &= add_military_reform.parse_scripts(definition_manager); + ret &= add_economic_reform.parse_scripts(definition_manager); return ret; } @@ -118,10 +118,10 @@ bool IdeologyManager::load_ideology_file(ast::NodeCPtr root) { return ret; } -bool IdeologyManager::parse_scripts(GameManager const& game_manager) { +bool IdeologyManager::parse_scripts(DefinitionManager const& definition_manager) { bool ret = true; for (Ideology& ideology : ideologies.get_items()) { - ideology.parse_scripts(game_manager); + ideology.parse_scripts(definition_manager); } return ret; } |