aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/command.hpp
blob: 62d7a59f2f596c7e1705e442a04f0f00f14d3de8 (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:
	virtual ~ICommand() = default;

	virtual void execute() noexcept = 0;

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