From 3f9004b598fc8006576db9b8d2ae4e080101101b Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 8 Jun 2022 16:06:03 +0200 Subject: refactor: give game responsibility of statusline --- src/game/status_manager.hpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/game/status_manager.hpp') 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 #include +#include #include -class StatusManager : public IStatusManager +class StatusManager : public IStatusManager, + public yacppdic::AutoWirable { public: - explicit StatusManager(std::shared_ptr statusline) noexcept; - - void initialize() noexcept override; + void bind(const std::shared_ptr &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 override; - private: std::shared_ptr _statusline; -- cgit v1.2.3-18-g5258