blob: 0fd38a7b51f10baa70bf9f0babf9282d6b56869e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#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 <memory>
class StatusUpdater : public IStatusUpdater
{
public:
explicit StatusUpdater(
std::shared_ptr<IStatusLine> statusline,
std::shared_ptr<IGenerationTracker> generation_tracker
) noexcept;
void update(const Vector2 &context) noexcept override;
private:
std::shared_ptr<IStatusLine> _statusline;
std::shared_ptr<IGenerationTracker> _generation_tracker;
};
|