diff options
Diffstat (limited to 'src/interfaces/status_updater.hpp')
-rw-r--r-- | src/interfaces/status_updater.hpp | 19 |
1 files changed, 19 insertions, 0 deletions
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 <memory> + +class IStatusUpdater : public ISubscriber<Vector2> +{ +public: + void update(const Vector2 &context) noexcept override = 0; +}; + +using IStatusUpdaterFactory = std::shared_ptr<IStatusUpdater> (*)( + const std::shared_ptr<IStatusLine> &statusline, + const std::shared_ptr<IGenerationTracker> &generation_tracker); |