From 8805b1fe27344e8086cebabf869b7a02d2376f05 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 7 Jun 2022 19:45:17 +0200 Subject: refactor: decouple statusline from scene & cursor controller Might be slightly slower than previously though... --- src/game/status_manager.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/game/status_manager.hpp') diff --git a/src/game/status_manager.hpp b/src/game/status_manager.hpp index 7bb4f2f..245e888 100644 --- a/src/game/status_manager.hpp +++ b/src/game/status_manager.hpp @@ -24,8 +24,10 @@ 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; - std::unordered_map _title_lengths; + std::unordered_map _title_lengths; }; -- cgit v1.2.3-18-g5258