aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic2/GameManager.hpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-05-04 15:47:20 +0200
committer GitHub <noreply@github.com>2023-05-04 15:47:20 +0200
commit7791a18094efaf62377606a7e5a7cba85a4c7a64 (patch)
treecd3ebcae0f67b07488fadb31ba3b376b306e03f6 /extension/src/openvic2/GameManager.hpp
parent6fd8fc3a786370207508631e569c1e8f5ab0e4e3 (diff)
parent2420f8b8fdd2db84e053ebb2d7f6e4840171009e (diff)
Merge pull request #106 from OpenVic2Project/simulation-submodule
Moved simulation code to separate submodule
Diffstat (limited to 'extension/src/openvic2/GameManager.hpp')
-rw-r--r--extension/src/openvic2/GameManager.hpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/extension/src/openvic2/GameManager.hpp b/extension/src/openvic2/GameManager.hpp
deleted file mode 100644
index 32183e3..0000000
--- a/extension/src/openvic2/GameManager.hpp
+++ /dev/null
@@ -1,31 +0,0 @@
-#pragma once
-
-#include "GameAdvancementHook.hpp"
-#include "map/Map.hpp"
-
-namespace OpenVic2 {
- struct GameManager {
- using state_updated_func_t = std::function<void()>;
-
- Map map;
- BuildingManager building_manager;
- GameAdvancementHook clock;
-
- private:
- Date today;
- state_updated_func_t state_updated;
- bool needs_update;
-
- void set_needs_update();
- void update_state();
- void tick();
-
- public:
- GameManager(state_updated_func_t state_updated_callback);
-
- return_t setup();
-
- Date const& get_today() const;
- return_t expand_building(index_t province_index, std::string const& building_type_identifier);
- };
-}