From 4b39e77304094708d5c503b6a221386408cc4409 Mon Sep 17 00:00:00 2001 From: hop311 Date: Wed, 12 Jun 2024 23:24:00 +0100 Subject: Separated GameManager into Definition and Instance Managers --- src/openvic-simulation/DefinitionManager.hpp | 42 ++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 src/openvic-simulation/DefinitionManager.hpp (limited to 'src/openvic-simulation/DefinitionManager.hpp') diff --git a/src/openvic-simulation/DefinitionManager.hpp b/src/openvic-simulation/DefinitionManager.hpp new file mode 100644 index 0000000..e2e28dc --- /dev/null +++ b/src/openvic-simulation/DefinitionManager.hpp @@ -0,0 +1,42 @@ +#pragma once + +#include "openvic-simulation/country/Country.hpp" +#include "openvic-simulation/diplomacy/DiplomaticAction.hpp" +#include "openvic-simulation/economy/EconomyManager.hpp" +#include "openvic-simulation/history/HistoryManager.hpp" +#include "openvic-simulation/interface/UI.hpp" +#include "openvic-simulation/map/Crime.hpp" +#include "openvic-simulation/map/MapDefinition.hpp" +#include "openvic-simulation/map/Mapmode.hpp" +#include "openvic-simulation/military/MilitaryManager.hpp" +#include "openvic-simulation/misc/Decision.hpp" +#include "openvic-simulation/misc/Define.hpp" +#include "openvic-simulation/misc/Event.hpp" +#include "openvic-simulation/misc/Modifier.hpp" +#include "openvic-simulation/politics/PoliticsManager.hpp" +#include "openvic-simulation/pop/Pop.hpp" +#include "openvic-simulation/research/ResearchManager.hpp" +#include "openvic-simulation/scripts/ScriptManager.hpp" + +namespace OpenVic { + struct DefinitionManager { + private: + DefineManager PROPERTY_REF(define_manager); + EconomyManager PROPERTY_REF(economy_manager); + MilitaryManager PROPERTY_REF(military_manager); + ModifierManager PROPERTY_REF(modifier_manager); + PoliticsManager PROPERTY_REF(politics_manager); + HistoryManager PROPERTY_REF(history_manager); + ResearchManager PROPERTY_REF(research_manager); + PopManager PROPERTY_REF(pop_manager); + CountryManager PROPERTY_REF(country_manager); + CrimeManager PROPERTY_REF(crime_manager); + EventManager PROPERTY_REF(event_manager); + DecisionManager PROPERTY_REF(decision_manager); + UIManager PROPERTY_REF(ui_manager); + DiplomaticActionManager PROPERTY_REF(diplomatic_action_manager); + MapDefinition PROPERTY_REF(map_definition); + MapmodeManager PROPERTY_REF(mapmode_manager); + ScriptManager PROPERTY_REF(script_manager); + }; +} -- cgit v1.2.3-56-ga3b1