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/interfaces/status_updater.hpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/interfaces/status_updater.hpp (limited to 'src/interfaces/status_updater.hpp') diff --git a/src/interfaces/status_updater.hpp b/src/interfaces/status_updater.hpp new file mode 100644 index 0000000..ccfb2db --- /dev/null +++ b/src/interfaces/status_updater.hpp @@ -0,0 +1,19 @@ +#pragma once + +#include "interfaces/generation_tracker.hpp" +#include "interfaces/statusline.hpp" +#include "interfaces/subscriber.hpp" + +#include "engine/data/vector2.hpp" + +#include + +class IStatusUpdater : public ISubscriber +{ +public: + void update(const Vector2 &context) noexcept override = 0; +}; + +using IStatusUpdaterFactory = std::shared_ptr (*)( + const std::shared_ptr &statusline, + const std::shared_ptr &generation_tracker); -- cgit v1.2.3-18-g5258