From 40fc27154fe754181934dc7ee31375e6bdfb33fc Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 23 Oct 2018 12:23:58 +0800 Subject: *merge from minimal --- src/libjin/Core/Game.h | 58 -------------------------------------------------- 1 file changed, 58 deletions(-) delete mode 100644 src/libjin/Core/Game.h (limited to 'src/libjin/Core/Game.h') diff --git a/src/libjin/Core/Game.h b/src/libjin/Core/Game.h deleted file mode 100644 index 31f32d8..0000000 --- a/src/libjin/Core/Game.h +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef __JIN_CORE_GAME_H -#define __JIN_CORE_GAME_H - -#include "SDL2/SDL.h" - -#include "../Common/Subsystem.hpp" -#include "../utils/macros.h" -#include "../Input/Event.h" - -namespace jin -{ -namespace core -{ - - class Game : public Subsystem - { - public: - - typedef void(*onLoad)(); - typedef void(*onEvent)(jin::input::Event* e); - typedef void(*onUpdate)(int dt); - typedef void(*onDraw)(); - - struct Setting : SettingBase - { - onEvent eventHandler; - onUpdate updater; - onDraw drawer; - onLoad loader; - }; - - void run(); - inline void stop() { _running = false; }; - inline bool running() { return _running; }; - - private: - - Game(); - ~Game() {}; - - SINGLETON(Game); - - onEvent _onEvent; - onUpdate _onUpdate; - onDraw _onDraw; - onLoad _onLoad; - - bool _running; - - bool initSystem(const SettingBase* setting); - void quitSystem(); - - }; - -} // core -} // jin - -#endif // __JIN_CORE_GAME_H \ No newline at end of file -- cgit v1.1-26-g67d0