aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/status_updater.hpp
blob: 4b2ceb1e887a84cfa016d581f84d6174662b6bc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include "interfaces/generation_tracker.hpp"
#include "interfaces/statusline.hpp"
#include "interfaces/subscriber.hpp"

#include "engine/data/vector2.hpp"

#include <yacppdic/factory.hpp>

#include <memory>

// NOLINTNEXTLINE(cppcoreguidelines-special-member-functions)
class IStatusUpdater : public ISubscriber<Vector2>
{
public:
	void update(const Vector2 &context) noexcept override = 0;
};

using IStatusUpdaterFactory = yacppdic::Factory<std::unique_ptr<IStatusUpdater>(
	const std::shared_ptr<IStatusLine> &statusline,
	const std::shared_ptr<IGenerationTracker> &generation_tracker
)>;