From 486ca3846b46dc229e5807968578809766ec1991 Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 23 Mar 2022 19:41:31 +0100 Subject: feat: implement generations & multithreading --- src/commands/toggle_pause.hpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/commands/toggle_pause.hpp (limited to 'src/commands/toggle_pause.hpp') diff --git a/src/commands/toggle_pause.hpp b/src/commands/toggle_pause.hpp new file mode 100644 index 0000000..4e05323 --- /dev/null +++ b/src/commands/toggle_pause.hpp @@ -0,0 +1,20 @@ +#pragma once + +#include "interfaces/command.hpp" +#include "interfaces/generation_tracker.hpp" +#include "interfaces/statusline.hpp" + +#include + +class TogglePauseCommand : public ICommand +{ +public: + explicit TogglePauseCommand(std::shared_ptr generation_tracker, + std::shared_ptr statusline) noexcept; + + void execute() noexcept override; + +private: + std::shared_ptr _generation_tracker; + std::shared_ptr _statusline; +}; -- cgit v1.2.3-18-g5258