diff options
author | hop311 <hop3114@gmail.com> | 2024-06-13 00:24:00 +0200 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2024-06-13 00:24:00 +0200 |
commit | 4b39e77304094708d5c503b6a221386408cc4409 (patch) | |
tree | 7ba5a06714c267185dd3a59aabc6556a105c122f /src/openvic-simulation/politics/Rebel.cpp | |
parent | c0ba822ee46551a40ad6b43e8f56b80e27ae35b5 (diff) |
Separated GameManager into Definition and Instance Managersinstance-definition-managers
Diffstat (limited to 'src/openvic-simulation/politics/Rebel.cpp')
-rw-r--r-- | src/openvic-simulation/politics/Rebel.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/openvic-simulation/politics/Rebel.cpp b/src/openvic-simulation/politics/Rebel.cpp index ce99d08..fcb08c9 100644 --- a/src/openvic-simulation/politics/Rebel.cpp +++ b/src/openvic-simulation/politics/Rebel.cpp @@ -27,15 +27,15 @@ RebelType::RebelType( siege_won_effect { std::move(new_siege_won_effect) }, demands_enforced_trigger { std::move(new_demands_enforced_trigger) }, demands_enforced_effect { std::move(new_demands_enforced_effect) } {} -bool RebelType::parse_scripts(GameManager& game_manager) { +bool RebelType::parse_scripts(DefinitionManager const& definition_manager) { bool ret = true; - ret &= will_rise.parse_scripts(game_manager); - ret &= spawn_chance.parse_scripts(game_manager); - ret &= movement_evaluation.parse_scripts(game_manager); - ret &= siege_won_trigger.parse_script(true, game_manager); - ret &= siege_won_effect.parse_script(true, game_manager); - ret &= demands_enforced_trigger.parse_script(true, game_manager); - ret &= demands_enforced_effect.parse_script(true, game_manager); + ret &= will_rise.parse_scripts(definition_manager); + ret &= spawn_chance.parse_scripts(definition_manager); + ret &= movement_evaluation.parse_scripts(definition_manager); + ret &= siege_won_trigger.parse_script(true, definition_manager); + ret &= siege_won_effect.parse_script(true, definition_manager); + ret &= demands_enforced_trigger.parse_script(true, definition_manager); + ret &= demands_enforced_effect.parse_script(true, definition_manager); return ret; } @@ -191,10 +191,10 @@ bool RebelManager::generate_modifiers(ModifierManager& modifier_manager) const { return ret; } -bool RebelManager::parse_scripts(GameManager& game_manager) { +bool RebelManager::parse_scripts(DefinitionManager const& definition_manager) { bool ret = true; for (RebelType& rebel_type : rebel_types.get_items()) { - ret &= rebel_type.parse_scripts(game_manager); + ret &= rebel_type.parse_scripts(definition_manager); } return ret; } |