From a6c904eb4c37bc02313cc80b20a0f7308fee8918 Mon Sep 17 00:00:00 2001 From: Justin Scofield <47263509+scawful@users.noreply.github.com> Date: Sun, 12 Jun 2022 20:29:01 -0400 Subject: [PATCH] Delete Controller.h --- src/Application/Core/Controller.h | 44 ------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 src/Application/Core/Controller.h diff --git a/src/Application/Core/Controller.h b/src/Application/Core/Controller.h deleted file mode 100644 index 40e54d47..00000000 --- a/src/Application/Core/Controller.h +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef YAZE_APPLICATION_CORE_CONTROLLER_H -#define YAZE_APPLICATION_CORE_CONTROLLER_H -#define SDL_MAIN_HANDLED - -#include -#include -#include - -#include "core/renderer.h" -#include "core/window.h" -#include "editor/editor.h" - -int main(int argc, char** argv); - -namespace yaze { -namespace Application { -namespace Core { - -class Controller { - public: - Controller() = default; - - bool isActive() const; - void onEntry(); - void onInput(); - void onLoad(); - void doRender(); - void onExit(); - - private: - inline void quit() { active_ = false; } - friend int ::main(int argc, char** argv); - - bool active_; - Window window_; - Renderer renderer_; - Editor::Editor editor_; -}; - -} // namespace Core -} // namespace Application -} // namespace yaze - -#endif // YAZE_APPLICATION_CORE_CONTROLLER_H \ No newline at end of file