diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-12-19 19:06:00 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-12-19 19:06:00 +0100 |
commit | e9ff4f207572a2dd2fb588093c7d1d971e463dc0 (patch) | |
tree | 621c74431b2a4042099e3c22beee3f5383ef2cbb /src/crepe/api/LoopManager.h | |
parent | fa3bf171e73da70d964d85851bd20d87362fcfd2 (diff) | |
parent | c737b01035cb62712b1dabcfef6f5014bdc882d1 (diff) |
merge master
Diffstat (limited to 'src/crepe/api/LoopManager.h')
-rw-r--r-- | src/crepe/api/LoopManager.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/crepe/api/LoopManager.h b/src/crepe/api/LoopManager.h index 1d23cbf..124cd3a 100644 --- a/src/crepe/api/LoopManager.h +++ b/src/crepe/api/LoopManager.h @@ -71,9 +71,19 @@ private: private: //! Global context Mediator mediator; + /** + * \brief Collection of System instances + * + * This map holds System instances indexed by the system's class typeid. It is filled in the + * constructor of LoopManager using LoopManager::load_system. + */ + std::unordered_map<std::type_index, std::unique_ptr<System>> systems; //! SDLContext instance SDLContext sdl_context{mediator}; + //! Resource manager instance + ResourceManager resource_manager{mediator}; + //! Component manager instance ComponentManager component_manager{mediator}; //! Scene manager instance @@ -82,8 +92,6 @@ private: LoopTimerManager loop_timer{mediator}; //! EventManager instance EventManager event_manager{mediator}; - //! Resource manager instance - ResourceManager resource_manager{mediator}; //! Save manager instance SaveManager save_manager{mediator}; @@ -95,13 +103,6 @@ private: */ bool on_shutdown(const ShutDownEvent & e); /** - * \brief Collection of System instances - * - * This map holds System instances indexed by the system's class typeid. It is filled in the - * constructor of LoopManager using LoopManager::load_system. - */ - std::unordered_map<std::type_index, std::unique_ptr<System>> systems; - /** * \brief Initialize a system * \tparam T System type (must be derivative of \c System) */ |