#include "status_updater.hpp" #include #include StatusUpdater::StatusUpdater( std::shared_ptr statusline, std::shared_ptr generation_tracker) noexcept : _statusline(std::move(statusline)), _generation_tracker(std::move(generation_tracker)) { } void StatusUpdater::update(const Vector2 &context) noexcept { _statusline->set_status( StatusLineSection::A, fmt::format("X: {} Y {}", context.get_x(), context.get_y())); _statusline->set_status( StatusLineSection::B, fmt::format("Paused: {} Generation: {}", _generation_tracker->get_is_paused() ? "yes" : "no", _generation_tracker->get_current_generation())); }