aboutsummaryrefslogtreecommitdiff
path: root/src/openvic2/GameManager.hpp
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-05-16 20:59:39 +0200
committer Hop311 <hop3114@gmail.com>2023-05-16 20:59:39 +0200
commit42d9d1d5417deb5979a9d5775cfe97dcff4b77ba (patch)
tree440634772615531e704a5554aa59c9890cd9cd85 /src/openvic2/GameManager.hpp
parent339e0278a2064f7eeb152fe8c5778840b609e9f3 (diff)
Changed from OpenVic2 to OpenVic
Diffstat (limited to 'src/openvic2/GameManager.hpp')
-rw-r--r--src/openvic2/GameManager.hpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/openvic2/GameManager.hpp b/src/openvic2/GameManager.hpp
deleted file mode 100644
index 5e46e58..0000000
--- a/src/openvic2/GameManager.hpp
+++ /dev/null
@@ -1,32 +0,0 @@
-#pragma once
-
-#include "GameAdvancementHook.hpp"
-#include "map/Map.hpp"
-#include "economy/Good.hpp"
-
-namespace OpenVic2 {
- struct GameManager {
- using state_updated_func_t = std::function<void()>;
-
- Map map;
- BuildingManager building_manager;
- GoodManager good_manager;
- GameAdvancementHook clock;
- private:
- time_t session_start; /* SS-54, as well as allowing time-tracking */
- 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);
- };
-}