diff options
Diffstat (limited to 'GameManager.hpp')
-rw-r--r-- | GameManager.hpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/GameManager.hpp b/GameManager.hpp deleted file mode 100644 index 70e98bd..0000000 --- a/GameManager.hpp +++ /dev/null @@ -1,29 +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); - }; -} |