diff options
author | chai <chaifix@163.com> | 2018-07-28 22:10:27 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-07-28 22:10:27 +0800 |
commit | 52693d68f7181d707e1a192d67a617145b358394 (patch) | |
tree | 5a39bcdf225def306738ead6683cd224e2c5762d /src/libjin/core/game.h | |
parent | d033400614e7e2c0ff49e5100c81e937e5818e74 (diff) |
*update
Diffstat (limited to 'src/libjin/core/game.h')
-rw-r--r-- | src/libjin/core/game.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libjin/core/game.h b/src/libjin/core/game.h index e9d0340..31825ba 100644 --- a/src/libjin/core/game.h +++ b/src/libjin/core/game.h @@ -17,7 +17,7 @@ namespace core public: typedef void(*onEvent)(jin::input::Event* e); - typedef void(*onUpdate)(float dt); + typedef void(*onUpdate)(); typedef void(*onDraw)(); struct Setting : SettingBase @@ -29,7 +29,7 @@ namespace core void run(); inline void stop() { _running = false; }; - bool running() { return _running; }; + inline bool running() { return _running; }; private: @@ -44,8 +44,8 @@ namespace core bool _running; - onlyonce bool initSystem(const SettingBase* setting); - onlyonce void quitSystem(); + bool initSystem(const SettingBase* setting); + void quitSystem(); }; |