From 5bb6b95fe71d33956491b98c29bf464a440ad221 Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 18 Apr 2022 22:40:41 +0200 Subject: Added toggle for base generator --- Generator.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Generator.cpp') diff --git a/Generator.cpp b/Generator.cpp index 32ad608..448872d 100644 --- a/Generator.cpp +++ b/Generator.cpp @@ -6,6 +6,20 @@ #include +Generator::Generator() : + m_enabled {true}, + m_origin {} +{ +} + + +void +Generator::toggle(const bool enabled) +{ + m_enabled = enabled; +} + + void Generator::attach(std::shared_ptr origin) { -- cgit v1.1