Add getter for active state in Controller class

This commit is contained in:
scawful
2024-12-21 18:56:47 -05:00
parent 61953038b9
commit 0adfdfb135

View File

@@ -54,6 +54,7 @@ class Controller : public ExperimentFlags {
auto window() -> SDL_Window * { return window_.get(); }
void init_test_editor(editor::Editor *editor) { test_editor_ = editor; }
void set_active(bool active) { active_ = active; }
auto active() { return active_; }
private:
friend int ::main(int argc, char **argv);