diff options
Diffstat (limited to 'src/game/status_manager.hpp')
-rw-r--r-- | src/game/status_manager.hpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/game/status_manager.hpp b/src/game/status_manager.hpp index 245e888..85faf3c 100644 --- a/src/game/status_manager.hpp +++ b/src/game/status_manager.hpp @@ -1,20 +1,19 @@ #pragma once -#include "interfaces/generation_tracker.hpp" #include "interfaces/status_manager.hpp" #include "interfaces/statusline.hpp" -#include "engine/data/vector2.hpp" +#include <yacppdic/auto_wirable.hpp> #include <memory> +#include <string_view> #include <unordered_map> -class StatusManager : public IStatusManager +class StatusManager : public IStatusManager, + public yacppdic::AutoWirable<IStatusManager, StatusManager> { public: - explicit StatusManager(std::shared_ptr<IStatusLine> statusline) noexcept; - - void initialize() noexcept override; + void bind(const std::shared_ptr<IStatusLine> &statusline) noexcept override; void set_section_title( const StatusLineSection §ion, @@ -24,8 +23,6 @@ public: const StatusLineSection §ion, const std::string_view &body) noexcept override; - auto get_statusline() const noexcept -> std::shared_ptr<IStatusLine> override; - private: std::shared_ptr<IStatusLine> _statusline; |