aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/command.hpp
blob: 6220af1afceceaa095a06c5b280e79e5ff4bf7b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include "interfaces/subscriber.hpp"

#include <cstddef>

class ICommand : public ISubscriber<std::nullptr_t>
{
public:
	~ICommand() override = default;

	virtual void execute() noexcept = 0;

	void update(const std::nullptr_t & /*context*/) noexcept override
	{
		execute();
	};
};