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/NationalFocus.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/NationalFocus.cpp')
-rw-r--r-- | src/openvic-simulation/politics/NationalFocus.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/openvic-simulation/politics/NationalFocus.cpp b/src/openvic-simulation/politics/NationalFocus.cpp index a62147f..85fcdc0 100644 --- a/src/openvic-simulation/politics/NationalFocus.cpp +++ b/src/openvic-simulation/politics/NationalFocus.cpp @@ -27,8 +27,8 @@ NationalFocus::NationalFocus( loyalty_value { new_loyalty_value }, limit { std::move(new_limit) } {} -bool NationalFocus::parse_scripts(GameManager const& game_manager) { - return limit.parse_script(true, game_manager); +bool NationalFocus::parse_scripts(DefinitionManager const& definition_manager) { + return limit.parse_script(true, definition_manager); } inline bool NationalFocusManager::add_national_focus_group(std::string_view identifier) { @@ -131,10 +131,10 @@ bool NationalFocusManager::load_national_foci_file( return ret; } -bool NationalFocusManager::parse_scripts(GameManager const& game_manager) { +bool NationalFocusManager::parse_scripts(DefinitionManager const& definition_manager) { bool ret = true; for (NationalFocus& national_focus : national_foci.get_items()) { - ret &= national_focus.parse_scripts(game_manager); + ret &= national_focus.parse_scripts(definition_manager); } return ret; } |