From 486ca3846b46dc229e5807968578809766ec1991 Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 23 Mar 2022 19:41:31 +0100 Subject: feat: implement generations & multithreading --- src/game/status_updater.hpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/game/status_updater.hpp (limited to 'src/game/status_updater.hpp') diff --git a/src/game/status_updater.hpp b/src/game/status_updater.hpp new file mode 100644 index 0000000..3b76d3b --- /dev/null +++ b/src/game/status_updater.hpp @@ -0,0 +1,24 @@ +#pragma once + +#include "interfaces/generation_tracker.hpp" +#include "interfaces/status_updater.hpp" +#include "interfaces/statusline.hpp" +#include "interfaces/subscriber.hpp" + +#include "engine/data/vector2.hpp" + +#include + +class StatusUpdater : public IStatusUpdater +{ +public: + explicit StatusUpdater( + std::shared_ptr statusline, + std::shared_ptr generation_tracker) noexcept; + + void update(const Vector2 &context) noexcept override; + +private: + std::shared_ptr _statusline; + std::shared_ptr _generation_tracker; +}; -- cgit v1.2.3-18-g5258