diff options
Diffstat (limited to 'src/libjin/Game/Game.h')
-rw-r--r-- | src/libjin/Game/Game.h | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/src/libjin/Game/Game.h b/src/libjin/Game/Game.h index 725c62c..ede2418 100644 --- a/src/libjin/Game/Game.h +++ b/src/libjin/Game/Game.h @@ -9,50 +9,50 @@ namespace jin { -namespace core -{ - - class Game : public Subsystem<Game> - { - 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: + namespace core + { + + class Game : public Subsystem<Game> + { + 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() {}; + Game(); + ~Game() {}; - SINGLETON(Game); + SINGLETON(Game); - onEvent _onEvent; - onUpdate _onUpdate; - onDraw _onDraw; - onLoad _onLoad; + onEvent _onEvent; + onUpdate _onUpdate; + onDraw _onDraw; + onLoad _onLoad; - bool _running; + bool _running; - bool initSystem(const SettingBase* setting); - void quitSystem(); + bool initSystem(const SettingBase* setting); + void quitSystem(); - }; + }; -} // core + } // core } // jin #endif // __LIBJIN_CORE_GAME_H |