From 753c0c35b3fea2e45cd83849afde303eea5ccd24 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sat, 1 Dec 2018 19:22:43 +0100 Subject: core: extract command --- src/command.hpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/command.hpp (limited to 'src/command.hpp') diff --git a/src/command.hpp b/src/command.hpp new file mode 100644 index 0000000..f4d7b31 --- /dev/null +++ b/src/command.hpp @@ -0,0 +1,26 @@ +#ifndef WANDA_COMMAND_HPP +#define WANDA_COMMAND_HPP + +#include "message.hpp" + +#include +#include +#include + +namespace wanda +{ +enum struct command_id : char +{ + change, +}; + +struct command +{ + command_id const id; + std::vector const arguments; + + std::optional message() const; +}; +} // namespace wanda + +#endif \ No newline at end of file -- cgit v1.2.3